This is a clone of the Product Hunt website(https://www.producthunt.com) made using Django, Bootstrap 4 and JavaScript. PostgreSQl has been used as Database for this project.
This web application creates an online catalog for some products, where users can browse available products, upvote them, downvote them,add new products and manage their accounts with fully functional authentication system.
The main features that have currently been implemented are:
- There are models for products and users.
- Users can view list and detail information for products.
- Logged In Users can create, view and upvote models.
- Admin(Superuser) users can create and manage models.
To get this project up and running locally on your computer:
- Set up the Python development environment. I recommend using a Python virtual environment or you can use pipenv for less hassle.
- Assuming you have Python setup, run the following commands (if you're on Windows you may use
py
orpy -3
instead ofpython
to start Python):
pip3 install -r requirements.txt python3 manage.py makemigrations python3 manage.py migrate python3 manage.py collectstatic python3 manage.py createsuperuser # Create a superuser python3 manage.py runserver
- Open a browser to
http://127.0.0.1:8000/admin/
to open the admin site - Create a few test products to see the site in action.
- Open tab to
http://127.0.0.1:8000
to see the main site, with your new objects.
Enjoy!! :)