Skip to content

22sujata8d/stackunderflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stackunderflow

Stackunderflow supported features/APIs:

  1. Healthcheck
  2. Register a new user
  3. Login user
  4. Ask Question
  5. Update Question
  6. Edit other's question - If reputation of editing user is meeting standard for this task.
  7. Upvote Question
  8. Downvote Question
  9. Get all answer for a given question
  10. Post Answer
  11. Update Answer
  12. Upvote Answer
  13. Downvote Answer

Setting up project locally

  1. Make sure you have nodejs v16.13.1 and docker installed on your system.

  2. Clone the repository using git clone git@github.com:22sujata8d/stackunderflow.git or git clone https://github.com/22sujata8d/stackunderflow.git according to you system git settings.

  3. Run docker compose file using docker-compose up to start the POSTGRES DB.

  4. Create the database stackunderflow using command create database stackunderflow.

  5. To form the database Schema. Run the following lines for the models in schema.

    • psql -f 1.sql stackunderflow
    • psql -f 2.sql stackunderflow
    • psql -f 3.sql stackunderflow
    • psql -f 4.sql stackunderflow
    • psql -f 5.sql stackunderflow
    • psql -f 6.sql stackunderflow
    • psql -f 7.sql stackunderflow
  6. Run npm install to install packages from package.json or npm ci to install from package-lock.json.

  7. Run npm run start to start the server at localhost:8000.

API Documentation

You can visit the document related to APIs in the root folder of stackunderflow named as APIs.jpeg.

API Document

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published