💡
deploydocs
  • Introduction
  • Going Live: Checklist : CARE
  • CARE: CLOUD DEPLOYMENT OVERVIEW
    • Cloud Infrastructure Diagram
    • Google Cloud deployment
      • Set up the network
      • Set up Databases
      • Create storage buckets
      • Create a GKE cluster
      • Configure GKE workloads
      • Post setup
    • Azure Deployment
    • AWS Deployment
  • CARE: Deploying Technology
  • Tech Overview: CARE
  • Tech Prerequisites: CARE
  • Setting up the server locally
  • Setting up AWS EKS
  • Setting up AWS RDS
  • Build and push docker image
  • Production Environment Variables
  • Deploying the projects on EKS
  • Requirements: AWS
  • Tech Infrastructure: CARE
  • Steps to Deploy: CARE
  • CARE: Deploying Operations
  • Operationalizing CARE in the field
  • Setting up the War-Room
  • Deployment Timeline
  • Ambulance Management System
    • SuperHero Network
  • TeleICU Tech Deployment
    • Setup Nursing Station Desktop
    • BPL Monitor Network Configuration
Powered by GitBook
On this page
  • Care Backend
  • Care Frontend

Was this helpful?

Export as PDF

Setting up the server locally

PreviousTech Prerequisites: CARENextSetting up AWS EKS

Last updated 3 years ago

Was this helpful?

To create a local development setup of the care backend and frontend projects, perform the following steps.

Care Backend

  • Install PostgreSQL on your machine. The instructions for the same can be found at

    • Change the authentication method to md5 instead of peer. The instructions for the same can be found in this

  • Install the GDAL and Geos libraries. ( This is required because Care Uses a PostGis database Connection by default, this is to power location fields which can be later be used for better location-based queries ) On Debian/Ubuntu systems, run sudo apt-get install libgdal-dev libgeos-dev python-dev

  • Clone the project: $ git clone https://github.com/coronasafe/care

  • $ cd care

  • Create a virtual environment: $ virtualenv -p $(which python3) venv

  • $ source venv/bin/activate

  • $ pip install -r requirements/local.txt

  • Set the DATABASE_URL environment variable for your Postgres database. ( By default it expects a database with the name "care", only change this variable if your database is named something else )

  • Run the database migrations: $ python manage.py migrate

  • Create a superuser: $ python manage.py createsuperuser

    $ python manage.py runserver

  • The project should be running at API Specs are available at and

Care Frontend

  • Make sure you have Node v10 or above installed on your machine.

  • Clone the project: $ git clone https://github.com/coronasafe/care_fe

  • $ cd care_fe

  • $ git checkout master

  • $ npm install

  • $ npm run start

The project should be running at In order to connect the backend to the frontend, modify proxy target for /api in webpack.config.js

https://www.postgresql.org/download/
StackOverflow Answer
http://localhost:8000
http://localhost:8000/redoc
http://localhost:8000/swagger
http://localhost:4000