8000 GitHub - baorr/front-end-common-structure: common structure for front-end developer, nodejs developer, full-stack developer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

baorr/front-end-common-structure

Repository files navigation

front-end-common-structure

  1. Common structure for front-end developer, nodejs developer, full-stack developer

Basic Structure:

image

  1. Project Structure --app (for backend service) --config (config for different dev-envirentment) --i18n (Intenational) --swagger-ui (virtual API operation) --test (for UI test, API test, Use mocha) --web (for forntend service) --build.js (for build the forntend service, Use webpack config for Reactjs/Vue etc.) --local.js (for local test, Use webpack-dev-middleware) --package.json --README.md

use it

Install all the Dependencies.

npm i;

Build the source code

npm run build

Run local dev server

step 1: npm run local

Test

npm run test

Swagger-ui for virtual API test

http://localhost:3000/swagger

resource

  1. swagger api: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md

tips

1. ln[command] not permission, solution is https://segmentfault.com/q/1010000003958979

About

common structure for front-end developer, nodejs developer, full-stack developer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0