Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/infiniteverma/planetodo
A todo app in haskell with planetscale mysql db
https://github.com/infiniteverma/planetodo
haskell mysql planetscale todoapp
Last synced: 9 days ago
JSON representation
A todo app in haskell with planetscale mysql db
- Host: GitHub
- URL: https://github.com/infiniteverma/planetodo
- Owner: InfiniteVerma
- License: mit
- Created: 2022-07-16T19:09:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-18T12:47:00.000Z (over 2 years ago)
- Last Synced: 2024-10-30T12:06:50.496Z (about 2 months ago)
- Topics: haskell, mysql, planetscale, todoapp
- Language: Haskell
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Planetodo
A simple :) todo app in haskell using PlanetScale as mysql db.
## Description
Commands list:
1. `--list`
2. `--insert {todoitem}`## Getting Started
### Dependencies
- Signup on [Planetscale](https://planetscale.com/) and create a db with table as **todos**
- Click on 'connect' and download and store a .env file with the necessary fields
- Setup [pscale](https://docs.planetscale.com/concepts/planetscale-environment-setup) and run the below command to connect to the db```
$ pscale connect {dbname} main --port 3000
```- Verify the setup by connecting using the mysql binary
### Installing
```
$ git clone https://github.com/InfiniteVerma/planetodo
$ cd planetodo
$ cabal install
```### Executing program
- List todo items: `cabal run planetodo -- --list`
- Insert new item: `cabal run planetodo -- --insert hello world`### Screenshots
After adding three items:
mysql query | cabal run planetodo -- --list
:-------------------------:|:-------------------------:
![image](https://user-images.githubusercontent.com/45547198/179513164-17e3fff6-40c6-4579-b64e-1ec3077fb82b.png) |![image](https://user-images.githubusercontent.com/45547198/179513623-c6ace77b-e263-4607-9088-bb4546bbc6b9.png)