Common | Frontend | Backend |
---|---|---|
es2017 | vue 2.4 | express 4 |
socket.io | vue-router 2 | mongodb |
axios | pug | redis |
webpack 3 | scss | nodemon |
eslint | hot reload | |
mocha | nightmare | |
docker | ||
nginx |
setup enviroment
$ git clone https://github.com/RyosukeCla/vue-express-boilerplate.git
$ cd vue-express-boilerplate
$ docker-compose up -d
$ docker-compose exec admin npm install
start to develop
$ docker-compose exec admin npm run dev
go to localhost
$ docker-compose up -d
$ docker-compose exec admin npm install
$ docker-compose exec admin npm run dev
go to localhost
# You need to start server before e2e testing
$ docker-compose exec admin npm run dev
# or
$ docker-compose exec admin npm run start
$ docker-compose exec admin npm run test:e2e
$ docker-compose exec admin npm run test:unit
build for production
$ docker-compose exec admin npm run build
start server
$ docker-compose exec admin npm run start
stop server
$ docker-compose exec admin npm run stop