This repository contains a Next.js application with Tailwind CSS. Follow these instructions to deploy it successfully.
- Node.js (version 18.x or higher recommended)
- npm
- A GitHub account
-
Clone the repository:
git clone https://github.com/aschimmenti/dharc-x-dhlab-building-landscapes.git cd dharc-x-dhlab-building-landscapes
-
Install dependencies:
npm install # or yarn install
-
Run the development server to double check the application:
npm run dev
-
Open http://localhost:3000 in your browser to view the application.
This project is configured to deploy to GitHub Pages using GitHub Actions. The workflow file is already set up in .github/workflows/nextjs.yml
.
To set up GitHub Pages, follow these steps:
-
Push your code to a GitHub repository:
git add . git commit -m "Initial commit" git push -u origin main
-
In your GitHub repository:
- Go to Settings > Pages
- Under Source, select GitHub Actions => select the **Next.js ** suggested workflow
- Click on Save
-
The first push to the
main
branch will automatically trigger the deployment workflow.
- next.config.js: Contains Next.js-specific configurations
- tailwind.config.js: Contains Tailwind CSS configurations
- postcss.config.js: Contains PostCSS configurations for Tailwind
- jsconfig.json: Contains path aliases configuration
- package.json: Contains dependencies and scripts