https://github.com/romijulianto/open-music-api
https://github.com/romijulianto/open-music-api
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/romijulianto/open-music-api
- Owner: romijulianto
- Created: 2022-04-23T18:50:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-22T08:38:53.000Z (almost 3 years ago)
- Last Synced: 2025-01-19T08:15:15.528Z (4 months ago)
- Language: JavaScript
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Open Music API
Dicoding Fundamental Back End Submission
# V1:
- Get, Add, Edit, Delete Song using PostgreSQL Database
- Data Validation using Joi
- Error Handling (to advoid boiler plate)
- Using Eslint with Airbnb style guide# V2:
- Authentication using JWT Token (login, refresh access token, logout)
- Database Normalization (playlist collaborations)
- Get, Add, Delete Playlist
- Add, Get, Delete Song to Playlist with Authorizatization (for owner & collaborator)# V3:
- Export Song from Playlist (message broker implemented using RabbitMQ)
- Image Upload (local storage implemented)
- Server-Side Cache (using redis)# Setup:
- npm install
- npm run migrate up
- npm run start-dev# Tools:
- Node.js
- Hapi Framework
- PostgreSQL
- Eslint
- JSON Web Token (JWT)
- Joi
- RabbitMQ
- Redis
- Postman# .env
# server configuration
HOST=localhostPORT=5000
# node-postgres configuration
PGUSER=developerPGHOST=localhost
PGPASSWORD= your postgreSQL passowrd
PGDATABASE=songsapp
PGPORT=5432
# JWT Token
ACCESS_TOKEN_KEY=REFRESH_TOKEN_KEY=
ACCESS_TOKEN_AGE=1800
# Message broker
RABBITMQ_SERVER=amqp://localhost# Redis
REDIS_SERVER=localhost