https://github.com/iamsdas/todo
Full stack graphql next.js todo list web app
https://github.com/iamsdas/todo
apollo graphql nextjs prisma2 todolist
Last synced: 6 months ago
JSON representation
Full stack graphql next.js todo list web app
- Host: GitHub
- URL: https://github.com/iamsdas/todo
- Owner: iamsdas
- Created: 2021-06-05T18:56:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-14T10:36:37.000Z (over 3 years ago)
- Last Synced: 2025-02-14T09:41:35.616Z (8 months ago)
- Topics: apollo, graphql, nextjs, prisma2, todolist
- Language: JavaScript
- Homepage: https://todo-iamsdas.vercel.app
- Size: 409 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todo Lists
This is a simple todo lists web app made using Next.js. The backend serves GraphQL via Next.js API routes (serverless functions) using Apollo server. It uses NextAuth for OAuth based passwordless authentication.
## How to use locally
* Make sure to have postgres installed locally.
* Make your own Github OAuth token with callback url `/api/auth/callback/github`
* Setup the environment variables in the `.env` file:
```
DATABASE_URL="postgresql://user@localhost:5432/tmpdb"
GITHUB_ID=""
GITHUB_SECRET=""
NEXTAUTH_URL="http://localhost:port"
```
* Install the dependencies and run:
```bash
# install dependencies
yarn
# run
yarn dev
# or
yarn build && yarn start
```