Giter Site home page Giter Site logo

service's Introduction

service

A micro web service monorepo setup using lerna / Front-end toolkit

  • (Latest ver: 2/20/2020 AM 09:50)

Usage

$ git clone https://github.com/myungjaeyu/service.git && cd service

$ yarn install

$ yarn boot

$ yarn start

# client
# http://localhost:3000

# api proxy
# http://localhost:3000/api/github/myungjaeyu

# api
# http://localhost:3001/api/github/myungjaeyu

# storybook
# http://localhost:9009

$ yarn build

$ yarn serve
# http://localhost:8080
# http://localhost:8080/api/github/myungjaeyu

$ yarn serve-ui
# http://localhost:9009

$ yarn lint

Deploy in UI Storybook Dev Server

https://storybook-static-pi.now.sh

# deploy

$ yarn build

$ yarn deploy-ui

Packages

dependencies

shared

prettierrc.json

{
    "printWidth": 200,
    "semi": false,
    "singleQuote": true,
    "jsxSingleQuote": true,
    "arrowParens": "always",
    "tabWidth": 4
}

Directory Structure

service/
│
├── storybook-static/ # (design-system)
│
├── dist/ # (api, client)
│
├── packages/
│   ├── api/
│   ├── client/
│   └── design-system/
│
└── package.json

API

    express
    prerender-node

Client

    react
    react-router-dom
    react-meta-tags
    react-hook-form
    react-use

    unstated-next # state mgmt

    js-cookie
    query-string
    i18next

    @emotion/styled
    bootstrap4 # index.html cdn
    fontawesome5 # index.html cdn

    less
    postcss
    babel7

    analytics

Design-system

    react
    react-use

    classnames

    @emotion/styled
    bootstrap4 # preview-head.html cdn
    fontawesome5 # preview-head.html cdn

    # addons
    @storybook/addon-actions
    @storybook/addon-storysource
    @storybook/addon-viewport
    @storybook/addon-info

Copyright © 2020 Myungjae Yu


Docker Container

$ yarn build

$ docker-compose build && docker-compose up

# http://localhost:5000

Serverless AWS Lambda & CloudFront

$ serverless deploy

SCP

$ zip -r service.zip . && scp -i [pem key] service.zip [email protected]:~/blah/blah

License

MIT license.

service's People

Contributors

myungjaeyu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.