A simple TODO App built using Next.js
This app using npx command, please install it.
First, Setup Github Apps for Auth
- Go to Developer Settings on GitHub.
- Click on "New GitHub App"
- Name your GitHub App. In my example, "sample todo app (local"
- Add your homepage URL
- For the "Callback URL" field, put http://localhost:3000
- If the "Active" field under "Webhook" is checked, uncheck it. Now, click on "Create Github App"
- Once your app is created, you should see the following screen. Click on "Generate a new client secret"
- Copy the client secret you generated and paste it under the GITHUB_SECRET value in your .env file
- Copy the Client ID and paste it under the GITHUB_ID value in your .env file
Second, install other library
npm install
in local using SQLite, run the migrate command
npx prisma migrate dev
run the development server
npm run dev
Open http://localhost:3000 with your browser to see the result.
in preparation