Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hellcipher/pizzeria-server
Backend repository for pizzeria app
https://github.com/hellcipher/pizzeria-server
Last synced: about 1 month ago
JSON representation
Backend repository for pizzeria app
- Host: GitHub
- URL: https://github.com/hellcipher/pizzeria-server
- Owner: hellcipher
- License: mit
- Created: 2022-11-11T18:46:01.000Z (about 2 years ago)
- Default Branch: develop
- Last Pushed: 2023-05-22T16:48:17.000Z (over 1 year ago)
- Last Synced: 2024-11-01T14:40:25.408Z (about 2 months ago)
- Language: JavaScript
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pizzeria Server
### This is the repository to host the pizzeria back end implementation code including routes, db models, configurations, dependencies and npm scripts.
# Directory Structure
```
.
├── README.md
├── config
│ └── dbconnect.js
├── controllers
│ ├── allPizzaController.js
│ ├── loginController.js
│ ├── logoutController.js
│ ├── placeOrderController.js
│ ├── registerController.js
│ ├── searchPizzaController.js
│ ├── updateProfileController.js
│ ├── userDashboardController.js
│ └── userFeedbackController.js
├── middlewares
│ ├── auth
│ │ └── verifyToken.js
│ └── user
│ └── updateProfile.js
├── models
│ ├── feedback.js
│ ├── ingredient.js
│ ├── order.js
│ ├── pizza.js
│ └── user.js
├── package-lock.json
├── package.json
├── routes
│ ├── auth
│ │ └── auth.js
│ ├── pizza
│ │ └── pizza.js
│ └── user
│ └── user.js
└── server.js
```
- `config/`
- holds the server configuration files. e.g. database config(connection file).
- `controllers/`
- holds the api controllers - methods to handle api requests.
- `middlewares/`
- holds the server middlewares to manipulate the requests. e.g. auth middleware (to validate api authentication) etc.
- `models/`
- holds the mongoose ORM models/ schemas for the different collections in the mongoDB database.
- `routes/`
- holds all the api routes e.g. auth routes such as login and register etc.
- `package.json`
- the metadata file used to describe the project and its dependencies. it holds the project info as well as the list of dependancies and npm scripts.
- `server.js`
- this is the project entry point. this file contains code for accumulating all the features and strat the server.
- `README.md`
- this file contains the project documentation.
# NPM Scripts
following NPM scripts can be used to run the app
- "start": "node server.js",
- "dev": "nodemon server.js"