A Web GIS that uses technologies such as NodeJS, ReactJS, Leaflet, Docker, among others. Its main focus is on easy deployment and simplified development of GIS applications.
The only prerequisite for using NodeGIS is to have Docker installed.
Shell scripts have been implemented to facilitate the use of the application. These scripts are in this repository, however, the individual commands for each action are also detailed below.
To run the application in a local environment, simply execute the run-application-local.sh shell script as follows:
# Directly, it is necessary to give execution permission to the script
$ ./run-application-local.sh# Or using bash
$ bash run-application-local.shThe individual commands are also listed below:
$ docker run -d -p 15432:5432 --name nodegis-db mateusqc/nodegis-postgresql$ docker run -d -p 8080:80 -e BASE_API_URL='http://localhost:8081' --name nodegis-fe mateusqc/nodegis-fe:latest$ docker run -d -p 8081:8000 -e DB_IP_ADRESS=${LOCAL_MACHINE_IP} -e DB_PORT="15432" --name nodegis-be mateusqc/nodegis-be:latestNOTE: Replace LOCAL_MACHINE_IP with the IP of the machine on the local network.
To run the application in a production environment, simply execute the run-application-prod.sh shell script.
# Directly, it is necessary to give execution permission to the script
$ ./run-application-prod.sh.sh# Or using bash
$ bash run-application-prod.shThe individual commands are also listed below:
$ docker run -d -p 15432:5432 --name nodegis-db mateusqc/nodegis-postgresql$ docker run -d -p 8080:80 -e BASE_API_URL="http://${LOCAL_MACHINE_IP}:8081" --name nodegis-fe mateusqc/nodegis-fe:latest$ docker run -d -p 8081:8000 -e DB_IP_ADRESS=${LOCAL_MACHINE_IP} -e DB_PORT="15432" --name nodegis-be mateusqc/nodegis-be:latestNOTE: Replace LOCAL_MACHINE_IP with the public IP of the machine. In addition, the ports can be changed to suit the network being used. By default, the frontend will run on port 8080 and the backend on 8081.
To run the application in a development environment, some dependencies are necessary:
- NodeJS
- Yarn (or npm)
- docker-compose
The development environment does not use Docker directly, only a database container configured with docker-compose. Therefore, simply run the command below in the repository root folder:
$ docker-compose up -dThen, the following commands must be executed (for both frontend and backend):
# Installing dependencies
$ yarn
# Running the application in development mode
$ yarn dev