Demo site deployed on herokuapp : http://thenortheastportal.herokuapp.com/
A web portal created with node.js and express. MongoDB is used as the database.
This project is completely deploy ready. There are some config variables that have to be edited, that's it.
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
Following are required if the project has to be tested in localhost
Node
MongoDB
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
...
}
Add all the following keys
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
Deploy to a service like Heroku or AWS Elastic Beanstalk Use hosted mongodb server like mongodb on AWS or mLab