Skip to content

A High-performance E-commerce build using Django, DRF, Postgresql, Redis for backend and Nextjs, Typescript, and tailwindcss for frontend

License

Notifications You must be signed in to change notification settings

gmrzone/cartdrop-api

Repository files navigation

Cartdrop E-commerce

A High-performance E-commerce build using Django, DRF, Postgresql, Redis for backend and Nextjs, Typescript, and tailwindcss for frontend


Currently, the project is in a very early stage of development. Here are some of the pages design screenshots from Figma

Link to frontend repository https://github.com/gmrzone/cartdrop

Desktop - 1 (1)


Desktop-Product-detail (1)


Desktop - login (1)

iPad mini - 1

iPhone SE - 1 (1)

iPhone SE - login (2)

How to run it?

  1. Clone the repository:
$ git clone https://github.com/gmrzone/cartdrop-api.git
  1. Go to the cloned directory:
$ cd cartdrop-api
  1. create a virtual environment and activate it:
$ python3 -m venv cartdrop-venv && source cartdrop-venv/bin/activate
  1. Install dependencies:
$ pip install -r requirements/local.txt
  1. Set envirinment variables for Project (Linux)
$ export DJANGO_SETTINGS_MODULE=config.settings.local
  1. Migrate Database load data in the database and create a super user with username=admin and password=cartdropadmin
$ python manage.py generate_data --create-admin
  1. Runserver:
$ python manage.py runserver

Run using Docker and docker Compose

  1. Clone the repository:
$ git clone https://github.com/gmrzone/cartdrop-api.git
  1. Go to the cloned directory:
$ cd cartdrop-api
  1. Build the application:
$ docker-compose build
  1. Start database:
$ docker-compose up -d db
  1. Migrate database and add data to database:
$ docker-compose run --rm django /bin/sh scripts/start_script.dev.sh

This will create a super account with username=admin and password=cartdropadmin

  1. Run the application:
$ docker-compose up

The application should now be available on http://127.0.0.1:8000/

About

A High-performance E-commerce build using Django, DRF, Postgresql, Redis for backend and Nextjs, Typescript, and tailwindcss for frontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages