Giter VIP home page Giter VIP logo

django-polls-rest's Introduction

Polls API using Django REST

This repository defines the basic working of Polls API.

Let's first clone our sample django application from

git clone https://github.com/yvsssantosh/django-polls-rest.git

Just to make sure we're on master branch, run the command git checkout master

To test the application locally, let's create a virtual environment, and test the server

# Creating a virtual environment
mkvirtualenv pollsapi

# Installing current project requirements
pip install -r requirements.txt

# Connect to postgres
export POSTGRES_USER=postgres
export POSTGRES_DB=postgres
export POSTGRES_PASSWORD=postgres
export POLLSAPI_PG_HOST=127.0.0.1

# Running migrations
python manage.py migrate

# Setup Google Storage to serve Static Files (Optional - Read NOTE below to avoid this)
export GS_ACCESS_KEY_ID=YOUR_GOOGLE_STORAGE_ACCESS_KEY_ID
export GS_SECRET_ACCESS_KEY=YOUR_GOOGLE_STORAGE_SECRET_ACCESS_KEY
export GS_BUCKET_NAME=YOUR_GOOGLE_STORAGE_BUCKET_NAME
# NOTE : If you do not want to setup this, remove the `LAST 6 LINES` under STATIC_FILES_SETTINGS in pollsapi/settings.py & set DEBUG = True in settings.py file

# Start the local server
python manage.py runserver 0.0.0.0:8000

To deploy this application using Kubernetes on GKE, with Ingress Load Balancing, visit https://github.com/yvsssantosh/django-on-k8s/

django-polls-rest's People

Contributors

dependabot[bot] avatar yvsssantosh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-polls-rest's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.