Info |
---|
Through the below steps crater Crater can be installed on any device whether it is linuxLinux, macos or windowsMacOS or windows. Note, for Bahmni you can install crater using Bahmni docker compose as mentioned here (Bahmni LITE): Running Bahmni ON Docker. The below steps are to be used only if you want to perform a standalone install of Crater. |
Prerequisites:-
Docker installed on your device or visit : https://docs.docker.com/install/
Docker compose installed https://docs.docker.com/compose/install/(opens new window)
Clone the crater repository
git clone https://github.com/Bahmni/crater-invoice/crater
This page will help you to install crater on your own PC machine.
Tip |
---|
At the end of this module you will be able to install and run crater on your on pc using docker |
...
machine using docker. These instructions are taken from Crater documentation here: https://docs.craterapp.com/installation.html#docker-installation |
Commands to follow :-
Must use bahmni-master branch(steps given below) for development :-
Code Block |
---|
$cd crater
$cd docker |
Make sure that your other docker containers are down if not so run docker compose down inside the up container file.Now to run the crater application simply follow :-
Code Block |
---|
$docker compose up -d |
For development do the changes in your php code and run :-
Code Block |
---|
$ yarn
$ yarn build |
Now you can build a docker image of php from this file and use it in bahmni-docker file.
Tip |
---|
Run the above commands and go on your browser (http://localhost is default port) your crater installation wizard will start. |
Commands to follow for master branch changes :-
Code Block |
---|
$ cd crater $ cp .env.example .env $ docker-compose up -d $ ./docker-compose/setup.sh |
Tip |
---|
Run the above commands and go on your browser (http://localhost is default port) your crater installation wizard will start. |
Info |
---|
Do check the port on which crater is running in the docker file which you have cloned |
Complete the installation wizard :-
The below window should appear if everything worked well.
...
Database Host:
db
Database Name:
crater
Database Username:
crater
Database Password:
crater
...
Verify the domain
...
Add your mail id and name.
...
You are all set to use crater
...
Tip |
---|
SuccessSuccessfully installed crater invoice solution using Docker |