Skip to content

lin72h/shs-website

Repository files navigation

Installing and Configuring Next.js Boilerplate Templates

Installing boilerplate templates are different than ordinary templates, you have to follow the steps strictly without skipping any of them.

  1. Installation
  2. Databases Setup
  3. Authentication
  4. Sanity Integration
  5. Markdown Integration
  6. Stripe Integration
  7. Algolia Integration
  8. MailChimp Integration
  9. SMTP Configuration

Useful Links

Installation

Before moving to all the other integrations, make sure to install the dependencies.

npm install

Start the Developent Server

When all integrations are done, then you can start the project on the developement server

npm run dev

It'll start the template on http://localhost:3000

Deploying on PaaS

If you are using a GitHub repo then you can go with free-of-cost and easy-to-use options like Vercel, or Netlify they offer decent-free tiers for Next.js hosting.

Make sure to edit build command like this when deploying to Vercel.

prisma-vercel

Follow the steps below to complete the installation, if you get stuck feel free to open a support ticket, we will get back to you ASAP.

Update Log

November 26 2024

  • Upgraded to Next.js v15

November 13 2024

  • Updated Sanity Integrations
  • Integrated Zod for Form validation
  • Added Stripe webhook
  • Added integrations enable disable features

Email Configuration for Contact Form

To enable email functionality for the contact form:

  1. Create a .env.local file in the root directory (if it doesn't exist already)
  2. Add the following environment variables to the file:
EMAIL_SERVER_HOST="smtp.your-email-provider.com"
EMAIL_SERVER_PORT=587
EMAIL_SERVER_USER="your-email-username"
EMAIL_SERVER_PASSWORD="your-email-password"
EMAIL_FROM="[email protected]"
EMAIL_TO="[email protected]"
  1. Replace the values with your SMTP email service provider details

For Gmail, you could use:

  • EMAIL_SERVER_HOST="smtp.gmail.com"
  • EMAIL_SERVER_PORT=587
  • EMAIL_SERVER_USER="[email protected]"
  • EMAIL_SERVER_PASSWORD="your-app-password" (requires app password, not your regular Google password)

For a service like Resend.com (recommended):

  • EMAIL_SERVER_HOST="smtp.resend.com"
  • EMAIL_SERVER_PORT=465
  • EMAIL_SERVER_USER="resend"
  • EMAIL_SERVER_PASSWORD="your-api-key"
  • EMAIL_FROM="[email protected]"

After setting these up, restart your development server for the changes to take effect.

Contact form submissions will be sent to [email protected].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages