Newsnow requires several environment variables for authentication, database initialization, and caching. For local development, rename example.env.server to .env.server and populate the following keys:
| Key | Description |
|---|
G_CLIENT_ID | Your GitHub App Client ID |
G_CLIENT_SECRET | Your GitHub App Client Secret |
JWT_SECRET | Secret for JWT (usually the same as G_CLIENT_SECRET) |
INIT_TABLE | Set to true on the first run to initialize the database, then set to false |
ENABLE_CACHE | Boolean to enable or disable caching |
# Github Client ID
G_CLIENT_ID=
# Github Client Secret
G_CLIENT_SECRET=
# JWT Secret, usually the same as Client Secret
JWT_SECRET=
# Initialize database, must be set to true on first run, can be turned off afterward
INIT_TABLE=true
# Whether to enable cache
ENABLE_CACHE=true