Climsoft Web is a comprehensive web application featuring both frontend and backend components. The frontend is developed with Angular, while the backend leverages NestJS and PostgreSQL for a robust, full-stack solution.
To deploy the Climsoft Web application for development purposes, follow these steps:
Clone the Repository: Execute the following command to Clone Climsoft Web to your local machine using the command:
git clone https://github.com/climsoft/climsoft-web.git
Start PostgreSQL: Within the cloned repository directory, execute the following command to initialise the PostgreSQL container:
docker-compose -f docker-compose.dev.yaml up
Backend API Setup:
Navigate to back-end/api
and run the commands below to install NestJS dependencies, launch the backend API with hot-reload enabled and execute seeding migration scripts:
npm install
nest start --watch
Frontend Setup:
In the front-end/pwa
directory, execute the following commands to install Angular dependencies and launch the development server:
npm install
ng serve
Access the Application:
Open a web browser and go to http://localhost:4200/
to view the application.
For testing deployment with Docker containers for PWA, API and PostgreSQL, follow these steps:
Clone the Repository: Clone Climsoft Web to your machine:
git clone https://github.com/climsoft/climsoft-web.git
Initialise Containers: Within the cloned repository directory, execute the following command to initialise the PWA, API and PostgreSQL containers:
docker-compose -f docker-compose.test.yaml up
Access the Application:
Navigate to http://localhost:4200/
in your web browser to interact with the application.
Stopping the Application: Within the cloned repository directory, execute the following command to stop the PWA, API and PostgreSQL containers:
docker-compose -f docker-compose.test.yaml down
For production deployment with Docker containers for PWA, API and PostgreSQL, follow these steps:
Download required files: Download docker-compose.prod.yaml and .env files.
Edit .env file Replace the contents of the file with your specific settings.
Initialise Containers: Within the cloned repository directory, execute the following command to initialise the PWA, API and PostgreSQL containers:
docker-compose -f docker-compose.prod.yaml up
Access the Application:
Navigate to http://localhost:4200/
in your web browser to interact with the application.
Stopping the Application: Within the cloned repository directory, execute the following command to stop the PWA, API and PostgreSQL containers:
docker-compose -f docker-compose.prod.yaml down