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.example
and rename it to.env
- Change
DATABASE_URL
in.env
, for examplepostgres://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
- over 6 years ago
- May 1, 2018
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 01:44:44 GMT
Languages