🏗️Deploying COSAP
The web application hosted on cosap.bio is quite limited for large numbers of users and runs. Therefore it can be useful for some users to have their own instance of local server and web application.
This option can be also used in the scenario where a single mirror of COSAP running in server and it is accessed via a local network. This allows keeping data within an institution.
Getting API
To start the API locally you simply clone the git repository and start containers:
Environment Variables and Example .env File
API and COSAP requires some environment variables to be set up correctly. Here is an example .env file that contains required variables.
You can then run the containers.
This will start the COSAP worker and API which communicate via a messaging queue.
Now it is time to set up the web app.
Setting up Web Application
Clone the git repository of the web app.
Build the app
Install the serve package and serve the application
You can now start using the web application on http://localhost:3000. For instructions please see:
Last updated