Operation
This page outlines how to successfully operate the application
Configuration Pre-Requisites
You will first need to create a .env file as described in the Configuration Guide
Operation Using Docker
Docker is used to build, deploy, and manage applications within isolated, lightweight containers, effectively packaging an application with all its dependencies so it can run consistently across different environments, allowing for faster development, testing, and deployment of software.
We use it to simplify installation
Prerequisites
Follow these steps to install Docker on your system:
-
The steps are different for Windows/Mac versus Linux users:
-
You must ensure that docker is running for the Talawa-Admin application to work correctly.
The next steps will depend on whether you are:
- an end user installing our software (Production Environments) or
- one of our open source contributors (Development Environments).
Please follow them closely.
For Production Environments
This section describes how to setup the application in a production environment.
-
Configure
nginx.conffile located atconfig/docker/setup. Modify it to fit your preferences before running the application. -
Build and Run the Docker Image:
Run the following command to run the Docker image:
docker-compose -f docker/docker-compose.prod.yaml --env-file .env upor
docker compose -f docker/docker-compose.prod.yaml --env-file .env up -
To stop the container run the following command:
docker-compose -f docker/docker-compose.prod.yaml downor
docker compose -f docker/docker-compose.prod.yaml downThe application will be accessible at
http://localhost:4321
For Development Environments
This section describes how to setup the application in a development environment.
-
Build and Run the Docker Image:
Run the following command to run the Docker image:
docker-compose -f docker/docker-compose.dev.yaml --env-file .env upor
docker compose -f docker/docker-compose.dev.yaml --env-file .env up -
To stop the container run the following command:
docker-compose -f docker/docker-compose.dev.yaml downor
docker compose -f docker/docker-compose.dev.yaml down
The application will be accessible at http://localhost:4321
Operation Without Docker
If you are running Talawa-Admin natively then the next steps will depend on whether you are:
- an end user installing our software (Production Environments) or
- one of our open source contributors (Development Environments).
Please follow them closely.
For Production Environments
Run the following command to start the development server:
pnpm run serve
For Development Environments
Run the following command to start the production server:
pnpm run serve &