This is a simple Express API for user authentication and question management. It allows users to sign up, log in, view questions, submit solutions, and manage questions (only accessible to admins).
- Clone the repository:
git clone https://github.com/PratyushSawan/full-stack-assignment
- Navigate to the project directory:
cd full-stack-assignment
- Install dependencies:
yarn
ORnpm install
- Start the development server:
yarn run dev
- Access the API at
http://localhost:3001
Create a new user account.
POST /signup
--
Log into your account.
POST /login
--
Get a list of questions
GET /questions
--
Add a submission in a question
POST /submissions
--
Add a submission in a question
GET /submissions
--
Add a submission in a question
POST /questions