Microservice Backend to Movie Rental application that allows movie enthusiasts to browse, search for, rent,and manage their movie collections, admin can add and delete movies, customer can sigup and order for video rentage, delivery user can create account and deliver movie to customer.
- JavaScript
- Node
- Express
- dotenv
- mongoose
- nodemon
- Sentry
- amqplib
- axios
- jest
- clone the repository
git clone [email protected]:olawuwo-abideen/movie.git
- navigate to the folder
cd movie.git
Open a terminal window session, or the equivalent on your machine, and enter the following command to install all the Node modules needed to run the app:
npm install
After doing an npm install
enter the following npm start
command:
npm start
This will start the app and set it up to listen for incoming connections on port 3000. Open up your browser of choice and go to the url
http://localhost:3000
to start using the app.
The following API endpoints are available:
- BaseUrl https://localhost:3000/
POST /movie
- Create a movieDELETE /movie
- Delete a movie
POST /customer/signup
- Create a customer accountPOST /customer/login
- Customer loginGET /customer/address
- Get customer addressGET customer/profile
- Get customer profile
POST /delivery/signup
- Create a delivery accountPOST /delivery/login
- Delivery loginGET /delivery/address
- Get delivery addressGET delivery/profile
- Get delivery profile
POST /movie/create
- Create a movieGET /genre/:type
- Get movie by genre typeGET /:id
- Get movie by idGET /:id
- Get movie by id
POST /notification/sendEmail
- Send emailPOST/notification/sendSMS
- Send sms
POST /payment/makePurchase
- Make purchaseGET /payment/getPurchaseById/:id
- Get purchase by id
POST /cart
- Add movie to cartPOST /wishlist
- Add movie to wishlistGET /cart/:id
- Delete movie from cartGET /cart
- Get movie in cartGET /wishlist
- Get all wishlistDELETE /wishlist/:id
- Delete movie in wishlistPOST /order
- Create orderGET /order/:id
- Get order by idGET /orders
- Get all orders
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
👤 Olawuwo Abideen
- GitHub: @Olawuwo Abideen
- Twitter: @Olawuwo Abideen
- LinkedIn: @Olawuwo Abideen