- node version 18.12.1
- npm
- postgres
Start by cloning this project:
git clone https://github.com/urosmeh/user-quote-backend.gitInstall dependencies:
cd ./user-quote-backend
npm installSetup database until .env doesn't exist
# Launch the development server
npm run devYour server now runs on http://localhost:3000/.
- Authentication
/auth/login [POST]- login/auth/signup [POST]- signup
- Users
/users/{id} [GET]- get user by id
- Quotes
/quotes [GET]- get all quotes/quotes/{id} [GET]- get quote by id/quotes/{id}/upvote [PATCH]- upvote quote with id equal to {id}/quotes/{id}/downvote [PATCH]- downvote quote with id equal to {id}
- Me
/me [GET]- get current user/me/my-quote [POST]- post a quote/me/my-quote [PATCH]- update current users quote
- To learn:
- TypeScript
- NestJS
- To revise and expand backend technology knowledge.