![JavaScript Style Guide](https://camo.githubusercontent.com/7166bd080fe0035dac8d677ddb7c9f48833c51c4923c609e04a44bdab9f07ebb/68747470733a2f2f63646e2e7261776769742e636f6d2f7374616e646172642f7374616e646172642f6d61737465722f62616467652e737667)
![JavaScript Style Guide](https://camo.githubusercontent.com/eec9ddc8b4c75fec16ca8907960c876e6d6c4dabcd71bbb4a8e8f9dfb23ef10d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d7374616e646172642d627269676874677265656e2e737667)
- Copy
variables.env.sample
to variables.env
& custom it
npm start
// or
npm run watch
npm run seed
npm run seed:delete
npm run seed:refresh
curl -X GET \
http://localhost:3000/
curl -X POST \
http://localhost:3000/api/authenticate \
-H 'content-type: application/json' \
-d '{
"email": "[email protected]",
"password": "123456"
}'
curl -X GET \
http://localhost:3000/api/users \
-H 'authorization: Bearer {{YOUR_TOKEN}}'
curl -X POST \
http://localhost:3000/api/sign-up \
-H 'content-type: application/json' \
-d '{
"name": "Mail1",
"email": "[email protected]",
"password": "123456"
}'
curl -X GET \
'http://localhost:3000/api/confirm-sign-up?token={{YOUR_TOKEN}}'
curl -X GET \
http://localhost:3000/api/test-axios \
-H 'authorization: Bearer {{YOUR_TOKEN}}'
curl -X POST \
http://localhost:3000/api/forgot-password \
-H 'content-type: application/json' \
-d '{
"email": "[email protected]"
}'
- API Confirm reset password:
curl -X GET \
'http://localhost:3000/api/confirm-resest-password?token={{YOUR_TOKEN}}'
curl -X GET \
http://localhost:3000/api/get-user-current \
-H 'authorization: Bearer {{YOUR_TOKEN}}'