This is a port of Toolhunt to FastAPI.
Credit should be given to the original authors, mainly nbarnabee as the principal contributor.
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/fastapi-toolhunt.git cd fastapi-toolhunt
-
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.yml
file. -
Run the Database Migrations
Run the database migrations:
make migrate
-
Seed the Database
Seed the database with initial data:
make seed
-
Run the Application
The application should now be running. You can access it at
http://localhost:8004
. -
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 initial data.make db-shell
: Access the database shell.
For a comprehensive list of commands, run make
.