Features
- User register
- User auth
- Protected routes with JWT
Install packages running
yarn
Copy the env example to .env
cp .env.example .env
You need MySQL database to run this project. You can use the following command to start a docker with mysql and user setted:
docker run --name mysql -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -d mysql
Edit the .env file with the database informations ans generate a hash string to use on JWT_HASH.
After database created and running, run the sequelize migration
npx sequelize-cli db:migrate
Then you can start the project running
yarn dev
You should a message like: Server running on port 3333
Done. Enjoy it!