GithubHelp home page GithubHelp logo

Copyfighters campaign website

Codeship Status for copyfighters/copyfighters

Development

Setup

  1. Make sure you have Python, its package manager pip and the package virtualenv installed. You can install the latter with pip install virtualenv.
  2. Set up a virtual environment inside this folder using virtualenv -p $(which python3) .venv --prompt "(venv) " or virtualenv ./ under Windows.
  3. Enter your virtual environment using source .venv/bin/activate or ./Scripts/activate.bat under Windows, or use something like virtualenvwrapper.
  4. Use pip install -r requirements.txt to install all back-end dependencies.
  5. Use npm install to install front-end dependencies.

Updates

  • After an update to the back-end, you need to redo setup steps 3 and 4 and run ./manage.py migrate.
  • After an update to the front-end, you need to redo setup step 5 and run gulp build.

Getting ready

  1. Make sure you have entered your virtual environment (see step 3 of setup).
  2. Run the local server ./manage.py runserver.

Front-end tools

gulp

General tasks
  • gulp build runs the copy-fonts, css, js tasks.
  • gulp watch runs the css and js-all tasks on every file change.
Specific task
  • gulp copy-fonts copies fonts to the static directory.
  • gulp css converts SASS to CSS including concatenation and minifaction.
  • gulp js runs the js-all and js-ie tasks.
  • gulp js-all concatenates and minifies all JS files.
  • gulp js-ie concatenates and minifies all polyfill JS files for Internet Explorer.
  • gulp js-lint checks all JS files for errors.
  • gulp sass-lint checks all SASS files for errors.

Docker

The project can be run using docker:

  • docker build -t copyfighters/copyfighters .
  • docker run -t -d -e DB_HOST=foobar -e DB_PASSWORD=foobar -e RAVEN_DSN=https://... -e EMAIL_HOST=foobar -p 8000:8000 --restart unless-stopped copyfighters/copyfighters

#copyfighters's Projects

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.