Skip to content

πŸ“Ingress: an easy to use MVP on entry management, Ingress was built using Node.js and MongoDB database using mongoose, It uses ejs (embedded javascript templates), it also supports sending EMAILS and SMS using nodemailer module and Nexmo API respectively

License

bymayanksingh/ingress-entry-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

52 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Open Issues Forks Stars Maintained Made with Node.js Open Source Love Built with Love Telegram/codemonk08

Index

About

This is Ingress an easy to use MVP on entry management, Ingress was built using Node.js and MongoDB database using mongoose, It uses ejs (embedded javascript templates), it also supports sending EMAILS and SMS using nodemailer module and Nexmo API respectively, this project was implemented as my submission for the summergeeks 2020 internship challenge by Innovacer, It meets all the criterias as mentioned in the assignment provided by summergeeks.

Usage

Installation

Development

If you just want to do a simple test run of the application, you can first

  • Clone the repository
$ git clone https://github.com/code-monk08/entry-management.git
  • Install dependencies by using the following commands.
$ cd entry-management
$ sudo npm install
  • Obtain API Key & API Secret from Nexmo SMS API

  • create a .env file in root directory and assign the following environment variables NOTE: don't version control your .env file, make sure .env is added in .gitignore file

$ cd entry-management
$ touch .env
$ echo "PORT={5001 or port of your choice}" >> .env
$ echo "SECRET={some secret message of your choice}" >> .env
$ echo "EMAIL={your email id}" >> .env
$ echo "PASSWORD={your email password}" >> .env
$ echo "NEXMOAPIKEY={your nexmo api key for sms}" >> .env
$ echo "NEXMOAPISECRET={your nexmo api secret for sms}" >> .env
  • Finally run the application using
$ mongod
$ node app.js

File Structure

  • Below is the current file structure.
.
β”œβ”€β”€ app.js
β”œβ”€β”€ node_modules
β”œβ”€β”€ config
β”‚   β”œβ”€β”€ auth.js
β”‚   β”œβ”€β”€ keys.js
β”‚   └── passport.js
β”œβ”€β”€ LICENSE
β”œβ”€β”€ logo
β”‚   └── Ingress.png
β”œβ”€β”€ models
β”‚   β”œβ”€β”€ Host.js
β”‚   └── Visitor.js
β”œβ”€β”€ package.json
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ README.md
β”œβ”€β”€ routes
β”‚   β”œβ”€β”€ hosts.js
β”‚   └── index.js
└── views
    β”œβ”€β”€ dashboard.ejs
    β”œβ”€β”€ layout.ejs
    β”œβ”€β”€ login.ejs
    β”œβ”€β”€ partials
    β”‚   └── messages.ejs
    β”œβ”€β”€ register.ejs
    └── welcome.ejs

7 directories, 19 files
  • Dependency Graph

Guideline

  • Code Style

In order to maintain the code style consistency across entire project I use a code linter. Therefore, I kindly suggest you to do the same whenever you push commits to this project.

The JavaScript code linter I use is called eslint, ESLint requires Node.js and works on Windows, Mac and Linux

$ npm install eslint --save
  • Usage
$ eslint . --fix

For more details and available options, please check the eslint website.

  • Close Issues

Close issues using keywords: how to ?

Gallery

Credit/Acknowledgment

Contributors

License

License

Logo Credit

Logo used in this document is credited to Ingress Icon by Icons8

About

πŸ“Ingress: an easy to use MVP on entry management, Ingress was built using Node.js and MongoDB database using mongoose, It uses ejs (embedded javascript templates), it also supports sending EMAILS and SMS using nodemailer module and Nexmo API respectively

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published