API for https://github.com/dansinker/tacofancy
Visiting:
/random/
will get you a random Base Layer, Mixin, Condiment, Seasoning and Shell. To just get a random full taco recipe, call it thusly:
/random/?full-taco=true
If you’d like to get info about the contributors for a certain recipe, you can call this endpoint:
/contributors/:recipe_type/:recipe_slug/
So to get the contributors for the Delengua (Beef Tounge) Base Layer, do this:
/contributors/base_layers/delengua_beef_tongue
Valid layer types are: base_layers
, mixins
, seasonings
, condiments
and shells
. To get a mapping of slugs for a given recipe type call this:
/contributors/:recipe_type/
If you’d like to see who has made what contributions to which recipes, call this:
/contributions/:github_username/
So, to get all of Dan Sinker’s contributions, call this:
/contributions/sinker/
To get a listing of all contributors and their usernames, call:
/contributions/
- Clone the repository
- Copy
.env.example
to.env
and add your GitHub token - Run:
make up
- Initialize database:
make init-db
- Load data:
make load-data
- API available at
http://localhost:5000/
make help
- Show all available commandsmake up
- Start the applicationmake down
- Stop the applicationmake test
- Run testsmake init-db
- Initialize databasemake load-data
- Load data from GitHubmake dev
- Run locally (starts database automatically)
DATABASE_URL
- Database connection stringGITHUB_TOKEN
- GitHub API token for higher rate limits (optional)