Frontend repository - link
Backend repository - current
- JavaScript
- React
- Redux
- Axios
- React Bootstrap
- Node.js
- Express.js
- JWT & BCrypt Authentication
- PostgreSQL
- Sequelize ORM
Method | Path | Purpose | auth |
---|---|---|---|
GET | '/' | Test if your server is running | no |
POST | '/echo' | Test POST requests | no |
POST | '/signup' | Create a new user and get a token | no |
POST | '/login' | Get a token with email & password | no |
GET | '/me' | Get information of this user | yes |
GET | '/cats' | Get all cats | no |
GET | '/instruments' | Get all instruments | no |
GET | '/songs' | Get all songs | no |
GET | '/songs/me' | Get my songs | yes |
GET | '/favourites' | Get user's favourite songs | yes |
POST | '/song' | Create a new song | yes |
PUT | '/like/:userId/:postId' | Increase like counter for the post | yes |
PUT | '/favourite/:userId/:postId' | Increase fav counter for the post | yes |
DELETE | '/like/:userId/:postId' | Decrease like counter for the post | yes |
DELETE | '/favourite/:userId/:postId' | Decrease fav counter for the post | yes |
PATCH | '/song/:postId' | Change name or/and description of your post | yes |
DELETE | '/song/:postId' | Delete your post | yes |
Server starts on PORT=4000
- start server
npm run start
- start server with
nodemon
in development mode
npm run dev
- start server with delay on response
npm run devdelay