Skip to content

colburncodes/se_project_express

Repository files navigation

WTWR (What to Wear): BackEnd

Creating a server for the front-end WTWR application.

Badges

MIT License

Features

  • User Registration
  • User Login
  • Authorization with middleware
  • Authentication with JSON web tokens.

Tech Stack

Server: Node, Express, Mongoose, JWT, GCP

WTWR API Explorer

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

Run Locally

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

Accessing Deployed Application

Frontend Application What To Wear

Backend API WTWR API

Frontend application using React Frontend Repo Here