https://github.com/dertyp7/explainegy-nextjs
Markdown-based tutorials and articles webapp, built using Docker, NextJS & Prisma
https://github.com/dertyp7/explainegy-nextjs
docker docker-compose markdown nextjs prisma prisma-orm typescript
Last synced: 2 months ago
JSON representation
Markdown-based tutorials and articles webapp, built using Docker, NextJS & Prisma
- Host: GitHub
- URL: https://github.com/dertyp7/explainegy-nextjs
- Owner: DerTyp7
- Created: 2022-12-18T15:57:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-22T23:33:00.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T08:36:43.080Z (about 1 year ago)
- Topics: docker, docker-compose, markdown, nextjs, prisma, prisma-orm, typescript
- Language: CSS
- Homepage:
- Size: 6.58 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Explainegy
Markdown-based tutorials and articles webapp, built using Docker, NextJS & Prisma
## Getting Started
1. Register a new OAuth app on GitHub:
1. Set the "Homepage URL" to `http://localhost:3000`
2. Set "Authorization callback" URL to `http://localhost:3000/api/auth/callback`
2. Create a `.env` file in the root directory and add the following variables:
```bash
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres?schema=explainegy"
AUTH_GH_CLIENT_ID="abc"
AUTH_GH_CLIENT_SECRET="abcdef"
AUTH_DEBUG_GH_ADMIN_ID="123" # The GitHub user ID of the admin user
```
> Note: `AUTH_DEBUG_GH_ADMIN_ID` can be optaind here:
3. Run the following commands:
```bash
docker compose up -d
npm run dev
```
4. Login as admin using your GitHub account:
5. Use the webapp: