From House of Aoukura
- Next.js 14
- Auth.js
- Spotify and Youtube Data API
- Posthog
- Shadcn UI
- Version control service: Github
- CI-CD: AWS CodePipeline and AWS CodeDeploy
- Networking: AWS VPC, SG
- Compute: EC2
- Scaling: Horizontal scaling with EC2 ASG and ALB
- DNS: Route 53
- TLS/SSL certificate: AWS ACM
Step 1: Install node.js
# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
# Reload bash
source ~/.bashrc
# download and install Node.js (you may need to restart the terminal)
nvm install 20
# verifies the right Node.js version is in the environment
node -v # should print `v20.17.0`
# verifies the right npm version is in the environment
npm -v # should print `10.8.2`
Step 2 Install pnpm
# Install pnpm
curl -fsSL https://get.pnpm.io/install.sh | sh -
# Reload bashrc
source ~/.bashrc
Step 3: Copy the repository code in your device
git clone [email protected]:sarthakroy107/Kaiketsu.git
Step 4: Setup environment variables
# To use Google provider of Auth.js
AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
# Needed for production environments
AUTH_SECRET=
AUTH_TRUST_HOST= #true
GOOGLE_API_KEY=
NEXT_PUBLIC_SPOTIFY_CLIENT_ID=
NEXT_PUBLIC_SPOTIFY_CLIENT_SECRET=
NEXT_PUBLIC_POSTHOG_KEY=
NEXT_PUBLIC_POSTHOG_HOST=
NEXT_PUBLIC_ENV= #development
Get your own credentials
- Get your API keys and Client Secrets
- Google developer console: console
- Spotify developer conseole: console
- Posthog: website
Step 5: Start the development server
# Install dependencies
pnpm i
# Start server
pnpm dev