todoapp-api-cr

A Kemal and Clear based Todoapp API application.

A Kemal and Clear based Todoapp API application. Frontend can be found here.

Prepare

  • Install Crystal
  • Install Shards (Shards is usually distributed with Crystal itself)
  • Install Postgres
  • Create a database (I am using todoapp_dev)
    createdb todoapp_dev
    
  • Duplicate .env.example and rename it to .env
  • Change DATABASE_URL in .env, for example postgres://prutya@localhost/todoapp_dev
  • Optionally change PORT in .env to your favorite one
  • Install packages
    shards install
    

Launch

crystal run src/todo_app.cr

Check

I am using Postman for testing my API apps. Try opening the localhost:PORT/todo-groups/ url.

Repository

todoapp-api-cr

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 3
  • about 6 years ago
  • May 1, 2018
License

MIT License

Links
Synced at

Sat, 04 May 2024 18:48:06 GMT

Languages