Giter Site home page Giter Site logo

getsentry / demo-movie-search Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 3.79 MB

A internal demo application with Django backend and React frontend.

Dockerfile 0.58% JavaScript 43.20% HTML 1.57% CSS 40.32% Shell 0.50% Python 13.82%
tag-non-production

demo-movie-search's Introduction

Django Demo Application

This is a sample application that represents a movie and tv-shows search engine.

Prerequisites

This demo assumes that there is a Postgres server running on localhost port 5432. Further it assumes a database called demo_app_django_react accessible by a user called demo_app_django_react identified by the password demo_app_django_react.

Running

To run this project just run docker compose up --build This will start the Django backend at http://localhost:8000 and the React frontend at http://localhost:3000/app

Configuration

You can configure the Sentry SDK of the Django Backend and the React frontend with environment variables.

For the backend you can set the following environment variables:

  • DJANGO_SENTRY_DSN (must be set)
  • DJANGO_SENTRY_RELEASE (optional, defaults to "0.0.1")
  • DJANGO_SENTRY_ENVIRONMENT (optional, defaults to "dev")
  • DJANGO_SENTRY_TRACES_SAMPLE_RATE (optional, defaults to "1.0")

To see all env variables have a look at the Dockerfile: https://github.com/getsentry/demo-app-django-react/blob/main/Dockerfile#L4-L10

The React frontend can be configured with following environment variables:

  • REACT_APP_SENTRY_DSN (must be set)
  • REACT_APP_SENTRY_RELEASE (optional, defaults to "0.0.1")
  • REACT_APP_SENTRY_ENVIRONMENT (optional, defaults to "dev")
  • REACT_APP_SENTRY_TRACES_SAMPLE_RATE (optional, defaults to "1.0")

To see all env variables have a look at the index.js: https://github.com/getsentry/demo-app-django-react/blob/main/app/src/index.js

API

HINT: There is a browsable API, so you can open all the following example URLs in your browser and inspect the behaviour of the API.

demo-movie-search's People

Contributors

antonpirker avatar dependabot[bot] avatar lforst avatar sl0thentr0py avatar

Stargazers

 avatar

Watchers

 avatar  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.