Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Maxson52/sveltekit-express-google-auth
A web-app template featuring a SvelteKit frontend and Express backend, with Passport and Google OAuth 2.0
https://github.com/Maxson52/sveltekit-express-google-auth
Last synced: 6 days ago
JSON representation
A web-app template featuring a SvelteKit frontend and Express backend, with Passport and Google OAuth 2.0
- Host: GitHub
- URL: https://github.com/Maxson52/sveltekit-express-google-auth
- Owner: Maxson52
- Created: 2021-12-23T21:32:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-23T21:48:51.000Z (almost 3 years ago)
- Last Synced: 2024-08-02T20:46:38.312Z (3 months ago)
- Language: JavaScript
- Size: 55.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# SvelteKit + Express Auth Template
A barebones authentication template using SvelteKit on the frontend and Express on the backend. Featuring Passport and Google OAuth 2.0 for the user authentication.
## Run Locally
Clone the project
```bash
git clone https://github.com/Maxson52/sveltekit-express-google-auth
```Go to the project directory
```bash
cd sveltekit-express-google-auth
```Install dependencies and run client
```bash
cd client
npm install
npm run dev
```Install dependencies and run server
```bash
cd server
npm install
npm run dev
```Note:
> Environment variables on both the client and server need to be setup. See the `.env.example` file for reference
## Deployment
To deploy the server
```bash
cd server
npm run start
```And the client (using your preferred [adapter](https://kit.svelte.dev/docs#adapters))
```bash
cd client
npm run build
```