Download:
$ git clone https://github.com/SYNC-SU/vue-boilerplate.git
Pre-install:
- Change settings in .env file
- Change credentials and add custom data (if you need) in api/db/migrations/seed.js
Install:
$ ./install
- install - install project.
- start - run project. If "ENVIRONMENT" variable in .env file set in "prod", run production version: build frontend and admin apps, and serve it as static minified files.
- stop [container_name] - stop container. If container name not provided stop all.
- restart [container_name] - restart container. If container name not provided restart all.
- log [container_name] - show selected container logs or all logs if container not provided. Accept all docker-compose logs options.
- yarn [container_name] - start yarn scripts in container. container_name is required.
- psql and rdb - CLI for postgres and redis services.
- migrate <action> - create or start migration. Actions: create <name> and down. create make empty migration in api/db/migrations with name. down runs migration undo. Empty action run all migrations from folder api/db/migrations, ordering by filename.
Nginx web-server. All configs in nginx folder.
PostgreSQL. Default settings:
host: 'postgres'
port: 5432
username: 'postgres'
password: 'postgres'
dbname: 'boilerplate'
Redis. Default settings:
host: 'redis'
port: 6379
API container. Can serve both admin and frontend routes.
Default prefix: /api
express for REST and sequelize for ORM
Main interface.
- Vue 2.2.4
- Vue-router 2.2.0
- axios 0.15
Linting with eslint by standard rules
Admin panel.
- Vue 2.2.4
- Vue-router 2.2.0
- axios 0.15
Linting with eslint by standard rules
username: admin@mail.ru
password: admin