Coder Social home page Coder Social logo

jlm2017-nb-theme's Introduction

JLM 2017

This is the Nation Builder theme used by jlm2017.fr , the website of Jean-Luc Mélenchon campaigns for French Presidential Elections.

How it works ?

This repository uses Bower to manage dependencies, and Gulp as build system.

It separates building and deployment phase. It replaces the flat folder structure that NB uses by default by a logical hierarchy.

It must be used in conjunction with the official NationBuilder Theme Sync for Mac or with the NationSync CLI tool.

Install

We assume that you have in /somedir/theme-xxx the directory containing the theme you are working on. This is the flat version downloaded from NB.

You should use one of the synchronization tool to keep you website up to date with this directory.

First move to another directory, and clone the repository :

git clone https://github.com/guilro/jlm2017-nb-theme.git my_theme

Install dependencies :

cd my_theme
npm install
bower install

Then, create a symbolic link from the build destination of the theme to the synchronized folder :

ln -s /somedir/theme-xxx dist/theme

Start editing the theme in the src directory. When you want to build you changes to the synchronized folder, run :

npm run build

You can use npm run watch to watch for changes in the theme and update in real time.

Using Vagrant development environment

A Vagrant development environment is maintained to ease administration tasks. Take a look at Vagrant website to get started and install apps. Then:

vagrant up

It will take some time to download clean image and install dependencies.

Then connect to the machine:

vagrant ssh

Your development sources will stay in sync in /vagrant directory. You can now start to work:

vagrant ssh
cd /vagrant/
npm run build

Note: Nationsync package is installed. See https://github.com/jlm2017/nationsync to configure. Then, you can:

vagrant ssh
cd /vagrant/dist/theme
nationsync watch

Developers documentation

The official theme documentation of NationBuilder is very rich and a good source of information, even if it is incomplete and full of error.

Another very good source of knowledge is the default theme of NationBuilder, which serves as basis for this theme, and use most of the features offered.

jlm2017-nb-theme's People

Contributors

jillro avatar mcbennn avatar zawamush avatar

Watchers

 avatar  avatar  avatar  avatar

jlm2017-nb-theme's Issues

Bandeau d'avertissement sur page groupe d'appui si pas d'adresse email

Certaines personnes n'ont pas d'adresse email enregistrée car elles ont créé leur compte via FB ou Twitter. Si elles rejoignent un groupe d'appui, elles seront injoignables. Si elles créent un groupe d'appui, elles n'auront aucun moyen de joindre les autres tant que #3 n'est pas résolu.

Formulaire groupe d'appui envoyé deux fois

Sous Firefox, le formulaire de création de groupe d'appui s'envoie en double si la personne clique deux fois sur le bouton envoyer avant la fin de la requête AJAX.

  • vérifier que ce n'est pas le cas aussi pour le formulaire d'évènement locaux

pas de validation sur le formulaires "contribuer"

[FIREFOX]

On peut essayer du soumettre un texte vide dans le formulaire "contribuer".
Le serveur renvoie "NB.EventHub.dispatch('form.failure',{errors:["Page headine est vide"],form:'.suggestion_page_form'})"
mais on ne dispatche pas l'évènement.

De manière générale, ou pourrait le faire côté client et éviter une requète au serveur (avec jquery validate par exemple)

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.