Skip to content

DeeTheDev/RandomQuestions

 
 

Repository files navigation

Random Questions

Installation

Required:

Node.js to run.

MongoDB Community Edition (local server) to run.

  • Stores Database
  • Stores Passport JS login info (default to keep user logged in after server refresh node app.js)

Configure mongoDB connection in App.js file:

//  Change mongodbAuth variable to connect to your mongoDB
let mongodbAuth = "mongodb://localhost:127.0.0.1/questions"; //excludes mongodb auth user and password
mongoose.connect(
  mongodbAuth,
  { useNewUrlParser: true, useFindAndModify: false, useUnifiedTopology: true },
  function (err) {
    if (err) {
      console.log(err);
    }
  }
);

Install the dependencies and start the server.

-> Go to repo folder path
$ npm install -d //installs dependencies
$ node app.js // or nodemon

Then server will run locally and you can display in browser:

127.0.0.1:4040 or localhost:4040

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. You are currently free to clone/fork this repo.

About

Random questions application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 46.4%
  • EJS 27.1%
  • CSS 26.5%