A simple Book Library app built using Next.js 14, Tailwind CSS, AWS DynamoDB, AWS Lambda and AWS API Gateway. This app showcases CRUD (Create, Read, Update, Delete) operations for managing books, with server actions in Next.js and DynamoDB as the database.
Youtube: Watch
Article: blog
- Node.js installed locally.
- An AWS account to use DynamoDB, Lambda and API Gateway.
- AWS API Gateway URL added to
.env.local.
-
Clone the repository:
git clone https://github.com/thetechmaze/book-library-next-dynamo.git
-
Install Dependencies
npm install
-
** AWS SETUP **
Make sure that you have the aws dynamodb, lambda and api gatway ready by following this article or video
-
Set up Environment variables
Create a
.env.localfile in the root directory and add your AWS credentials:AWS_API_URL=your-url
-
Run the development server
npm run dev
Open http://localhost:3000 in your browser to see the app in action.
To Deploy this app, you can use platforms like Vercel or Netlify. Ensure you have your environment variables set correctly on the chosen platform.
This project is open source and available under the MIT Licence.