- Clone this Repository (
git clone https://github.com/BuildTheEarth/website-node-backend.git
) - Install the dependencies with
yarn
- Compile the TS files to JS (
tsc
if not installed, runnpm install -g typescript
) - Start the server with
yarn start
- 🎉 Start Coding
📌 All settings can be made in a .env
file. The following options are available:
Name | Description | Required | Type |
---|---|---|---|
WEBPORT |
The port the server should listen on | Yes | number |
LOGLEVEL |
The loglevel, that shall be used. | Yes | debug, info, warning, error |
SESSION_SECRET |
A long random string | Yes | string |
DATABASE_URL |
The database connection string. More info: https://www.prisma.io/docs/concepts/database-connectors/postgresql#connection-url | Yes | string |
KEYCLOAK_CLIENTID |
The ID of the keycloak client | Yes | string |
KEYCLOAK_CLIENTSECRET |
The secret of the keycloak client | Yes | string |
KEYCLOAK_URL |
The endpoint of your keycloak instance | Yes | string |
KEYCLOAK_REALM |
Your keycloak realm | Yes | string |
- Clone this Repository (
git clone https://github.com/BuildTheEarth/website-node-backend.git
) - Install the dependencies with
yarn
- Open your WebStorm settings (CTRL+ALT+S)
- Enable the following checkbox
- Start the server with
yarn start
6🎉 Start Coding
📌 All settings can be made in a .env
file. (Just copy and rename the .example.env
)