Giter VIP home page Giter VIP logo

say-their-names-api's Introduction

Code Tests

Say Their Names ✊🏿

Overview

Welcome to the Say Their Names project. Our aim is to build an open-source platform that raises awareness of the injustice and often forgotten names of racial inequality at the hands of law enforcement. We strive to identify and amplify verified organizations to ensure donations are reaching those who can make the most impact with it.

Contributing

We heartily welcome any and all contributions that match our engineering standards!

That being said, this codebase isn't your typical open source project because it's not a library or package with a limited scope—it's our entire product.

Live API can be found here:

https://saytheirnames.dev

Get the code

git clone https://github.com/Say-Their-Name/api.git
cd api

Setup with Docker

This is the recommended setup,as it prevents many PHP or dependency issues (compatibility, missing PHP extension...).

Requirements

git clone https://github.com/Say-Their-Name/api.git
cd api

# Build the development Docker image
task build

# Start the stack
task

# Install vendor dependencies
task vendor

# Prepare the database
task dbreset

# Run shell in the running container
task sh

## from shell you can run composer, artisan, etc

Go to http://localhost:8000

Adminer (Web UI for MySQL DB)

It's accessible at http://localhost:48080
Login using the user/password from the .env.example (should be stn/stn)


Other (not recommended) ways to setup are available here

Endpoints Available

GET People
List all
http://localhost:8000/api/people

Get Single
http://localhost:8000/api/people/{firstname-lastname}

Filter by name
http://localhost:8000/api/people?name=george-floyd

Filter by country
http://localhost:8000/api/people?country=united-states

Filter by city
http://localhost:8000/api/people?city=minnesota

GET Donations
List Types
http://localhost:8000/api/donation-types

List all
http://localhost:8000/api/donations

Get Single
http://localhost:8000/api/donations/{id}

Filter by Type
http://localhost:8000/api/donations?type=victims

Filter by Victim
http://localhost:8000/api/donations?name=george-floyd

GET Petitions
List Types
http://localhost:8000/api/petition-types

List All
http://localhost:8000/api/petitions

Get Single
http://localhost:8000/api/petitions/{id}

Filter by Type
http://localhost:8000/api/petitions?type=victims

Filter by Person
http://localhost:8000/api/petitions?name=george-floyd

Developer tooling

say-their-names-api's People

Contributors

devingray avatar jlheard avatar superbiche avatar thedoctorcam avatar xtremebeing avatar

Watchers

 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.