GithubHelp home page GithubHelp logo

ramazansancar / unicorn-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gathering/unicorn-backend

1.0 1.0 0.0 876 KB

Backend/API for UNICORN

Home Page: https://competitions.gathering.org

License: MIT License

Shell 0.20% JavaScript 1.10% Python 90.99% CSS 0.11% HTML 7.30% Dockerfile 0.30%

unicorn-backend's Introduction

UNICORN ๐Ÿฆ„

Unified Net-based Interface for Competition Organization, Rules and News.

Running locally (with Docker ๐Ÿณ)

Before running, make sure to create and populate local environment variables. You can copy the provided example file and then modifying default or adding values to blank settings.

cp .env.example .env

Then, in order to start the development stack, run the following command:

docker-compose up -d

When running for the first time, or after clearing the database, remember to run the following commands as well:

docker-compose exec web python unicorn/manage.py migrate
docker-compose exec web python unicorn/manage.py createsuperuser

You should now be able to access the application at http://localhost:8000/

Some apps may also provide seed data. This can be loaded by running the following command with appropriate adjustments to the last argument.

docker-compose exec web python unicorn/manage.py loaddata unicorn/seed.json

Contributing

Ensure you have pre-commit installed - brew install pre-commit (or replace brew with your package manager, such as yum or apt)

Run pre-commit install to have it check your staged changes before allowing you to commit. To skip the pre-commit checks (usually not recommended, but helpful when you'd want to save WIP or similar), use git commit --no-verify.

Authentication providers

Keycloak

  1. Set up according to upstream docs: https://python-social-auth.readthedocs.io/en/latest/backends/keycloak.html
  2. Create a mapper to get group memberships
    • Go to Clients -> [client name] -> Mappers
    • Click Create
    • Select "Group Membership" for Mapper Type
    • Name the mapper "groups"

unicorn-backend's People

Contributors

eriktm avatar niccofyren avatar

Stargazers

Jeff Snow avatar

Watchers

James Cloos 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.