Coder Social home page Coder Social logo

all-about-movies-backend's Introduction

README

This is the backend for All About Movies app.

Technologies and Libraries used

  • Express(Node)
  • Passport (for JWT authentication)
  • Otplib (For generation of OTP to be send to the registered user's mail)
  • Nodemailer (For sending OTP to the mail id)
  • MongoDb(Mongoose)

Rough manual

Database setup Install Mongo 3.4 from the official website. The platform specific installation instructions can be found here : https://docs.mongodb.com/manual/installation/

Once the installation is done, start up the ‘mongod’ server process. Make sure it is running on the default port 27017 Next run the mongo command in the terminal, in the prompt type the command use movies to create the movies database and then run the command `db.createCollection(“users”) to create the users collection

Then manually enter two users in the database: (The created_at and update_at are audit fields and are automatically generated when entered through the app) db.users.insert({ "name" : "firstuser", "phone" : NumberLong(9999999999), "email" : "email that you want to be registered 1", "is_logged_in" : false, "created_at" : ISODate("2017-04-20T08:38:11.451Z"), "updated_at" : ISODate("2017-04-20T08:38:11.451Z"), "otp_secret" : "" });

db.users.insert({ "name" : "seconduser", "phone" : NumberLong(9999999999), "email" : "email that you want to be registered 1", "is_logged_in" : false, "created_at" : ISODate("2017-04-20T08:38:11.451Z"), "updated_at" : ISODate("2017-04-20T08:38:11.451Z"), "otp_secret" : "" }); The database setup is complete. Running the project Run npm i on the root of the project The project is configured to run and debug inside the VSCode itself, the startup file of the project is /bin/www. To simply run the project from an external terminal, run this command node bin/www.

To run the app from within the VSCode, go to the Debug option on the left toolbar, and then run the project from the play button on the top with the Launch program option being chosen.

all-about-movies-backend's People

Contributors

zeeskhan1990 avatar

Watchers

James Cloos avatar  avatar

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.