Skip to content

Cedrok/task-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The base of this project is a exercice from Gophercises, using these packages:

  • sqlite for the DB
  • GoFr for the API
  • cobra for the CLI

Setup

For using task-manager, we need a .env file: API/configs/.env

APP_NAME=task-manager
HTTP_PORT=9000

# DO NOT MODIFY BELOW
DB_NAME=./db/tasks.db
DB_DIALECT=sqlite

Launching API

With docker compose

docker compose up --build -d

A volume task-manager_db will be created to keep your data when recreating the container.

With local directory

cd API
make run

Using CLI

cd CLI
make
./task 

This CLI is not persistent. You'll have to run ./task [cmd] for each command.
e.g:

./task add write an example
Added "write an example" to your task list at index 0.

./task list
You have the following tasks to do:
        0: write an example

./task do 0
Task marked as complete

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published