This project is a car selling web application where users can register, log in, add their cars for sale, and view available cars to buy on the home page.
- Introduction
- Prerequisites
- Setup
- Running the Project
- Project Structure
- Technologies Used
- Contributing
- License
This project is a car selling web application where users can register, log in, add their cars for sale, and view available cars to buy on the home page.
Before you begin, ensure you have the following installed:
-
Clone the Repository:
git clone https://github.com/corvantaanalytics/car-selling.git cd car-selling
-
Install Maven: Follow the instructions here to install Maven on your system.
-
Setup PostgreSQL:
- Install and run PostgreSQL.
- Create a new database:
CREATE DATABASE your_database_name;
-
Configure Database: Create a file named
application.properties
insrc/main/resources
and add your database configuration:spring.datasource.url=jdbc:postgresql://localhost:5432/your_database_name spring.datasource.username=your_db_username spring.datasource.password=your_db_password spring.jpa.generate-ddl=true
-
Build and Run the Backend:
mvn install mvn spring-boot:run
-
Navigate to the Frontend Directory:
cd frontend
-
Install Dependencies:
npm install
-
Run the Frontend:
npm start
After setting up both backend and frontend, you can access the application at http://localhost:3000
for the frontend and http://localhost:8080
for the backend.
src/main/java
: Contains Java source files.src/main/resources
: Contains application configuration files.pom.xml
: Maven configuration file.
frontend/src
: Contains React components and Redux-related files.frontend/public
: Public assets.package.json
: Node.js project configuration file.
- Backend: Spring Boot, JPA, PostgreSQL
- Frontend: React, Redux
- Build Tools: Maven (for backend), npm (for frontend)
We welcome contributions to enhance this project. Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.