Skip to content

PEEZYBEE/python-p3-freebie-tracker

 
 

Repository files navigation

Freebie Tracker

A simple Python project using SQLAlchemy and SQLite to track freebies given to developers by companies.


Getting Started

Follow these steps to fork the repo, set up your environment, create the database, seed it with sample data, and run the test script to see the output.


1. Fork and Clone

  • Fork this repository to your own GitHub account.
  • Clone your fork locally:
git clone =https://github.com/PEEZYBEE/python-p3-freebie-tracker
cd python-p3-freebie-track


Make sure you have Python 3 installed.
```bash
 -pipenv install
 -pipenv shell


## Run the script to create the SQLite database and tables:

``bash
 -python create_db.py

Expected output:
✅ freebies.db created and tables initialized!


Populate the database with initial sample data:


 -python seed.py

Expected output:
✅Database created successfully!

 Run the Debug/Test Script
Run the script to fetch and print all freebies from the database:

 -python debug.py

Expected output (example):

✅Freebie: Sticker | Value: 5 | Dev: Alice | Company: Safaricom  
✅Freebie: T-shirt | Value: 20 | Dev: Bob | Company: Airtel


MIT License


by peezybee

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 98.3%
  • Mako 1.7%