Giter Site home page Giter Site logo

bymayanksingh / ingress-entry-management Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 3.77 MB

πŸ“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: MIT License

JavaScript 57.06% HTML 42.94%
nodejs js eslint ejs nodemailer nexmo-sms mongoose

ingress-entry-management's Introduction

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

ingress-entry-management's People

Contributors

bymayanksingh avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ingress-entry-management's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.