Skip to content

rakibhasan48/thenortheastportal

Repository files navigation

Demo site deployed on herokuapp : http://thenortheastportal.herokuapp.com/

The North East Portal

A web portal created with node.js and express. MongoDB is used as the database.

Getting Started

This project is completely deploy ready. There are some config variables that have to be edited, that's it.

Important notes

To register government users, a ministry key is required. Only 'modoner' user can assign new ministry keys. 'modoner' user will be created automatically when website is deployed. If password change of modoner is required, then 'pass' variable under 'modonerUser' has to be changed in config/keys.js file

For the API details go to NEP_API folder

Prerequisites

Following are required if the project has to be tested in localhost

Node
MongoDB

Installing

Run npm install to install the node_modules

npm install

Make a database in mongodb with any name and edit config\keys.js file to add the address

{
    ...
    db_address : type the db_address here
    ...
}

Edit config\keys.js

Add all the following keys

Email address and host to send verification mails

email : {
    user : USERNAME
    password  : PASSWORD
    host : If sending from domain type domain here else leave   empty
    otherwise,
    
    service : If using service like gmail type service name like "GMAIL" else leave empty.
    Cannot leave both empty. Either use service or host.
    
},
aws : {...} // AWS bucket name and IAM accesskey and secret access key for image upload

db_address : Add database address of hosted mongodb like 'mLab'.
            Url should be of the form "mongodb://username:password@databse_url"
            
modonerUser : {
		email : email address of modoner,
		departmentName : "Ministry for Development of North Eastern Region",
		pass : password of modoner
}

api : {..} //route of api

Deployment

Deploy to a service like Heroku or AWS Elastic Beanstalk Use hosted mongodb server like mongodb on AWS or mLab

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published