Giter VIP home page Giter VIP logo

mozilla-ignite's Introduction

=============== Mozilla Ignite

mozilla-ignite is a challenge and participation platform that's being built on-top of the betafarm architecture

The Project structure is based on Mozilla Playdoh

Contributing

Patches are welcome! Feel free to fork and contribute to this project on github.

Installation

The recommended setup is using vagrant and virtual box

Getting the source code

Clone the repository and its dependencies:

git clone --recursive [email protected]:mozilla/mozilla-ignite.git

This will take a few minutes.

This will keep the code living in your filesystem but the application running inside a VM.

Once you've installed vagrant, from the root of the repository copy the local vagrant settings.

cp vagrantconfig_local.yaml-dist vagrantconfig_local.yaml

Edit vagrantconfig_local.yaml if you want to change any of the defaults.

If you are on an NFS capable OS I recommend that you change nfs to true.

VirtualBox has know issues sharing files natively, more about this: http://vagrantup.com/docs/nfs.html

Update the local settings file

From the root of the repository copy the local python settings.

cp settings_local.py-dist settings_local.py

Amend settings_local.py adding your details:

  • ADMINS: Add an email address and a name.
  • SECRET_KEY: Used to provide a seed in secret-key hashing algorithms. Set this to a random string -- the longer, the better
  • HMAC_KEYS: Uncomment or add your own key inside it.

Start the VM

Now we are ready to provision the machine run.

vagrant up

This will take a few minutes, so go on and reward yourself with a nice cup of tea!

Add a host alias

This is done so you can access the application via: http://local.mozillaignite.org and perform the browserid assertion.

If you are on OSX or *NIX add an alias for the site by running the following command in your local machine:

echo "33.33.33.12 local.mozillaignite.org" | sudo tee -a /etc/hosts

Or if you prefer a GUI try http://code.google.com/p/gmask/

Now the application should be available at:

http://local.mozillaignite.org

Updating the application

The application is under develpment and from time to time there could be database changes.

There is an script is provided to make sure it is keep in sync

SSH into the VM:

vagrant ssh

Run the update script

fab update_local

Updating the VM

The virtual machine can be updated from time to time, and it is done via Puppet http://puppetlabs.com/

Update the server by running in your local machine from the root of the project:

vagrant provision

Runing the test suite

From inside the VM run the test suite:

fab test

Compress the assets

From inside the VM run:

python manage.py compress_assets

Creating a superuser

From inside the VM run:

python manage.py createsuperuser

Speed up the server

At the moment the wsgi application is served via apache, which it's a bit hacky in order to pick up the file changes and reload automaticaly.

If you want to speed up the application you could try stop apache and run the application via the development server.

NGINX is proxy-passing the port 8000 to 80 and serving most of the static and media files.

SSH into the virtual box:

vagrant ssh

Stop apache:

sudo /etc/init.d/apache2 stop

Run the development server

python manage.py runserver

License

This software is licensed under the New BSD License. For more information, read the file LICENSE.

mozilla-ignite's People

Contributors

alfredo avatar benrito avatar dhwthompson avatar erikrose avatar jacobabrennan avatar katzgrau avatar ozten avatar paulosman avatar rossbruniges avatar solarce avatar teemwork avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mozilla-ignite's Issues

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please reach out to [email protected].

(Message COC001)

Field 'is_live' on submissions is broken by pre_save signal

The is_live field automatically gets set on pre-save according to the moderate field on the challenge. This means it’s impossible to set it to any other value. I’m not convinced it serves any useful purpose, so I would suggest we just ditch it.

Fix up homepage ready to announce the winners

Using this bug to track feedback on the homepage updates - what data we want, what data we don't want. Please include copy updates for the page here too.

top-page

Top bit of the page

  • have removed the right most section in the bit under the headline so that we're no longer saying that we're announcing winners - as they have been announced!

middle-page

Middle bit of the page

  • Removed the random 5 entries and replaced with a 2 x 2 grid of winners containing - project name, project thumbnail, project brief description and project team info
  • Blog and events to the side of the winners

Questions:

  • Do we want the thumbnail? Not sure how much value they're bringing, and not all winners have a thumbnail
  • Do we have better project team information we can include - Will, do you have better names? Equally, is it important?

bottom-page

Bottom part of the page

Have included the category links so that people can still browse all the ideas

Wiki changes

FYI: The following changes were made to this repository's wiki:

These were made as the result of a recent automated defacement of publically writeable wikis.

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.