This a NextJS/AWS Amplify application for my book club.
Create a .env file by copying the example. Then follow the instructions in the comments on how to set values for each environment variable.
cp .env.example .env
Deploy necessary resources to your AWS account via
npm run sandbox
This will create an amplify_outputs.json
file at the root of your project, which contains all configuration necessary to interact with the deployed resources.
npm install
First, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/notify. This endpoint can be edited in pages/api/notify.ts
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
Deploy to AWS Amplify with one click