This is originally a project in Harvard's CS50W course. You can visit my version here! 🚀
I wanted to build an auction commerce that had an ebay kind of feel. I ended up adding a carousel in JavaScript and several custom built components. This was a long project to do, mostly because of the user interface, as the project grows larger, everything is harder to mantain in order. Despite of the size I managed to keep everything as simple and commented as posible. Feel free to make any suggestions!
- HTML
- CSS
- JavaScript
- Django
- Python Decouple - Stores enviroment variables securely.
Make sure both python and virtualenv are installed on your OS.
- Fork the project.
- Clone project using
git clone git@github.com:<YOUR-USERNAME>/auctions_site.git
. - Run
virtualenv env
thenenv\scripts\activate
. - Once in your virtual enviroment
(env)
, runpip install -r "auctions_site\requirements.txt"
. - You need to generate a SECRET_KEY now, in order to do so you have to:
(env)... cd auctions_site (env)... auctions_site\python >>> from django.core.management.utils import get_random_secret_key >>> SECRET_KEY = get_random_secret_key() >>> exit()
- Create a
.env
file and pasteSECRET_KEY=[NEW_SECRET_KEY]
- Run
python manage.py runserver
All logic contained in Views.py
in the auctions
folder. There is mostly querys going on, but nothing too over the top or complicated. The comments themselves should make everything clear as to what is going on.
This site was deployed using Railway.