npm install.env file using .env.example as an examplenpx dotenv sequelize db:createnpx dotenv sequelize db:migratenpx dotenv sequelize db:seed:allGET /api/tweets
GET /api/tweets/:id
id in the paramsPOST /api/tweets
Must be logged in
Creates a tweet
Expects a body of:
DELETE /api/tweets/:id
Must be logged in
Deletes a tweet with
If successful, returns a success message
PUT /api/users/token
Logs in a user
Expects a body of:
DELETE /api/users/session
Logs out a user
If successful, returns a success message
GET /api/users/me
Must be logged in
Returns the current user information
POST /api/users
Signs up a user
Expects a body of:
password2 is expected to be the same as password
If successful, returns user information and a token