A movie and tv shows databse & subscription suggester based on user favourites.
Refereace website: https://reelgood.com/all
TODO: https://github.com/nowshad-sust/subskribe/projects
- Docker
- NodeJS
- Clone the repository
git clone https://github.com/nowshad-sust/subskribe.git
. - Open terminal after running
cd subskribe
. - Start
Posgtres
andpgadmin
by runningdocker-compose up -d
. - Now
Posgtres
andpgadmin
should be running on port6543
and5555
respectedly. - Open two seperate terminal instance inside
client
andserver folder
. - Run
npm install
on both the instances. - Run
npm run start:dev
on both the instances. - The
server
should be up on http://localhost:4000. - The
client
should be up on http://localhost:3000.
- A
node-cron
job crawls movie data every 24 hours and updates/adds to the PostgreSQL database. - REST APIs based on Node-Express queries database using TypeORM.
- React-Redux frontnend consumes the APIs and shows the data accordingly.
METHOD | ENDPOINT | DESCRIPTION |
---|---|---|
POST | /api/v1/auth/login | Logs in a user with credentials. |
POST | /api/v1/auth/register | Register a new user. |
PUT | /api/v1/auth/change-password | Changes password of an existing user. |
GET | /api/v1/programs | Get paginated program list. |
GET | /api/v1/programs/favourites | Get user's favourites list. |
GET | /api/v1/programs/requests | Get all requested programs as admin. |
POST | /api/v1/programs/requests | Add a new program request. |
PUT | /api/v1/programs/requests/approve | Approve a pending program request. |