The project is a simple social media application that allows users to create posts and follow each other.
Follow the steps below to install and set up the project:
- Install the project dependencies by running the following command in your terminal:
$ yarn
- Start the Docker services defined in the Docker Compose file by running:
$ docker compose -f docker/compose.yaml up -d
- create a
.env
file in theworkspaces/backend
directory and add the following environment variables:
DATABASE_URL="DATABASE_URL="postgresql://atlys:changeme@localhost:5432/twipper?schema=public"
- Navigate to the backend workspace and generate the Prisma client
$ cd workspaces/backend
$ yarn prisma generate
- Run the migrations and start the development server
$ yarn prisma migrate dev --name init
$ yarn dev
You can access the API documentation by visiting the following URL: API Documentation
Here are the tasks that need to be completed:
- Conduct a walkthrough of the codebase to understand its structure and functionality.
- Review the codebase and make notes of areas that can be improved.
- Optimize the
/api/v1/posts/feed
endpoint for better performance. - Implement the
/api/v1/users/:id/follow
endpoint to allow users to follow each other.