-
Notifications
You must be signed in to change notification settings - Fork 0
Running the app
To run the app you first need to take the type of running the app into consideration.
You can either run the app through a Docker container or you can run it directly with NodeJS and Yarn installed on your machine.
Due to the way how Google works an OAuth App that is in testing mode can only give out refresh tokens that expire after 7 days. I'm planning to solve this problem by making it easier to generate OAuth tokens directly through the container.
To run the app using Docker first follow these steps to generate your tokens, keys and secrets
Now you can follow these steps to run the app
-
make a directory for your
docker-compose.yml
and config files and cd into it -
copy the
docker-compose.example.yml
into yourdocker-compose.yml
file -
create the config files (
.env
,dbs.js
&gcal-sync.js
) in the directory where yourdocker-compose.yml
is located -
copy the
.env.example
into your.env
file and enter all your tokens and secrets -
configure the container in the
dbs.js
andgcal-sync.js
files by following these steps -
run
docker-compose up
ordocker compose up
to start the app and validate that everthing is working (close app withCTRL+C
or⌘+C
) -
run the app as a daemon with
docker-compose up -d
ordocker compose up -d
DONE!
To run the app using NodeJS and Yarn first make sure you are running at least NodeJS version 16.
Now you first need to create all the required tokens, secrets and keys
Now you can follow these steps to run the app
-
clone the respository to a directory on your machine
-
create the
.env
file in the root of the repository, copy the.env.example
to it and fill it with your tokens -
create a
config/
directory in the root of the repository, create the config files (dbs.js
&gcal-sync.js
) in it and configure the app by following these steps -
install all needed packages by running
yarn
-
build the app with
yarn build
-
run the app with
yarn start
DONE!