- Clone this repo
- Do
yarn install
ornpm install
- Rename .env.example to .env and fill the MySQL DB credentials
- Adjust MySQL username and password if needed in db/config.json for the migration (i use root as username and no password)
- Run
npm run db:create
oryarn run db:create
to create the DB (if you haven't create it manually) - Run
npm run db:migrate
oryarn run db:migrate
for migration (creating DB tables) - Run
npm run db:seed
oryarn run db:seed
to insert some users (i don't create endpoint to add users) - Run
npm start
oryarn start
to start the application.
This is my first ever Express + Typescript app. And i think i miss the intended result for point 4 of the test. However i hope for the best.
I also assuming to create auth endpoints first but it didn't metioned in the stories so i just skip it.