Listigo Demo is a full-stack application for managing listings with features like creating, updating, deleting, filtering, and photo management.
- Backend: Java + Spring Boot
- Frontend: React
- Platform: Web application
Backend
- Java 21
- Spring Boot, Spring Security, JPA/Hibernate
- JWT for authentication
- Liquibase for DB migrations
- Maven for dependency management
Frontend
- React with TypeScript/JavaScript
package.jsonfor dependency management (usingreact-scriptsfor build and development)- Tailwind CSS for styling
Database
- PostgreSQL
- Java 21
- Node.js (e.g., LTS version like 18.x or 20.x)
- npm (comes with Node.js) or yarn
- PostgreSQL
- Maven
- Git
- IDE: IntelliJ IDEA (backend), VS Code or any preferred editor (frontend)
- Modern Web Browser (Chrome, Firefox, Edge, Safari)
-
Clone the Repository
git clone https://github.com/SelahattinSert/listigo-demo.git cd listigo-demo/listigo-demo -
Configure Database
Updatesrc/main/resources/application.properties:spring.datasource.url=jdbc:postgresql://localhost:5432/ListigoDB spring.datasource.username=your_username spring.datasource.password=your_password spring.jpa.hibernate.ddl-auto=update
-
Create Database
Make sureListigoDBexists in your PostgreSQL server. -
Install Dependencies
mvn clean install
-
Run the Application
mvn spring-boot:run
The backend will start at: http://localhost:8080
-
Initialize Database
Liquibase will automatically apply migrations from:
src/main/resources/db/changelog/
(Assuming the React project is in a directory like listigo-frontend at the same level as the backend's parent directory)
-
Navigate to Frontend Directory
cd ../listigo-frontend -
Install Dependencies Using npm:
npm install
Or using yarn:
yarn install
-
API Endpoint Configuration
The frontend is configured to proxy API requests from/api/v1tohttp://localhost:8080/api/v1(as defined inpackage.json'sproxyfield). Ensure your backend is running athttp://localhost:8080. The base URL/api/v1is defined insrc/constants.ts. -
Run the Application Using npm:
npm start
Or using yarn:
yarn start
The frontend development server will typically start at http://localhost:3000.