Teebay is a fullstack application built with React, Apollo Client, Express.js, GraphQL, Prisma, and PostgreSQL. It allows users to seamlessly rent, buy, and sell products in various categories like electronics, furniture, and more.
cd ./backend
- Replace
yourpassword
in thedocker-compose.yml
file with a password of your choice. - Replace
yourjwtsecret
in thedocker-compose.yml
file with a secret of your choice.
Run the following command to start the backend services in detached mode:
docker compose up -d
cd ./frontend
Create an .env
file in the root of the frontend directory and add the following line:
VITE_GRAPHQL_URL=http://localhost:4000/graphql
Run the following command to start the frontend services in detached mode:
docker compose up -d
Once both the backend and frontend services are up and running, you can access the application by navigating to the appropriate frontend URL (http://localhost/3000
).
- Ensure that Docker is installed and running on your system before starting the setup.
- If you encounter any issues, check the logs using:
docker compose logs
- Stop the services when they are no longer needed:
docker compose down