This is a simple form application built using Django and Django Rest Framework(DRF).
- Clone the repository:
$ git clone https://github.com/taptorestart/forms.git
- Install dependencies:
$ cd backend
$ python -m venv venv
$ source ./venv/bin/activate
$ pip install -r requirements.txt
- Run the migrations:
$ python manage.py migrate
- Create superuser:
$ python manage.py createsuperuser
- Set environment variables:
Create .env file on the project root directory. And set your values.
DJANGO_SETTINGS_MODULE=config.settings.api or config.settings.admin
DB_NAME=YOUR_DB_NAME
DB_USER=YOUR_DB_USER
DB_PASSWORD=YOUR_DB_PASSWORD
DB_HOST=YOUR_DB_HOST
DB_PORT=YOUR_DB_PORT
REDIS_HOST=YOUR_REDIS_HOST
REDIS_PORT=YOUR_REDIS_PORT
- Run
$ python manage.py runserver
Run celery on the other terminal window.
$ celery -A config worker -l info
/swagger-ui/