Skip to content

Grad-U-Ace/backend-garudahacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guruda-Backend

https://guruda-api-kv422ek6cq-et.a.run.app

Deployed with cloud run.

API Docs: https://guruda-api-kv422ek6cq-et.a.run.app/api/schema/swagger-ui/

Development Guide

  1. create and run the virtual environment
    python virtualenv venv
    source venv/bin/activate
    
  2. Install libraries
    pip install -r requirements.txt
    
  3. Create a .env on root with the following format:
    PG_NAME=
    PG_USER=
    PG_PASSWORD=
    PG_HOST=
    PG_PORT=
  4. Create Migrations
    python ./manage.py makemigrations
    python ./manage.py migrate
  5. Run the local server
    python ./manage.py runserver

Running in Docker

  1. Build image
    docker build . -t gbhisma/guruda-api
  2. Run
    docker run -d -p 8000:8000 --name guruda-api --env-file=.env  <your-image-tag>   
    docker run -d -p 8000:8000 --name guruda-api --env-file=.env  gbhisma/guruda-api
    Should be accessible from http://localhost:8000/

About

A Backend Repo for Garuda Hacks Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors