- Framework: Next.js
- Styling: Tailwind CSS
- Content: MDX
- Animations: Framer Motion
- Deployment: Vercel
- Icons: React Icons
- Plugins: rehype
- Analytics: Google Analytics
- SWR
- Email.js
- React Toastify
- Spotify API
- Google Analytics Data API
Clone the project:
git clone https://github.com/vinugawade/vinux.in.git
Go to the project directory:
cd vinux.in
Install dependencies:
yarn
# or
npm install
Start the server:
yarn dev
# or
npm run dev
The server should now be running on localhost:3000.
Note: I am using yarn, but you can use pnpm or npm as well. Ensure you have populated the
.env.local
file with the correct values.
- Rename
.env.example
to.env.local
. - Modify the
.env.local
file with the respective values for the following properties:
-
NEXT_PUBLIC_YOUR_SERVICE_ID
: This value can be obtained from the Admin Panel of emailjs.com. Follow these steps:-
Click on the Add Service button:
-
Select the email provider you want to use, e.g., Gmail:
-
Connect your Gmail account and complete the necessary steps.
-
Once connected, click on Create Service and copy the Service ID.
-
Add the Service ID to the
.env.local
file:NEXT_PUBLIC_YOUR_SERVICE_ID=<Your Service ID>
-
-
NEXT_PUBLIC_YOUR_TEMPLATE_ID
: To get the Template ID, go to the Email Templates section and click on Create New Template:- Customize your email template and save it.
- After saving, you will see the Template ID in the URL. Copy this ID.
- Add the Template ID to the
.env.local
file:NEXT_PUBLIC_YOUR_TEMPLATE_ID=<Your Template ID>
NEXT_PUBLIC_GA_MEASUREMENT_ID
: To use Google Analytics, follow this guide to obtain your Google Analytics ID, also known as Measurement ID.- Add the Measurement ID to the
.env.local
file:NEXT_PUBLIC_GA_MEASUREMENT_ID=<Your Measurement ID>
-
Spotify integration requires three environment variable values:
SPOTIFY_CLIENT_ID
: Follow this blog to get the Client ID.SPOTIFY_CLIENT_SECRET
: Follow the same blog to get the Client Secret.SPOTIFY_REFRESH_TOKEN
: Again, follow the blog to get the Refresh Token.- Add these variables to the
.env.local
file with their respective values.
GA_PROPERTY_ID
: Follow this blog to obtain the Property ID for the Google Analytics Data API.GA_CLIENT_EMAIL
: Refer to the same blog to get the Client Email.GA_PRIVATE_KEY
: Follow the instructions in the blog to obtain and add the Private Key.- Add these variables to the
.env.local
file.
After setting up the environment variables, you are ready to run the application!