This project is a Freebie Tracker app designed to help developers keep track of swag (free items) they collect from hackathons and events. The main models are:
- Company: Companies that give out freebies.
- Dev: Developers who receive freebies.
- Freebie: Items given to developers by companies.
The relationships are:
- A
Companyhas manyFreebies. - A
Devhas manyFreebies. - A
Freebiebelongs to oneCompanyand oneDev. - A
CompanyandDevhave a many-to-many relationship through freebies.
View the full database schema here:
Schema Link
-
Install dependencies and activate environment
Run the following commands inside your project directory:pipenv install pipenv shell
-
Run Migrations Create and apply migrations to set up the database schema, including the freebies table
-
Seed the database Use the provided seed.py script to populate the database with sample data:
python seed.py