This is back end API micro-services built on JavaScript and Node.JS's modules including ExpressJS and Prisma. JWT library is also helping with encryption of user's password.
You can use my Swagger User Interface for API testing:
The service is live with a running MySQL Database Server (thanks to Docker and Digital Ocean's virtual machine). A sample link to get sample data is: Get list of movie
APIs usage demonstration with POSTMAN: https://youtu.be/2mkc9OyU4-w
- USER MANGEMENT API
POST http://178.128.154.4:3030/api/users/signup Request Body:
{
"name": "testuser10",
"email": "testadduser@gmail.com",
"phone": "0123456789",
"pass_word": "1234" ,
"role_id": 3
}
Result:
If user is not exist in the database, a new user will be created with their password being encrypted in the database.
GET http://178.128.154.4:3030/api/users/signin Request body:
{
"email": "testadduser@gmail.com",
"passWord": "1234"
}
Result:
If the user exist in database, you will sign in successfully. A new token will be generated for that user to perform activities like deleting, modifying the data.
- Film Management
After signing in, you will be able to delete, update, or add more films of your choice. You can also view list of films divided by page number, and film related to theaters. You are also able to upload images as film's poster and save those images in the database
- Ticket Management:
Users can generate film tickets for customers, or create a showtime for the theater.
- Theater Management:
Users can add theaters and their banner through the database. Those information will be saved to the database.
- Create a "login with Facebook" function