Link to frontend repository https://github.com/gmrzone/cartdrop
- Clone the repository:
$ git clone https://github.com/gmrzone/cartdrop-api.git
- Go to the cloned directory:
$ cd cartdrop-api
- create a virtual environment and activate it:
$ python3 -m venv cartdrop-venv && source cartdrop-venv/bin/activate
- Install dependencies:
$ pip install -r requirements/local.txt
- Set envirinment variables for Project (Linux)
$ export DJANGO_SETTINGS_MODULE=config.settings.local
- 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
- Runserver:
$ python manage.py runserver
- Clone the repository:
$ git clone https://github.com/gmrzone/cartdrop-api.git
- Go to the cloned directory:
$ cd cartdrop-api
- Build the application:
$ docker-compose build
- Start database:
$ docker-compose up -d db
- 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
- Run the application:
$ docker-compose up
The application should now be available on http://127.0.0.1:8000/