Follow these steps to clone the repository and set up the project:
- Ensure you have the following installed:
- Java Development Kit (JDK) 8 or higher
- Apache Tomcat server
- A compatible IDE (e.g., IntelliJ IDEA, Eclipse)
- Git
- Open a terminal or command prompt.
- Navigate to the directory where you want to clone the project.
- Run the following command:
git clone https://github.com/sahilverse/aao-news.git
- Navigate into the project directory:
cd aao-news
- Open the project in your IDE.
- Configure the Tomcat server in your IDE.
- Import the project as a Maven project (if applicable).
- Build the project to resolve dependencies.
- Add db.properties inside src/main/resources
- Deploy the project to the Tomcat server.
- Start the server.
- Open your browser and navigate to
http://localhost:8080/aao-news
(or the configured context path).
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git add . git commit -m "Description of your changes"
- Push your branch to the repository:
git push origin feature/your-feature-name
- Create a pull request for review.
- Ensure you follow the team's coding standards.
- Keep your branch up-to-date with the
main
branch to avoid conflicts.