Skip to content

naijadeveloper/maket

Repository files navigation


Stargazers LinkedIn Twitter Portfolio website Support me



Logo

Maket

CHECK OUT WEBSITE

A simple 'online marketplace' with django!
Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Contributing
  3. Contact
  4. Acknowledgments


About The Project

The website features user authentication, profile management, item listings and ratings, messaging between sellers and buyers, search functionality, a shopping cart, media storage and PostgreSQL database management.

The app lets you create an account and management items, you want to sell. Although, the feature "checkout" isn't available. This was a project built for the purpose of understanding the features of 'Django'. A 'practice project', if you will ✌🏾

Built With

  • Python
  • Django
  • Cloudinary
  • Supabase

Contributing

  1. Fork the Project
  2. Clone project to local device
  3. Create a virtual evironment and install the packages (pip install -r requirements.txt)
  4. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  5. Commit your Changes (git commit -m 'Add some AmazingFeature')
  6. Push to the Branch (git push origin feature/AmazingFeature)
  7. Open a Pull Request

Note

Some of my struggles

  • I don't know if you would ever encouter this, but I struggled for a week or so trying to install django-cloudinary-storage package with python 3.12, the problem had something to do with 'building wheel', I tried a lot of solutions, only one worked for me. I installed python 3.10 and used that to install the package globally, and then I tried installing the package again, locally, in my virtual environment with python 3.12 and it worked, why? lol I don't know, shhhhh don't ask questions, if it ain't broken no more leave it lol.
  • To allow your app/website communicate with the postgresql database, you need the engine django.db.backends.postgresql_psycopg2 but this won't work without pip install psycopg2-binary. Initially I was using sqlite3 for database, then I launched the website on vercel and I met the 500 internal server error. For this I can suggest 3 solutions
  1. Make sure you have included your environment variables in vercel
  2. Make sure you have this psycopg2-binary installed
  3. Vercel doesn't support sqlite databases, because it is a serverless environment. Read more about this here

Contact

Acknowledgments

Inspiration