Welcome to the Next.js Website with Sanity repository! This project showcases a dynamic and SEO-friendly website built using Next.js, Tailwind CSS, and TypeScript, with content management powered by Sanity, a headless CMS.
- Next.js: Utilize the power of Next.js, a popular React framework, for server-side rendering, static site generation, and client-side rendering.
- Tailwind CSS: Create a modern and responsive user interface using Tailwind CSS, a utility-first CSS framework.
- TypeScript: Benefit from the type safety and enhanced tooling provided by TypeScript.
- Sanity: Integrate Sanity, a headless CMS, to easily manage and update website content.
To get started with this project, follow the steps below:
-
Clone the repository: Start by cloning this repository to your local machine using
git clone https://github.com/imarjunshrma/nextjs-sanity-website
. -
Install dependencies: Navigate to the project directory and install the necessary dependencies by running
npm install
oryarn install
. -
Set up Sanity: Sign up for a Sanity account and set up a new project. Configure the project credentials in the appropriate files to enable content management.
-
Start the development server: Launch the development server with hot-reloading by running
npm run dev
oryarn dev
. This will start the Next.js development server and you can access the website athttp://localhost:3000
. -
Build and deploy: When you're ready to deploy the website, use the command
npm run build
oryarn build
to generate an optimized production build. Deploy the built files to your preferred hosting provider.
For detailed information on customization, configuration, and deployment, refer to the project documentation.
Contributions to this project are always welcome! If you find a bug or have suggestions for improvement, please open an issue or submit a pull request. Follow the guidelines provided in the CONTRIBUTING.md file.
This project is licensed under the MIT License. Feel free to use and modify the codebase for your own projects.
We hope you find this project helpful and enjoy working with Next.js, Tailwind CSS, TypeScript, and Sanity! If you have any questions, feel free to reach out or refer to the documentation for further guidance. Happy coding!