-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up a local development server
-
Install necessary server-side dependencies.
-
Database: create role
DATABASE_USER
with login passwordDATABASE_PASSWORD
, create databaseDATABASE_NAME
, grant all permissions on the database to the role. All values are listed in the .env file on the server. -
Create
virtualenv
environment (follow steps in Server configuration). -
To create the database tables, we have to apply Django migrations:
python manage.py migrate
-
Retrieve the datasets from the civicdata server by copying the
civicdata/assets
folder:
scp -r your_user_name@civicdata.lmc.gatech.edu:/home/pnguyen87/civicdata/assets path_to_project_root_folder
-
To import the datasets from
assets/datasets
, run custom Django command:
python manage.py import_data
- Install necessary client-side dependencies (follow steps in Client configuration).
- To create the bundle from the client-side code using webpack, run
yarn build
Run command python manage.py runserver
. For development, set ALLOWED_HOSTS=localhost
and DEBUG=true
in .env config file.