Skip to content

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.

Notifications You must be signed in to change notification settings

olawuwo-abideen/movie

Repository files navigation

Movie

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.

Built With:

  • JavaScript
  • Node
  • Express
  • dotenv
  • mongoose
  • nodemon
  • Sentry
  • amqplib
  • axios
  • jest

Installation

  • clone the repository
git clone [email protected]:olawuwo-abideen/movie.git
  • navigate to the folder
cd movie.git

Run the app in development mode

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.

API Endpoints

The following API endpoints are available:

Admin Service

  • POST /movie - Create a movie
  • DELETE /movie - Delete a movie

Customer Service

  • POST /customer/signup - Create a customer account
  • POST /customer/login - Customer login
  • GET /customer/address - Get customer address
  • GET customer/profile - Get customer profile

Delivery Service

  • POST /delivery/signup - Create a delivery account
  • POST /delivery/login - Delivery login
  • GET /delivery/address - Get delivery address
  • GET delivery/profile - Get delivery profile

Movies Service

  • POST /movie/create - Create a movie
  • GET /genre/:type - Get movie by genre type
  • GET /:id - Get movie by id
  • GET /:id - Get movie by id

Notification Service

  • POST /notification/sendEmail - Send email
  • POST/notification/sendSMS - Send sms

Payment Service

  • POST /payment/makePurchase - Make purchase
  • GET /payment/getPurchaseById/:id - Get purchase by id

Shopping Service

  • POST /cart - Add movie to cart
  • POST /wishlist - Add movie to wishlist
  • GET /cart/:id - Delete movie from cart
  • GET /cart - Get movie in cart
  • GET /wishlist - Get all wishlist
  • DELETE /wishlist/:id - Delete movie in wishlist
  • POST /order - Create order
  • GET /order/:id - Get order by id
  • GET /orders - Get all orders

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Authors

👤 Olawuwo Abideen

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published