Skip to content

getsentry/demo-movie-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Demo Application

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

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

Sponsor this project

Packages

No packages published

Contributors 5