Giter Site home page Giter Site logo

event_tracker_api's Introduction

eventtracker_api

Event Tracker for municipal audit body

A Backend python project, using django and django rest framework to build the api, connected with a postgresql database.

See the frontend project (event_tracker_react)

Running the docker

Building

Use the Dockerfile to build the image.

Ports

Expose the port 8000.

Volumes

Container volume optional description
/static no You need map this folder to a webserver, to serve the static files.
On the start of the container, it will verify if the static folder is empty, and if so, will collect the static files.
/code yes The python code of the project.
This folder can be mapped if you want to change the code on the fly, without rebuilding the docker.

Enviroment

Enviroment default optional description
SECRET_KEY secretkeyissecret yes (at your on risk) secret key for your django project. Please change this!
ALLOWED_HOSTS * yes (at your on risk) allowed urls to your backend
DEBUG 1 yes (please change in production) 0 => debug off, 1 => debug on
DJANGO_MANAGEPY_MIGRATE off yes change to on with you want to make a migrate on the start of the container
PG_DB_HOST changeme no Host of your database (postgresql), without port
PG_DB_PORT 5432 yes Port for your database
PG_DB_USER changeme no Name of the user to access the database
PG_DB_PASSWORD password changeme no password to access the database
PG_DB_NAME event_tracker changeme no Name of the database
CORS_ALLOWED_ORIGINS no Endpoint of your frontend. To allow communication between diferent domains or subdomains.
Can be multiple addresses separated with a comma (https://domainone.com,https://domaintwo.com)

Before start

Connect to the api container, and create a superuser.

python /code/manage.py createsuperuser

Connect to the database container, and create the database.

psql -U user

CREATE DATABASE name;

event_tracker_api's People

Contributors

jonasbm avatar

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.