https://github.com/manoelpiovesan/backend-ts-google-oauth
Backend boilerplate built with Node and TypeScriptOpenAPI (TSOA) framework implementing Google OAuth2.0
https://github.com/manoelpiovesan/backend-ts-google-oauth
jest node oauth2 tsoa typescript
Last synced: 13 days ago
JSON representation
Backend boilerplate built with Node and TypeScriptOpenAPI (TSOA) framework implementing Google OAuth2.0
- Host: GitHub
- URL: https://github.com/manoelpiovesan/backend-ts-google-oauth
- Owner: manoelpiovesan
- Created: 2025-09-29T18:29:41.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2026-06-09T21:05:17.000Z (28 days ago)
- Last Synced: 2026-06-09T22:11:36.605Z (27 days ago)
- Topics: jest, node, oauth2, tsoa, typescript
- Language: TypeScript
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple TSOA Backend
A Node.js backend application with Google OAuth authentication and PostgreSQL database integration.
## Environment Variables
| Variable | Required | Description | Default |
|----------------------|----------|-----------------------------------|-------------------------------------------------------|
| DATABASE_URL | No | SQL Database URL | postgres://admin:password@localhost:5432/backend_node |
| DATABASE_DIALECT | No | Database dialect | postgres |
| GOOGLE_CLIENT_ID | Yes | Google OAuth client ID | |
| GOOGLE_CLIENT_SECRET | Yes | Google OAuth client secret | |
| GOOGLE_CALLBACK_URL | Yes | Google OAuth callback URL | |
| AUTH_REDIRECT_URL | Yes | Redirect URL after authentication | |
| JWT_SECRET | Yes | Secret for signing JWT tokens | |
## Running the Application
1. Install dependencies:
```bash
npm install
```
2. Set environment variables for Google OAuth and PostgreSQL database connection.
> Or you can use a development PostgreSQL docker container with default values:
```bash
docker run --name postgres-dev -e POSTGRES_DB=backend_node -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres
```
3. Start the application:
```bash
npm start
```
## Documentation
The API documentation is available at `/api-docs` when the application is running.
## Contributing
Contributions are welcome! Please open an issue or submit a pull request.