An application that serves F1 data in JSON api compatible format
Special thanks to ergast.com for the F1 Data in Mysql format.
- Mysql installed on your machine
- Import the F1 database into your mysql database
-
Install mysql if you have not done so already
brew update && brew install mysql
Follow the instructions to create a user with the name root with the password root.
-
Create a database in mysql named
phoenix_f1_json_api_dev
andphoenix_f1_json_api_test
. Start a shell into mysql:mysql -u root -proot
once you are in the database, run the following:
create database phoenix_f1_json_api_dev; create database phoenix_f1_json_api_test; \q
The above commands will open up a shell into mysql and create the two databases that we need. Finally, we exit the database.
-
Import data into the two databases:
mysql -u root -proot phoenix_f1_json_api_dev < db/f1db.sql mysql -u root -proot phoenix_f1_json_api_test < db/f1db.sql
To start your Phoenix app:
- Install dependencies with
mix deps.get
- Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: http://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix