todoapp-api-cr
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.exampleand rename it to.env - Change
DATABASE_URLin.env, for examplepostgres://prutya@localhost/todoapp_dev - Optionally change
PORTin.envto 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
- over 7 years ago
- May 1, 2018
License
MIT License
Links
Synced at
Wed, 29 Oct 2025 04:33:47 GMT
Languages