Creating a server for the front-end WTWR application.
- User Registration
- User Login
- Authorization with middleware
- Authentication with JSON web tokens.
Server: Node, Express, Mongoose, JWT, GCP
Endpoint | Methods | Description |
---|---|---|
/signup |
POST |
Create a new user |
/signin |
POST |
Sign into your account |
Endpoint | Methods | Description |
---|---|---|
/users/me |
GET |
Get users details |
/users/me |
PATCH |
Update user account |
Endpoint | Methods | Description |
---|---|---|
/items |
GET |
Get list of clothing items |
/items |
POST |
Create clothing item |
/items/:id |
POST |
Delete clothing item |
/items/:id/likes |
PUT |
Like clothing item |
/items/:id/likes |
DELETE |
Dislike clothing item |
Clone the project
git clone https://github.com/colburncodes/se_project_express
Go to the project directory
cd se_project_express
Install dependencies
npm install
Create a .env
file in root directory
JWT_TOKEN="yoursecrethere"
MONGODB_URI="mongodb://localhost:27017/wtwr_db"
Start the server
npm run start to launch the server
npm run dev to launch the server with the hot reload feature
Frontend Application
What To Wear
Backend API
WTWR API
Frontend application using React Frontend Repo Here