twitee is a mini and substandard runoff of Twitter. Users register and login and can put up anything that crosses their mind. The whole world can view their twits and comment on their twits /and like them.
FEATURES
- User can register
- User can log in
- User can post twit
- User can delete twit (if owned by user)
- User can add comments under twits
- User can like twit
- User can view all twit
Tools
- Typescript
- Postgres
- Prisma
- Jest
Postman: See documentation
====
Auth
====
POST /api/tsv1/auth/register
POST /api/v1/auth/login
===
Twiit
===
POST /api/v1/twits
GET /api/v1/twits
GET /api/v1/twits/:twitId
GET /api/v1/twits/users/:userId
POST /api/v1/twits/likes/:twitId
POST /api/v1/twits/comments/:twitId
- A twit can have a comment
- A comment is a twit 😉
git clone https://github.com/mr-chidex/Twitee.git
cd Twitee
- Create a file named
.env
in the project root directory - Add the environment variables as described in the
dev.env
file
yarn install
yarn dev