To set up the development environment, ensure you have the following tools installed:
- Vscode (optional)
- OpenJDK 21
- Node.js 21
- Gradle (optional)
For Visual Studio Code, consider installing the following extensions:
- Language Support for Java(TM) by Red Hat for Vscode
- IntelliCode for Vscode (optional)
- Angular Language Service for Vscode (optional)
- SQLTools (optional)
- REST Client (optional)
-
Backend Setup:
- Start the PostgreSQL database using Docker:
docker compose -f compose.dev.yml up -d
- Run the Spring Boot API:
gradle bootRun
- Start the PostgreSQL database using Docker:
-
Frontend Setup:
- Open a new terminal in
challenge-facevault/web
- Install dependencies:
npm install
- Start the Angular development server:
ng serve
- Open a new terminal in
For testing the API, I utilized the Vscode REST Client extension. You can find all the API requests in ./api-client/requests
folder.
Additionally, for your convenience, I've created a public Postman workspace where you can test the API if you prefer using Postman. You can access the Postman workspace here.
Backend:
gradle bootRun
: Start API.docker compose -f compose.dev.yml up -d
: Start DB container in the background.docker compose -f compose.dev.yml down
: Stop DB container.
Front-end:
ng serve
: Serve frontend using Angular CLI.
For further reference, please consider the following sections:
These additional references should also help you: