$ git clone https://github.com/TMH-SE/ticket-sales-backend.git
# follow the file .env.example
SECRET_KEY=h3l1oW0rld
PORT=<your_port_run_backend>
# follow the file .aws.json.example
{
"accessKeyId": <YOUR_ACCESS_KEY_ID>,
"secretAccessKey": <YOUR_SECRET_ACCESS_KEY>,
"sessionToken": <YOUR_SESSION_TOKEN>,
"region": "us-east-1"
}
# using npm
$ npm i
# using yarn
$ yarn add
# create table and account admin
$ NODE_ENV=development npm run db:seed
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# Running the app with webpack
# 1. Build webpack
$ npm run webpack
# 2. Once webpack started to watch files, run another command in the another command line window:
$ npm run start:webpack
# create branch before perform your task
# naming branch follow the pattern: yourName_yourTask
# e.g: hieu_khachHang
$ git branch <your_branch>
# check out your branch before start code
$ git checkout <your_branch>
# save your changes
$ git add .
# commit code
# your comment must be concise and describe what you did
$ git commit -m 'your comment'
# always pull code before whenever start coding or push code to repository
$ git pull origin master
# push code from local to repository
$ git push origin <your_branch>
*NOTE: Before push code, you must pull code and fix conflict
Project is MIT licensed.