/Cybros-Web-Application

Cybros Web Application Development

Primary LanguageHTMLMIT LicenseMIT

Cybros

DUB Join the chat

Cybros Web Application

Official web application of Cybros.

Getting Started

Prerequisites

Nodejs, mongodb

Installing

$ git clone https://github.com/Cybros/Cybros-Web-Application.git
$ cd Cybros-Web-Application
$ npm install

Configure Database server

open in new terminal window

$ mongod

Deployment

After configuring database server type code given below in terminal window(other than the one in which mongod server is running)

$ npm start

you must get something like this

$ Magic happens in port:3000

Then go to http://localhost:3000/

Managing data

Go to mongo terminal by typing

$ mongo

Then use database named "Cybros", in this all the user's data is saved in the collection named "users".

OR if you want to generate a ".csv" file use:

$ mongoexport --host localhost --db Cybros --collection users --csv --out text.csv --fields username,Password,Email

Create administrator

Go to mongo terminal by typing

$ mongo

Now you have to insert an admin data mannually in mongoDB and make sure you make "HasAccess" set to "true" as it is "false" by default

db.admins.insert({username:YOURUSERNAME, Password:YOURPASSWORD, Hasaccess:true});

Admin panel can be accessed from: http://localhost:3000/admin/

Built With

Contributing

Just open an issue with your suggestion.

License

This project is licensed under the MIT License - see the LICENSE.md file for details