Skip to content

hygorxaraujo/wttd

Repository files navigation

Eventex

Eventex project for the Welcome to the Django course.

Build Status Maintainability Test Coverage

Develop

Dependencies

  1. Python 3.8
  2. Pipenv
  3. Docker
  4. docker-compose

Setup

  1. Clone the repository
  2. Create an environment with pipenv
  3. Start a shell with the created environment
  4. Configure the environment variables with the .env
  5. Start the application
  6. Run the tests
git clone git@github.com:hygorxaraujo/wttd.git wttd
cd wttd
pipenv install --dev
pipenv shell
cp contrib/.env.template .env
pipenv run up
pipenv run tests

Running

  • Start: pipenv run up
  • Access: http://localhost/
  • Stop: pipenv run down
  • Test: pipenv run tests
  • Make migrations: pipenv run makemigrations

Deploy

This repository is already configured with an automatic deploy. After each commit to master, the deploy is started to Heroku on https://eventex-hygor.herokuapp.com/.

Dependencies

  1. heroku-cli

Setup and deploy

  1. Setup an instance in Heroku
  2. Send configurations to Heroku
  3. Define a safe SECRET_KEY for the instance
  4. Define DEBUG=False
  5. Define the stack as container
  6. Configure the email service
  7. Send the code to heroku
heroku create myeventex
heroku config:push
heroku config:set SECRET_KEY=`python contrib/secret_gen.py`
heroku config:set DEBUG=False
heroku stack:set container
# configure email
git push heroku master --force