https://github.com/vertikajain/company-api
https://github.com/vertikajain/company-api
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vertikajain/company-api
- Owner: VertikaJain
- Created: 2020-10-27T11:48:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T04:51:41.000Z (over 4 years ago)
- Last Synced: 2025-01-18T07:13:04.898Z (5 months ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Company Application
## REST APIs
1. `GET` - to display Employee list.
2. `GET` - to show project list in Drop Down option of Add Employee.
3. `POST` - to save New Employee data -> Name, Email, Phone and Project Title.
4. `POST` - to save New Project data -> Project title and Key.
## Technology Stack
1. NodeJS
2. Express
3. MongoDB
4. BootStrap
5. Mongoose library
## Project Structure1. `server.js` file to initialize the project (starts server).
2. `routes` folder representing all the API routes.
4. `controllers` folder includes the backend logic for Employee and Project, handling the functionality.
5. `models` folder has Schema and Model defined for Employee and Project.
6. `index.html` includes the front-end, designing and calls JS scripts for dynamic manipulation.
7. `app.js` includes all the AJAX calls, integrating the HTML part with the APIs on the backend.
8. `.env` hidden file that includes the DATABASE_URL for connecting to MongoDB using Mongoose.