This is a the backend repository for the React application app's name
.
When cloning the project, change the sample.env
file name for .env
. The project will run on PORT 8000.
Then, run:
npm install
- To start the project run:
npm run start
- To start the project in development mode, run:
npm run dev
- To seed the database, run:
npm run seed
Users in the database have the following properties:
{
"username": String,
"email": String,
"hashedPassword": String
}
Action | Method | Endpoint | Req.body | Private/Public |
---|---|---|---|---|
SIGN UP user | POST | /api/v1/auth/signup | { username, email, password } | Public |
LOG IN user | POST | /api/v1/auth/login | { email, password } | Public |
GET logged in user | GET | /api/v1/auth/me | Private |