FlyToSpace is a full-stack tour booking web application built with Angular, ASP.NET Core, Redis, and Docker. Users can explore space-themed tours, add them to a cart, and finalize bookings via a checkout process.
- Docker
- Node.js (only if running Angular outside of Docker)
- .NET 8 SDK (only if running API outside of Docker)
FlyToSpace/
│
├── client/ # Angular frontend
│ ├── Dockerfile
│ └── ...
│
├── API/ # ASP.NET Core backend
│ ├── Dockerfile
│ └── ...
│
├── Data/ # Shared data volume for persistence
│
├── docker-compose.yml
└── README.md
In the root of the project directory (where docker-compose.yml
is located), run:
docker-compose up --build
This will:
- Build and start the Angular frontend, exposed at
http://localhost:4200
- Build and start the ASP.NET Core API, available at
http://localhost:5050
- Start a Redis instance on port
6379
If you make changes to the code and want to rebuild the containers:
docker-compose up --build
To stop the services:
docker-compose down
- If you encounter HTTPS issues with the backend, you can disable HTTPS in the ASP.NET project or properly generate and trust a developer certificate using
dotnet dev-certs https --trust
. - The frontend uses
/api
as the base for API calls. Ensure it maps correctly to the backend container.