-
Notifications
You must be signed in to change notification settings - Fork 14
Dev Setup
Anthony Nandaa edited this page Oct 28, 2016
·
3 revisions
Beginners Edition
-
Fork and Clone the Repo
-
Rename the
maintt/maintt/.env.example
file to.env
and update the configurations appropriately:
DB_NAME=maintt
DB_USER=travis
DB_PASS=
DB_HOST=localhost
DB_PORT=3306
-
Create a VirtualEnv for the project, see the guide here.
-
cd
into the/maintt
package and run:
pip install -r requirements.txt
- Run migrations
Optional: You will need to create migrations for the api
application in case they are not there.
python manage.py makemigrations api
python manage.py migrate
- Create a
superuser
for the purpose of testing
python manage.py createsuperuser
TIP: use admin / admin for simplicity.
- Run the server:
python manage.py runserver [port-number]
- Access DRF's Browsable API at:
http://localhost:port/api/
Login with the superuser created in the previous step above.