AssetTrack is a web-based application for managing, tracking, and reporting hardware assets within a software development team.
/backend: Spring Boot REST API (Java 17, PostgreSQL, Spring Security, JWT)/frontend: React SPA (Vite, React Router, Axios, Lucide Icons)
- Open the
backendfolder in IntelliJ. - Wait for Maven to sync dependencies.
- Database: The project is pre-configured with a cloud PostgreSQL (Neon). If you wish to use a local DB, update
src/main/resources/application.properties. - Run the application via
src/main/java/com/assettrack/backend/BackendApplication.java. - The API will be available at
http://localhost:8080.
- Open the
frontendfolder in IntelliJ or use the built-in terminal. - Install dependencies:
npm install
- Start the development server:
npm run dev
- Access the UI at
http://localhost:5173.
- Admin Access: Sign up with an email containing "admin" or manually change the role in the database to
ADMIN. - JWT: The frontend handles JWT storage in
localStorageand attaches it to all authenticated requests.