This project represents a student management application designed by CRUD philosophy. It can executes several actions against the DB – add, retrieve, update, and delete student details.
- Management of two main DBs:
- DB for the student management app
- DB that documents every path and method that have been used by the client (activated automatically).
- Two optional run modes: HTML & JSON
- Client application (only in JSON mode) – this app reads a provided text file which includes one of the CRUD commands. Then the app commits the specific command.
npm install
Run mode HTML:
npm run start
Run mode JSON:
npm start [--json]
Note: in order to activate the client app you must run "node client.js" in separate terminal.
Name | Description |
---|---|
client_input | Prepared input files for the client app usage. |
curl_test | Contains 2 repositories for different run modes – JSON/HTML Each repository includes input files for CURL usage. |
node_modules | Contains the installed packages: express, mongoose, pug, dotenv and the devDependencies: eslint |
src | Contains the source code |
src/models | Contains student model file and log model file |
src/public | Contains the main CSS file and 404 error file |
src/routes | Contains the router file (the response for every path and method) |
views | Contains all Pug files (responsible for the HTML template) |
.env.example | Contains my environment variables |
.eslintrc.js | Config settings for ESLint to checks code integrity |
.gitignore | Config settings for my git repository that tells git not to track certain files and folders that i don't want being uploaded to my main repository. |
package.json | File that contains metadata relevant to the project and it is used for managing the project's dependencies, scripts, version and more. |
server.js | The main file and the starting point of the server application |
client.js | The main file of the client application |
httpJSONRequest.js | JS file that work with any type of HTTP request. Work in JSON mode only and receieve only JSON strings (not buffers) and return only the body (the payload) and not the HTTP headers. |
👤 Shai Geffen
- Github: @shai987
- LinkedIn: @Shai Geffen
👤 Ron Eli
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2022 Shai Geffen & Ron Eli.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator