Coder Social home page Coder Social logo

1km.co.il's Introduction

Fighting for democracy during lockdown.


Welcome to 1km

Something bad is happening in Israel, and we cannot afford to stand still. We've got to React.

Introduction

  • A solid knowledge of (and a desire to) React is recommended before dwelling into the code.
  • Firebase is here to keep our the data and host our assets.
  • We color our protest signs with styled-components.
  • Map is generated with Leaflet using react-leaflet.

Installation

  • Fork the repository.
  • Install dependencies using yarn install

Create a Firebase project

  • Go to the firebase console and create a new project. Call it whatever you want.
  • Add a new web app from the dashboard, by clicking the </> icon.
  • Give it whatever name you want. No need for hosting.
  • Set up the enviorment to work with your project:
    Inside the project directory, cp .env .env.local and fill the REACT_APP_FIREBASE_* variables with the firebase configuration being shown.
  • Go back to firebase dashboard and select Cloud Firestore from the sidebar. Click Create Database, start in test mode, and press enable.

Google Maps API key

We are using Google's Places Autocomplete & Geolocation APIs on the PlacesAutocomplete component. You need to get a Maps API Key for them to work.

After getting one, add it to REACT_APP_GOOGLE_MAPS_API_KEY inside .env.local file.

Note: Please help us find an alternative API provider for those services.

Add protests

Adding protests for development is be a bit cumbersome currently. We'll improve the flow as we go.

  • First, remove all things related to Recaptcha. It's in the API file and in the ProtestForm component (in the form component search for all references to recaptcha and make sure they don't get along in the flow).
  • Change pending_protests collection to protests in the createProtest function.
  • Add a protest from /add-admin ๐Ÿค—

Got an installation issue, want to bring up your ideas or just up for a chat? Join our discord channel.

1km.co.il's People

Contributors

guytepper avatar hpsharon avatar idoberko2 avatar

Watchers

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