diff --git a/.env b/.env deleted file mode 100644 index 62d3259..0000000 --- a/.env +++ /dev/null @@ -1,8 +0,0 @@ -OAUTH_GOOGLE_REDIRECT_URL="https://fantasy-api.simoen.tech/api/user/oauth/google" -WEBAPP_URL=https://fantasy.simoen.tech -COOKIE_ORIGIN=simoen.tech -CORS_ORIGIN=https://fantasy.simoen.tech -PORT=3000 -ENV=production -LEAGUE_CODE=960 -SEASON=2023 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9e29a8f..41ba76d 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ dist-ssr build rsa* *.local +.env # Editor directories and files .vscode/* @@ -26,3 +27,4 @@ rsa* *.njsproj *.sln *.sw? +.vercel diff --git a/README.md b/README.md new file mode 100644 index 0000000..c73fcf9 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# EDD-API + +### Environment variables +| **Environment variable** | **Default value** | +|----------------------------|-----------------------------------------------------| +| OAUTH_GOOGLE_CLIENT_ID | | +| OAUTH_GOOGLE_CLIENT_SECRET | | +| OAUTH_GOOGLE_REDIRECT_URL | | +| PUBLIC_KEY | | +| PRIVATE_KEY | | +| DATABASE_URL | postgresql://jonas:jonas@localhost:5432/fantasy_dev | +| WEBAPP_URL | http://localhost:3069 | +| COOKIE_ORIGIN | localhost | +| EXTERNAL_API_KEY | | +| CORS_ORIGIN | http://localhost:3069 | +| ENV | dev | +| REDIR_TO_WELCOME | false | +| LEAGUE_CODE | 147 | +| SEASON | 2023 | \ No newline at end of file