Start
#
MigrateIf using NON-MEMORY SQLITE or PostgreSQL, DO THIS BEFORE YOU RUN, You need to migrate the database:
make migrate
:::Memory SQLite will always migrate at every run.
#
Edit the configYou want to rename changeme.env
to .env
, and edit the exteral APIs with your API keys.
You can also edit the config.yml to your preference. More in the config section.
#
How to runTo run it on your local computer:
The default config file is config.yml
. If you want to run it with a different config file (or add your own)
.
make build
(make sure to build it first)
./bin/Foretoken --config=/PATH/TO/CONFIG
example:
./bin/Foretoken --config=./config.prod.yml
#
DockerIf docker is installed you can build an image and run this as a container.
docker build -t foretoken .
Once the image is built, Foretoken can be invoked by running the following:
docker run --rm -t -p 8080:8080 foretoken
Or run Docker from our repo:
docker run -d -p 8080:8080 domgolonka/foretoken
or with a custom config file:
docker run -d -p 8080:8080 domgolonka/foretoken --config=config.yml