Kinedu api exercise.
Ruby Version: 2.6.3
Rails Version: 6.0.2
Mysql
Run:
bundle install
You need create the enviroment variables:
export KINEDU_APP_KEY=<yourappkey>
export DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase"
export KINEDU_APP_DB_TEST=kinedu_test
export KINEDU_APP_DB_HOST=interfactura_app
export KINEDU_APP_DB_USER=<your user>
export KINEDU_APP_DB_PASS=<your pass>
Or modify directly teh database.yml
, you can feel free of use any method.
Create database:
rake db:create
Connect to database for load data, use file 'demo_2019-04-04.sql'.
Run migrations for create user entities.
rake db:migrate
Run server:
rails s
You can use the live demo https://api.miss-line.com.
The demo is mount in AWS EC2.
You can view api docs in the wiki.
You can use this insomnia collection Insomnia collection.
- Test suite