Skip to content

A internal demo application with Django backend and React frontend.

Notifications You must be signed in to change notification settings

getsentry/demo-movie-search

Repository files navigation

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.

About

A internal demo application with Django backend and React frontend.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •