This repository builds all the APIs mainly used for the worklog service. It builds on:
- nodejs
- express
- node-config
- sequelize
We should install the required dependencies before you run this repo.
- install
nodejs
- install
yarn
- install
mysql
If you done all these local dependencies installed, then we can run the code through:
- install repo
dependencies
and repodevDependencies
:yarn install
- update your
development
database config by updatingconfig/development.yml
- generate .env file:
cp .env.iml .env
and edit your environment value in .env file - create the database and run the migration through:
yarn sequelize db:migrate
- run this repo:
yarn dev .env
The code will be match the eslint requirement, and we will use the prettier
and eslint
to make sure you commit the code with the same format.
So it will automatically format your code when versionize your code through git commit
, or if you are using the VSCode, it will automatically format
the code when you save it.