Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.42 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.42 KB

DataDrop

Continuous Delivery

Discord bot built with Discord.JS for Section IODA guild.

This application uses environment variables to build and run properly. The following environment variables must be filled in a .env file.

NODE_ENV=development
POSTGRES_DB=
POSTGRES_USER=

An empty copy of this file is available as #.env.

The following environment ones in .env.<NODE_ENV> file.

DISCORD_TOKEN=
POSTGRES_PASSWORD=
DATABASE_PORT=5432
DATABASE_HOST=localhost
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${POSTGRES_DB}?schema=public
SENDGRID_API_KEY=

An empty copy of this file is available as #.env.development.

Deployment

As the app is dockerized, you can deploy it on your server or locally on your machine.

If you wish to deploy it with a development configuration*, you can run docker compose up.

If you need it to be deployed on production ground, change the NODE_ENV=development value in the .env file by NODE_ENV=production. You can then run the docker compose up command!

* the Developer eXperience (DX) is a priority to us, which means default commands will always trigger processes for the development environment, never for the production one!