Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/threeaccents/tasty-demo
https://github.com/threeaccents/tasty-demo
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/threeaccents/tasty-demo
- Owner: threeaccents
- Created: 2023-03-22T14:45:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-23T20:22:37.000Z (almost 2 years ago)
- Last Synced: 2024-12-01T05:45:33.816Z (23 days ago)
- Language: Elixir
- Size: 350 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tasty
To start your Phoenix server:
* Run `mix setup` to install and setup dependencies
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
## Learn more
* Official website: https://www.phoenixframework.org/
* Guides: https://hexdocs.pm/phoenix/overview.html
* Docs: https://hexdocs.pm/phoenix
* Forum: https://elixirforum.com/c/phoenix-forum
* Source: https://github.com/phoenixframework/phoenix## Setting up application
### Setup database
```bash
mix ecto.create
mix ecto.migrate
```### Import data
To begin using Tasty you must first import the truck data to the database.
We created a mix task to facilitate this for you.```bash
mix import_data
```## API documentation
Tasty is a very simple application with only 1 endpoint.
Call the `/trucks` endpoint to get a list of all available food trucks.You can filter trucks by
- name (exact name)
- address (searchable)
- permit (exact permit)
- approval (boolean)
- items (searchable)The filter keys map to url query params. For example if you want to filter by name you can do so by:
`/trucks?name=Bonito Poke`.You may use 1 or all filters to find the perfect truck for you!
Ex. `/trucks?name=Bonito Poke&address=2511`