Swaasth.ai
Welcome to Swaasth.ai, your one-stop healthcare solution leveraging the power of AI to address all your healthcare needs. This repository houses the source code for our website, built using Next.js and Tailwind CSS, and hosted on GitHub Pages.
Table of Contents
Prerequisites
Before you begin, ensure you have met the following requirements:
- Node.js: Make sure you have Node.js installed. You can download it from here.
- Git: Ensure Git is installed on your machine. Download it from here.
Getting Started
Cloning the Repository
To get a local copy of the repository, follow these steps:
-
Open your terminal or command prompt.
-
Navigate to the directory where you want to clone the project.
-
Run the following command:
git clone https://github.com/swaasth/swaasth.github.io.git
Installing Dependencies
After cloning the repository, navigate to the project directory and install the necessary dependencies:
cd swaasth.github.io
npm install
Running the Website Locally
To run the website on your local machine:
-
Ensure you're in the project directory:
cd swaasth.github.io
-
Start the development server:
npm run dev
-
Open your browser and navigate to http://localhost:3000 to view the website.
Making Changes
You can update the website by modifying the codebase as needed. Whether you're adding new features, fixing bugs, or updating content, follow these steps:
-
Create a New Branch (Optional but Recommended):
It's good practice to create a new branch for your changes to keep the main branch clean.
git checkout -b your-feature-branch
-
Make Your Changes:
Use your preferred code editor to make changes to the project files.
Testing Your Changes
After making changes, it's essential to test them locally before deploying:
-
Start the development server if it's not already running:
npm run dev
-
Navigate to http://localhost:3000 in your browser to verify that your changes work as expected.
Deploying Updates
Once you're satisfied with your changes and have tested them locally, you can deploy the updates to the live website. The deployment process is automated using GitHub Actions. Follow these steps to deploy:
-
Stage Your Changes:
Add all the changes to the staging area.
git add .
-
Commit Your Changes:
Commit the changes with a descriptive message.
git commit -m "Your descriptive commit message"
-
Push to the Main Branch:
Push the committed changes to the main branch on GitHub.
git push origin main
Note: If you're working on a separate branch, you can merge it into main via a Pull Request on GitHub.
-
Automated Deployment:
Once the changes are pushed to the main branch, GitHub Actions will automatically handle the build and deployment process to GitHub Pages. You can monitor the workflow progress in the Actions tab of your GitHub repository.
Project Structure
Here's an overview of the project's directory structure:
swaasth.github.io/
├── components/ # Reusable React components
├── pages/ # Next.js pages
├── public/ # Static assets
├── styles/ # Tailwind CSS styles
├── .github/ # GitHub workflows
├── package.json # Project dependencies and scripts
├── tailwind.config.js # Tailwind CSS configuration
├── next.config.js # Next.js configuration
└── README.md # Project documentation
Contributing
We welcome contributions to Swaasth.ai! To contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes.
- Test your changes thoroughly.
- Commit and push your changes to your fork.
- Open a Pull Request to the
main branch of this repository.
Please ensure your code follows the project's coding standards and includes relevant tests.
License
This project is licensed under the MIT License.
Thank you for contributing to Swaasth.ai! If you have any questions or need further assistance, feel free to open an issue or contact the maintainer.