Entry Management System Application - Innovaccer SummerGeeks 2020 SDE-Intern Assignment.
- ReactJS
- ExpressJS
- NodeJS
- MongoDB
- npm
- Node
- Mongodb (https://www.mongodb.com/cloud/atlas)
- Nexmo
- Simply clone or download the project.
- Make an account on http://www.nexmo.com/ for messaging service.
- Make an account on MongoDB (https://www.mongodb.com/cloud/atlas) atlas for database.
- Change the content of db_config.js file present in config folder.
module.exports = {
mongoURI:
"mongodb+srv://USER:PASSWORD@test-cluster1-cwybb.mongodb.net/test?retryWrites=true",
secretOrKey: "secret",
email: " Enter Email Address",
password: "Enter Password",
NEXMO_API_KEY: "Enter API Key",
NEXMO_API_SECRET: "Enter API Secret Key",
NEXMO_FROM_NUMBER: "Enter Registered Number"
};
- Start developing this awesome project.
- Run
npm install
. - Go to the client folder, and then run
npm install
. - Run
npm run dev
. - Visit
localhost:3000
.
─── Innovaccer-Intern-2020
|── api
| ├── send_mail.js
| └── send_sms.js
|── client
| |── public
| |── src
| | |── Components
| | | |── checkin.js
| | | |── checkout.js
| | | |── footer.js
| | | |── Header.js
| | | |── Home.js
| | | └── logbook.js
| | |── css
| | | |── footer.css
| | | |── header.css
| | | |── home.css
| | | └── table.css
| | |── app.js
| | |── index.css
| | |── index.js
| | |── routes.js
| | └── serviceWorker.js
| └── package.json
|── config
| └── db_config.js
|── controllers
| └── visitor.js
|── models
| └── details.js
|── Routes
| └── routes.js
|── app.js
└── package.json
- POST /checkin - to Check-In a visitor.
- POST /checkout - to Check-Out a visitor.
- GET /logbook - to get the log details.
- Visit the home page.
- Choose CheckIn or CheckOut button.
- Fill all the details mentioned in the form. If some fields get missed by mistake, it will be checked by the validator and alert box will appear automatically.
- Upon successfully registration, an alert box will appear. All the necessary details will now be sent to the host either through SMS (NEXMO) or by Mail(Nodemailer).
- After the visitor left, they can check their visit details by providing the email id they registered with in checkout section. They'll get the details on mail and SMS too.
- We can also check the log details by clicking upon Logbook button.