An entry management system using MERN Stack Visitors would be required to fill in their details as well as the host details. During the check-in time, corresponding host will be notified via mail and SMS. Upon checkout, visitor would be notified via mail and SMS. Every entry would be stored in MongoDB
To run it locally -
- Fork the repo and clone it.
- Edit
server/routes/entries.js
and replaceaccountSid= 'ACxxxxx'
,authToken='Your Twilio Auth token Here'
,twilioNumber='Your twilio number'
with your Twilio account credentials. Also replaceemailId='Your email'
,password='your password'
with the gmail account details the mail would be sent from. Additionally you will have to change the account security settings andallow
less secure apps. - Make sure you have
npm
Node.js & MongoDB installed in your system. - [Only once] Run (from the root)
cd server && sudo npm install
andcd .. && cd client && sudo npm install
. - Open two terminal windows (one for running Server and other for the UI).
- Start MongoDB service with
sudo service mongod start
. - Run
cd server && sudo node index.js
to start the server. By default it will run onport 8000
. - For UI run
cd client && sudo npm start
and it will open on a new tab onport 3000
. - Go to
http://localhost:3000
to see the application running.