Skip to content

Commit

Permalink
move auth to backend and use jwt for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
wheelsandcogs committed Aug 30, 2024
1 parent 6a3502e commit 7ce9233
Show file tree
Hide file tree
Showing 20 changed files with 323 additions and 225 deletions.
8 changes: 3 additions & 5 deletions .env-example
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
BACKEND_SERVER=localhost
BACKEND_PROTOCOL=http
BACKEND_PORT=3001
FRONTEND_URL=http://localhost:3000
BACKEND_URL=http://localhost:3001

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
SESSION_SECRET=
JWT_SECRET=
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,9 @@
- Node 20+
- An Instance of the StatsWales backend Service

## To get going
## Configuration

You'll need to define the following environment variables either in to the environment or in to a `.env` file:

```env
BACKEND_SERVER
BACKEND_PROTOCOL
BACKEND_PORT
SESSION_SECRET
GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET
```
Copy the [.env-example](.env-example) file to `.env` and provide the missing values.

To run the app should be as simple as:

Expand Down
Loading

0 comments on commit 7ce9233

Please sign in to comment.