Code Monkey home page Code Monkey logo

question-answer-rest-api's Introduction

Question Answer Rest Api


This is a rest api which allows you to :

  • In account Section you can :

  • > Register
  • > Login
  • > Edit your profile
  • > Add profile image, place , about section etc
  • > Reset Password With Email Verification

  • In Question Section you can :

  • > Ask Questions
  • > Edit Your Question
  • > Delete Your Question
  • > See other Questions
  • > Like/Undolike Questions
  • > Search and filter Questions by title

  • In answer Section you can :

  • > Answer Questions
  • > Edit Your Answers
  • > See other Answers
  • > Like/Undolike other Answers
  • > Filter other Answers by content and user

  • In moderation Section you can :

  • Admin Section that allow you to :
  • >Delete others questions
  • >Delete others answers
  • >Block a user

HOW TO USE IT


First off all, you need to add these thing to environment variables (or create "Config/config.env" to main folder)

  • >PORT
  • >NODE_ENV("development" or "production")
  • >MONGO_URI (local or from mongo)
  • >JWT_SECRET_KEY
  • >JWT_EXPIRE(ex. 10m)
  • >COOKIE_EXPIRE(ex. 10 for 10 seconds)
  • >RESET_PASSWORD_EXPIRE(ex. 36000 for 1 hour)
  • FOR NODEMAILER (that is how we reset email with email)

  • >SMTP_HOST (ex smtp.gmail.com)
  • >SMTP_PORT (ex. 587)
  • >SMTP_USER (ex. [email protected])
  • >SMTP_PASS (ex. yourpassword123!)

Then install the necessary packages

Finally open your terminal and type npm run start


Made by MaliBYK

question-answer-rest-api's People

Contributors

malibyk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.