635b022b66ef51d4e31f23a6fd7a661e5f421d65
My App
A minimal full-stack web application using Docker, Gradle, FastAPI and Angular.
Modules
- service: Python REST API using FastAPI, SQLAlchemy (SQLite) and JWT authentication. Runs in a Docker container.
- webapp: Angular 18 single-page application with Angular Material. Built via Node.js and Gradle.
- app: Combined Docker image that serves both the service and the webapp.
Prerequisites
- Docker
- Java 17+ (for Gradle)
Build
./gradlew build
This builds the service Docker image, the Angular webapp, and the combined app image.
Development
Start the service in a Docker container with hot-reload:
./gradlew :service:serve
In a separate terminal, start the Angular dev server:
cd webapp && npm start
The webapp will be available at http://localhost:4200 and proxies API requests to the service at localhost:8000.
Run
Run the combined app image:
docker run --rm -p 8080:8000 inse-app:1.0.0 run
The app will be available at http://localhost:8080/inse-webapp/.
Default Users
Defined in service/src/data/users.json:
| Username | Password | Role |
|---|---|---|
| superadmin | superadmin | SUPER_ADMIN |
| user | user | UNI_ADMIN |
Languages
Python
40.5%
Jupyter Notebook
22.5%
TypeScript
20.9%
HTML
12.5%
SCSS
3.5%