choreflow-api

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 4 Imported by: 0

README

Choreflow API

Documentation & Testing API

Live API available at: http://139.59.161.227:3211/choreflow/api/v1/swagger/ui

Run the API Locally

Prerequisites
  • Install Go v1.22.1+
Install Dependencies

Navigate to the project direcotory and run the following command:

go mod tidy
Create Database
  1. Run/source/import the sql file at db/chores_mgt.sql on your sql database.
  2. Update your environment variables to reflect your sql configuration.

List of environment variables to create:

  • DBAPIHOST: MYSQL host (e.g. localhost).
  • DBAPIPORT: MYSQL port (e.g. 3306).
  • DBAPIUSER: MYSQL user that has access to the database.
  • DBAPIPASS: MYSQL user password.
  • DBAPINAME: Must be chores_mgt.
Run Project

Navigate to the project directory and run the command below:

go run .

Visit http://localhost:3211/choreflow/api/v1/swagger/ui to test the api.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL