Skip to content

korafdavid/Qanda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qanda app backend

Backend api for a question and answer app write in Node js and express js framework. Database CRUD Operation and relationship on Mongodb atlas and Mongoose.

Project Structure

Qanda
┣ config
┃ ┗ authorizarion.js
┣ models
┃ ┣ chatModel.js
┃ ┣ postmodel.js
┃ ┗ userModel.js
┣ routes
┃ ┣ authenication.js
┃ ┣ post.js
┃ ┗ resetpassword.js
┣ .gitignore
┣ index.js
┣ package-lock.json
┣ package.json
┗ README.md

Get Started

   node index.js

END POINTS CREATED!!


   {
       text: "This is my first post",
       user: {
           firstName: "David",
           lastName: "Okoroafor",
           username: "korafdavid",
           verified: false,
       }, 
       like: 0,
       comment: 0,
       date: "25 mins ago"
   }

Environment Variable

  • DB_CONNECT
  • TOKEN_KEY
  • EMAIL
  • EMAILPASS
DB_CONNECT MONGODB
TOKEN_KEY JWK SECRET KEY
EMAIL EMAIL
EMAILPASS EMAIL SECRET KEY
KEY_ID AWS S3 BUCKET KEY ID
SECRET_KEY AWS S3 BUCKET SECRET KEY
BUCKET_NAME AWS S3 BUCKET NAME
If you found repository helpful, don't forget to leave a star.