An open API service indexing awesome lists of open source software.

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

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
```