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:
- Ensure Docker Desktop is downloaded and installed on your machine.
- Start the Docker engine via the Docker Desktop application.
- Ensure Node.js is downloaded and installed on your machine.
- Ensure Git is downloaded and installed on your machine.
- For CI/CD(continuous integration and development) workflows, use visual studio code to execute set up commands, pull and push latest changes.
-
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:
- Make sure Docker Desktop is downloaded and installed on your machine.
- Activate the Docker engine using the Docker Desktop application.
- Ensure Git is downloaded and installed on your machine.
- For CI/CD(continuous integration and development) workflows, we recommend using GitHub Desktop to pull latest changes.
-
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:
- Make sure Docker Desktop is downloaded and installed on your machine.
- Activate the Docker engine using the Docker Desktop application.
-
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