Trapper Frontend | Local development | Demo | Documentation | Who is using TRAPPER? | Funders and Partners | Support | License
This is the Citizen Science frontend for the TRAPPER project. It is an Angular application leveraging NX to manage the monorepo. At this moment, this repo contains the following applications:
You will need NodeJS 18 and NPM installed on your machine.
First, install dependencies using npm install.
To run the application, use npm run start. This will start the application on port 4200.
By default, the application will connect to the backend running on https://dev.trapper-project.org/. To change this, you can set the TRAPPER_BACKEND_URL environment variable.
To format the code, use npm run format.
Code formatting is done using Prettier. It is enforced in the CI pipeline.
To lint the code, use npm run lint.
Linting is done using ESLint. It is enforced in the CI pipeline.
To build the application, use npm run build.
You can deploy the application using docker image build by the CI pipeline. The image is available on the GitLab container registry.
You can specify the backend URL using the TRAPPER_BACKEND_URL environment variable. The correct format for url is ${protocol}://${host}:${port}. For example, https://dev.trapper-project.org, without a trailing slash.
You can run the image using the following command:
Example :docker pull registry.gitlab.com/trapper-project/trapper-frontend:main
docker run -p 8042:80 -e TRAPPER_BACKEND_URL=https://dev.trapper-project.org registry.gitlab.com/trapper-project/trapper-frontend:mainTrapper Expert demo instance does not include Trapper Citizen Science or Trapper AI yet.
TRAPPER documentation.
If you are using TRAPPER, please cite our work:
Bubnicki, J.W., Churski, M. and Kuijper, D.P.J. (2016), trapper: an open source web-based application to manage camera trapping projects. Methods Ecol Evol, 7: 1209-1216. https://doi.org/10.1111/2041-210X.12571
For more news about TRAPPER please visit the Open Science Conservation Fund (OSCF) website and OSCF LinkedIn profile.
Feel free to add a new issue with a respective title and description on the TRAPPER issue tracker. If you already found a solution to your problem, we would be happy to review your pull request.
If you prefer direct contact, please let us know: contact@os-conservation.org
We also have TRAPPER Mailing List and TRAPPER Slack.
Read more in TRAPPER License.