Skip to content

OwlByTech/optitech-api

Repository files navigation

optitech API

Getting Started

To start the project in development mode, you must copy the .env.example to .env: and then you should run the following command:

docker compose -f compose-dev.yml up

Run DocuStream

docker run -it --rm -p 5000:3000 docu-stream:latest

Then you must run the migration and seeder inside the app container.

docker compose -f compose-dev.yml exec app bash

And you must first run the migrations using the cli

 go run cmd/cli/main.go migrate up

the seeder

 go run cmd/cli/main.go seed up

and then install mjml in the container

apt-get update

now install npm and mjml

apt-get install -y nodejs npm
npm install -g mjml

run this comant to execute convert-mjml

go run cmd/cli/main.go convert-mjml

Production

To run the project in production mode, you should add the environment variable SETUP=first-time to automatically run migrations, seeders, and conversions. Do not use this variable after the first time.

For the first run:

SETUP=first-time docker compose up

For subsequent runs:

docker compose up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages