Skip to content

Instantly share code, notes, and snippets.

@eloiweb3
Last active June 7, 2018 07:56
Show Gist options
  • Save eloiweb3/57bec2a3c3880c1772d7ce7962596f24 to your computer and use it in GitHub Desktop.
Save eloiweb3/57bec2a3c3880c1772d7ce7962596f24 to your computer and use it in GitHub Desktop.
To see log from Core (API)
cd ...fliit-core
tail -f log/development.log
bin/rails generate migration AddWindowStartAtMinutesToTourPresets window_start_at_minutes:integer
bin/rails generate migration AddWindowEndAtMinutesToTourPresets window_end_at_minutes:integer
bin/rails generate migration AddTimeWindowToTourPresets window_start_at_minutes:integer window_end_at_minutes:integer
curl -H "Content-Type: application/json" -u "86607224-7b5f-43db-a14f-c4bdc9fd26f8:" -X POST http://localhost:3000/v1/task/lr8fK94H3gQIn07KBxjpb/state_event -d'
{
"name": "started"
}'
curl -H "Content-Type: application/json" -u "86607224-7b5f-43db-a14f-c4bdc9fd26f8:" -X POST http://localhost:3000/v1/task/2b48872bb3177105d12ed/state_event -d'
{
"name": "arrived"
}'
curl -H "Content-Type: application/json" -u "86607224-7b5f-43db-a14f-c4bdc9fd26f8:" -X POST http://localhost:3000/v1/task/2b48872bb3177105d12ed/state_event -d'
{
"name": "delivered"
}'
curl -H "Content-Type: application/json" -u "86607224-7b5f-43db-a14f-c4bdc9fd26f8:" -X POST http://localhost:3000/v1/task/lr8fK94H3gQIn07KBxjpb/state_event -d'
{
"name": "started"
}'
curl -H "Content-Type: application/json" -u "86607224-7b5f-43db-a14f-c4bdc9fd26f8:" -X POST http://localhost:3000/v1/task_preset -d'
{
recipient: {
city: "Berlin",
country: "Germany",
street: "Zossener Straße",
street_number: "55-58",
zipcode: "10961",
},
}'
@eloiweb3
Copy link
Author

eloiweb3 commented Jun 7, 2018

My commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment