Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

GDG-Ukraine/gdg.org.ua

Repository files navigation

Stories in Ready

`master` branch status

codecov

Uptime Robot status

Uptime Robot ratio (last 7 days)

gdg.org.ua

This is the event registration system for GDG Ukraine events.

Requirements:

  • Python 3.5+ (it is recommended to use pyenv for dev environment)
  • NodeJS 5.0+ (it is recommended to use nvm for dev environment)
  • MySQL (MariaDB works well)

Prerequisites:

Create DB and user, with smth like:

Create .exports file with following contents:

For dev add following line as well:

How to run it on localhost

  • First, prepare the environment:
  • Create database tables:
  • Start application:
  • Open http://localhost:8080/ in your favourite browser and have fun :)

P.S. make dev (or just make) combines steps above except db target

How to run it in production

  • Prepare the environment:
  • Create database tables:
  • Start application:

How to upgrade production (DEPRECATED!)

We have bin/update_gdg script for this

Running tests

You can use [tox](https://tox.readthedocs.org) to run tests as well. Unfortunately, due to some bug in tox itself some special steps are required.

Enabling env

If you for some reason need to run shell with env activated, run this:

Troubleshooting

Errors with installing mysql-connector-python

If you are getting errors about pip cannot find mysql-connector-python you can use the following workaround:

or download the mysql-connector-python archive manually and then try to install requirements again.

If you see any wheel-related error output, you may want to avoid it by using --no-use-wheel option. E.g.: