Giter Club home page Giter Club logo

civic-makers-climate-change-visualization's Introduction


An awesome README to tell you everything you need to know about this project.

Table of Contents

About The Project

This is a website that will inform visitors about the following:

  • Why act on climate change now?
  • What you can do about it?
  • Why you should get all your friends and family to help too.
  • Timeline of significant climate-change related events (including related Australian Parliament Motions/Bills/Divisions).
  • Which Members of Parliament (MP) voted for/against motions/bills/divisions.
  • MP statistics of their previous voting record and a measure of how accountable they are of keeping their promises.
  • Contact forms to MPs to influence their future decisions.
  • How to share the above information with others.

Built With

Getting Started

Follow the instructions below to set up your local development environment.

The instructions will guide you to deploy two services locally:

  • a 'client' service that serves up the react app
  • a test api service (that the react app uses)

For more indepth instructions please see this link

  1. Open a command line interface (Terminal on mac or equivalent on windows)

  2. If you are a MAC user, please install Xcode using the following command

xcode-select --install 
  1. Install nvm, a version manager for node.js (for more information see: https://github.com/nvm-sh/nvm)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

nvm --version

  1. Clone the project source code.
git clone https://github.com/CodeforAustralia/civic-makers-climate-change-visualization.git
  1. Navigate into the project directory.
cd civic-makers-climate-change-visualization
  1. Install node using nvm:
nvm install
nvm use
  1. Double check you are using the right version of node by typing the following command. the version number should match the version number mentioned in .nvmrc file:
$ cat .nvmrc 
14.15.1

$ node --version
v14.15.1
  1. To start up the client service, navigate to client/ folder and run npm install
cd client
npm install

run npm start (while in clients folder)

npm start
  1. To start up the test api service, open up another terminal, then navigate to the server/ folder and install express and nodemon:
# go to the project directory
cd civic-makers-climate-change-visualization
nvm use
cd server
npm install

run npm start (while in server/ folder):

npm start
  1. Go to http://localhost:3000/ . You should see a short welcome message if the app is running.

Accessing the Application

The application is currently hosted on Github Pages.

On your local development instance, enter http://localhost:3000 into any web-browser to view the app.

How to deploy the application

The application is currently hosted on Github Pages.

To deploy the app to Github Pages, run the following commands:

cd client/
npm install  ## [optional] only install dependencies if you haven't done so earlier!
npm run deploy

The command will perform the following actions:

  1. build the react app (using npm run build)
  2. push the build artifacts to the gh-pages branch

This repo has been set up to serve the content in gh-pages branch on Github Pages

The gh-pages tool was used to ease the deployment of this app.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project.
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature).
  3. Commit your Changes (git commit -m 'Add some AmazingFeature').
  4. Push to the Branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request (PR).
  6. After 1-2 approvals, the PR will be merged.

Asking for Help

  • Please ask on our slack channel #civic-makers-climatechange-dev if you:
    • have any questions regarding any of the tasks in our Trello board
    • have any questions relating to the development of the climate change app
    • need help with a task you are working on from the Trello board
    • have any other questions/proposals you'd like to put to the dev team
  • please be patient with our response, as most of us are only working on this in our spare time
  • If you like to find out more about what everyone is working on, please come to our weekly Wednesday evening catchups to meet the team! Please ask on #civic-makers-climatechange slack channel to get an invite.
  • Some of the dev folk will usually hang around after the catchup to discuss on outstanding issues and do some remote pair/mob programming. But if the timing doesn't work for you, don't fret, please ask on #civic-makers-climatechange-dev to arrange a more suitable time to pair!

Project Conventions

Contributors

Contact

Emails

Acknowledgements

civic-makers-climate-change-visualization's People

Contributors

hqtan avatar mishfish123 avatar avu120 avatar mcyph avatar vasavigannena 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.