This is non-optimized minimal backend app with mysql and node js. Backend app theme is "Ticketing Online"
- NodeJS v14 LTS
- MySQL
- Make sure you had clone this repo
- Copy environment from
.env.exampleto.env - Configure your
.envfile according to your MySQL credentials - Open your terminal in this project and run
npm i - And then
npm start
-
POST
/api/auth/registerRoute for add new user -
POST
/api/auth/loginRoute for login user -
PATCH
/api/auth/activeRoute for active user account -
POST
/api/auth/passwordRoute for forgot password -
PATCH
/api/auth/password/:id/:emailRoute for edit password -
PATCH
/api/auth/userRoute for edit user profile -
PATCH
/api/auth/user/:idRoute for get user profile -
POST
/api/admin/moviesRoute for add new movie -
PUT
/api/admin/moviesRoute for add new movie -
DELETE
/api/admin/movies/:idRoute for delete movie -
PATCH
/api/admin/movies/:idRoute for update movie -
GET
/api/admin/moviesRoute for get all movies -
GET
/api/moviesRoute for get all movies -
GET
/api/movies/:idRoute for get all movie detail -
GET
/api/movies/:idRoute for get movie details -
GET
/api/admin/cinemasRoute for get all cinema lists -
GET
/api/admin/cinemas/:idRoute for get cinema details -
POST
/api/admin/cinemasRoute for add new cinema -
PUT
/api/admin/cinemasRoute for add new cinema -
PATCH
/api/admin/cinemas/:idRoute for update cinema -
DELETE
/api/admin/cinemas/:idRoute for delete cinema -
GET
/api/cinemasRoute for get all cinema lists -
GET
/api/cinemas/:idRoute for get cinema details -
POST
/api/admin/genresRoute for add new genre -
PUT
/api/admin/genresRoute for add new genre -
PATCH
/api/admin/genres/:idRoute for update genre -
DELETE
/api/admin/genres/:idRoute for delete genre -
GET
/api/admin/genresRoute for get all genre -
GET
/api/admin/genres/:idRoute for get genre details -
GET
/api/genre/:nameRoute for get all movies by genre name -
POST
/api/moviegoersRoute for add moviegoers -
PATCH
/api/auth/activeRoute for activated user account -
PATCH
/api/auth/passwordRoute for send email for edit user password -
POST
/api/auth/registerRoute for add new user -
PATCH
/api/auth/password/:id/:emailRoute for edit user password -
PATCH
/api/auth/user/:idRoute for edit user profile -
GET
/api/auth/user/:idRoute for get all user by id -
GET
/api/showingRoute for get movie showing -
GET
/api/movies/month/:monthRoute for get movie by month -
GET
/api/auth/user/:idRoute for get all user by id -
POST
/api/transactionRoute for post transaction -
GET
/api/historyRoute for get user all order history -
GET
/api/history/:idRoute for get user order history detail -
GET
/api/ticket/:idRoute for get movie show times -
POST
/api/admin/movies/timeRoute for post time -
POST
/api/admin/movies/showtimes/:idRoute for post show times -
GET
/api/auth/user/:idRoute for get all user by id

