This project contains a small application with limited functionality for managing a collection of books.
It provides a simple CRUD API created with Nest.js, and an Angular frontend allowing users to add, edit, and retrieve books.
The project is structured into two main directories:
app
: Contains the Nest.js backend applicationui
: Contains the Angular frontend for the application
For more information about each of these applications, please see their associated README files
- Docker and Docker Compose installed on your machine.
-
Install dependencies:
cd app && yarn install cd ui && yarn install
-
Build and start the applications using Docker Compose:
docker-compose up --build
-
Access the applications:
- Frontend: Open http://localhost:4200 in your web browser.
- Backend: Send requests to http://localhost:3000.
A MongoDB instance is included in the docker-compose.yml
file, and the Nest.js application is configured to interact with MongoDB using Mongoose. The connection URL is configured in the docker-compose.yml
file.