This is a port of the Toolhunt backend to FastAPI. The frontend is available at Toolhunt frontend.
Credit should be given to the original authors, mainly nbarnabee and HWaruguru as the principal contributors.
To get the development environment up and running, follow these steps:
Before you begin, ensure you have the following installed on your machine:
- Docker: Install Docker
- Docker Compose: Install Docker Compose
- Poetry: Install Poetry
-
Clone the Repository
Clone the project repository to your local machine:
git clone https://github.com/blancadesal/toolhunt-backend.git cd toolhunt-backend -
Install Python Dependencies
Use Poetry to install the Python dependencies:
poetry install
-
Build and Start Docker Containers
Build and start the Docker containers using Docker Compose:
make start
This will build the Docker images and start the containers defined in the
docker-compose.ymlfile. -
Run the Database Migrations
Run the database migrations:
make migrate
-
Seed the Database
Seed the database with test data:
make seed
-
Run the Application
The application should now be running. You can access it at
http://localhost:8082. -
Stopping the Containers
To stop the running containers:
make stop
make start: Start the Docker containers.make stop: Stop the Docker containers.make restart: Restart the Docker containers.make status: Show the status of Docker containers.make web-logs: View logs from the web service.make init-db: Initialize the database schema.make migrations: Generate migration files.make migrate: Perform database migrations.make seed: Seed the database with test data.make db-shell: Access the database shell.
For a comprehensive list of commands, run make.