Skip to content

Prototype of upcoming website for international film festival Cinema Perpetuum Mobile

License

Notifications You must be signed in to change notification settings

abitrolly/next.filmfest.by

 
 

Repository files navigation

next.filmfest.by

Travis

This is a WIP website for Cinema Perpetuum Mobile short film festival. Our goal is to gracefully replace the existing version of the website feature by feature.

The new version should have a good-enough admin panel that can be used by film festival volunteers. The featureset is taken from the experience we've gathered during previous festivals.

How to contribute

We welcome all contributors and enhancements that help to make an awesome tool for festival. Feel free to jump in and help with things to your liking.

The most straightforward areas to contribute are:

  • backend written in Django / Wagtail
  • frontend - a lot can be done here
  • design / styling
  • data migration (organize data related to previous festivals in JSON)

Communication

Development process

We use github for development. In order to start one needs to fork and clone the repository:

  1. fork kinaklub/next.filmfest.by using github UI

  2. clone forked repository to one's local machine:

    git clone git@github.com:yourusername/next.filmfest.by.git
    
  3. add upstream repository as a remote:

    git remote add upstream git@github.com:kinaklub/next.filmfest.by.git
    

Before starting working on next improvement one usually does the following:

  1. switch to local master:

    git checkout master
    
  2. pull recent changes from upstream master:

    git pull upstream master
    
  3. create a new feature branch:

    git checkout -b branch_name
    
  4. create corresponding branch in one's fork:

    git push -u origin branch_name
    

After commiting everything to the feature branch one usually does the following:

  1. push the changes to one's fork:

    git push
    
  2. create a pull request using github UI.

PR review process:

  1. we use Travis CI for launching tests on PRs

  2. we don't merge PRs to master until tests are green

  3. we require the PRs to be reviewed by at least one team member

  4. reviewer adds comment "LGTM" when one think the PR is good to be merged

  5. PRs are usually merged by the authors

Development environment

  1. Install Docker and docker-compose

  2. Don't forget to set DOCKER_HOST environmental variable or add yourself to group docker

  3. Start web contatiner:

    docker-compose up web
    
  4. Give postgres 20-30 seconds to initialize

  5. DB provisioning (should be performed only once from another terminal):

    docker-compose run web migrate
    
    docker-compose run web update_index
    
    docker-compose run web createsuperuser
    
  6. Visit http://127.0.0.1:8000/ in your web browser

Recreating development environment

If one wants to recreate their development environment from scratch and one doesn't care about the existing data in database, one needs to:

  1. stop all the containers:

    docker-compose stop
    
  2. remove containers

    docker-compose rm -r
    
  3. rebuild images

    docker-compose build
    
  4. use quickstart guide above for setting up the development environment

Testing code

The command below is usually enough for local testing:

docker-compose run web test

If Python dependencies have changed recently, one might need to add paramter -r once:

docker-compose run web test -r

About

Prototype of upcoming website for international film festival Cinema Perpetuum Mobile

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 74.5%
  • HTML 11.8%
  • CSS 7.0%
  • JavaScript 6.7%