Stackunderflow supported features/APIs:
- Healthcheck
- Register a new user
- Login user
- Ask Question
- Update Question
- Edit other's question - If reputation of editing user is meeting standard for this task.
- Upvote Question
- Downvote Question
- Get all answer for a given question
- Post Answer
- Update Answer
- Upvote Answer
- Downvote Answer
-
Make sure you have
nodejs v16.13.1
anddocker
installed on your system. -
Clone the repository using
git clone git@github.com:22sujata8d/stackunderflow.git
orgit clone https://github.com/22sujata8d/stackunderflow.git
according to you system git settings. -
Run docker compose file using
docker-compose up
to start the POSTGRES DB. -
Create the database stackunderflow using command
create database stackunderflow
. -
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
-
Run
npm install
to install packages frompackage.json
ornpm ci
to install frompackage-lock.json
. -
Run
npm run start
to start the server atlocalhost:8000
.
You can visit the document related to APIs in the root folder of stackunderflow named as APIs.jpeg
.