https://github.com/johnpc/book-club
https://github.com/johnpc/book-club
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/johnpc/book-club
- Owner: johnpc
- Created: 2024-01-02T23:01:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-01-21T16:15:40.000Z (5 months ago)
- Last Synced: 2026-01-22T04:02:35.509Z (5 months ago)
- Language: JavaScript
- Homepage: https://a2bookclub.com
- Size: 1.87 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Book Club
This a NextJS/AWS Amplify application for my book club.
## Development
## Configuring environment variables
Create a .env file by copying the example. Then follow the instructions in the comments on how to set values for each environment variable.
```bash
cp .env.example .env
```
## Set up the database
Deploy necessary resources to your AWS account via
```bash
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.
## Testing the Website
### Install dependencies
```bash
npm install
```
### Start the development server
First, run the development server:
```bash
npm run dev
```
Open [http://localhost:3000](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](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/notify](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](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
## Deploy on Amplify
Deploy to AWS Amplify with one click
[](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/johnpc/book-club)