This is a Next.js template for a twitter-like micro-blogging website.
This template is designed to be hosted easily on Vercel and AWS.
-
Go to AWS and log in or create a new account.
-
Create a new IAM role with programmatic access and the permission policies
AmazonDynamoDBFullAccessandAmazonS3FullAccess -
Add the
ACCESS_KEYandSECRET_KEYto the environment variables -
Add your AWS region to the env variables as
REGION -
Head to AWS DynamoDB and create a new database with the Partition key
id(String) and a Sort keycreatedAt(Number) and add the table name as environment variableTABLE_NAME -
Create a new S3 Bucket on AWS, make it public and enable ACLs.
-
Add the S3 Bucket name as
S3_BUCKETto the env variables. -
Define the variables
NEXTAUTH_URL(your domain eg.http://localhost:3000for local testing) andNEXTAUTH_SECRET- more info about this in the next-auth library. -
Add your admin account to the env variables with
ADMIN_USERNAME=adminandADMIN_PASSWORD=some-password. -
Install dependencies with
npm iand run the app withnpm run dev -
Use following URL to log into your admin account: http://localhost:3000/api/auth/signin
created by Vincent Will