GithubHelp home page GithubHelp logo

mdruger / chipy.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chicagopython/chipy.org

0.0 2.0 0.0 1.24 MB

Chicago Python (ChiPy) user group main website codebase

Home Page: http://www.chipy.org/

License: MIT License

Makefile 0.12% Python 21.87% HTML 22.01% JavaScript 8.53% CSS 46.94% Dockerfile 0.29% Shell 0.24%

chipy.org's Introduction

Chipy.org

The code for the Chipy.org website This project is open source and the license can be found in LICENSE.

CircleCI

Chipy.org is setup using the 12factor methodology. The site is normally powered by Heroku, but you can use Docker and Docker Compose for local development.

Installation

To get setup with chipy.org code it is recommended that you use the following:

Setting up a Local development environment using Docker

Clone the repo

git clone git://github.com/chicagopython/chipy.org.git chipy.org

Make the project directory your working directory:

cd chipy.org

Run the setup command to configure the environment. This will copy a default configuration file from docker/docker.env.sample to docker/docker.env.

make setup_env

You may customize the docker/docker.env as needed for your development needs.
The docker/docker.env file should NOT be committed version control.

To start the app, you can run the following command. This will start up the web app and a database as services using docker-compose.

make up

After running make up, you need to migrate the database. This will create the tables and database objects needed to run the site.

make migrate

Next, you should create a superuser to use to login to the site admin with.

docker-compose exec web ./manage.py createsuperuser

Finally, you should be able to visit your site, but entering the following in your url bar:

http://localhost:8000

For local development, Social Auth will be disabled by default. Therefore, to log into the Django Admin interface, you will need to visit the following url and login with the superuser credentials that you created above.

 http://localhost:8000/admin/

Chipy.org uses Pytest to help ensure code is working properly. All tests must pass before merging code, and tests should be added as new functionality is added. If you would like to run tests for the app, run the following:

make test

Chipy.org uses Pylint to encourage good software development techniques. All Pylint checks must pass before merging code. If you would like to run the Pylint linting process, run the following:

make lint

If you want to execute a shell into your container, run the following: once your app is running with make up:

docker-compose exec web bash

If you want to see the application logs, use the following command. To stop viewing the logs, you can press ctl-c.

docker-compose logs -f web

To run an arbitrary Django management command, you can use the following form. The below example shows you how to run the help management command, but other Django management commands can be run the same way.

docker-compose exec web ./manage.py help

Heroku Commands

This application is deployed to production using Heroku. You should not need to use these for basic site development, but are provided here as a guide for people deploying the site to Heroku.

# Deploy changes to master
git push heroku master

# Deploy feature branch  
git push heroku feature/mybranch:master

# Collectstatic
heroku run python manage.py collectstatic --noinput

# Set sync and migrate the database
heroku run python manage.py migrate

# Set environment variable on Heroku
heroku config:set DEBUG=True

chipy.org's People

Contributors

emperorcezar avatar joejasinski avatar brianray avatar raymondberg avatar camrudnick avatar tanyaschlusser avatar mnewsome avatar db654 avatar tathagata avatar adeolapure avatar carlfk avatar bhchance avatar jerry-dumblauskas avatar ctxlken avatar lschumm avatar ne0zen avatar selecsosi avatar obf73 avatar

Watchers

Michael Druger avatar 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.