mockpostie is a tool to mock API requests. This repo contains backend for mockpostie.
-
rename
.env.sample
to.env
and update your credentials -
install dependencies:
pip install -r requirements.txt
-
make migrations:
python3 manage.py makemigrations
-
migrate:
python3 manage.py migrate
-
start virtualenv:
source env/bin/activate
or./venv/bin/activate
-
start django server in development:
DJANGO_ENV=development python3 manage.py runserver
-
start django server in production:
python3 manage.py runserver
cd frontend
- install dependencies:
npm install
- start:
npm start
cd frontend
npm run build