Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/precision-sustainable-ag/dst-selector
https://github.com/precision-sustainable-ag/dst-selector
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/precision-sustainable-ag/dst-selector
- Owner: precision-sustainable-ag
- License: mit
- Created: 2022-07-25T15:02:40.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-10-28T20:36:51.000Z (2 months ago)
- Last Synced: 2024-10-30T03:37:57.292Z (2 months ago)
- Language: JavaScript
- Homepage: https://covercrop-selector.org
- Size: 837 MB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
- open-sustainable-technology - Cover Crop Species Selector - Used to help farmers select a cover crop that fits their goals and constraints. (Consumption / Agriculture and Nutrition)
README
## Cover Crop Species Selector Decision Support Tool
**Date Created:** 8/18/22
**Date Last Modified:** 10/31/2024
The species selector DST is used to help farmers select a cover crop that fits their goals and constraints. The user can either input specifics about their field location and cover cropping goals or explore cover crops without entering those details. The tool is mainly used to explore expert reccomendations and ratings for cover crops in the farmer's USDA Plant Hardiness Zone. This allows farmers to make educated decisions that are best suited for their specific goals and can save time as opposed to calling the extension office.
Support for this project is brought to us by [Agricultural Informatics Lab](https://sudokita.com), NE SARE, USDA NRCS, NECCC, and the [Precision Sustainable Agriculture](http://precisionsustainableag.org).
To access the live tool, visit [https://covercrop-selector.org/](https://covercrop-selector.org/)
To see development progress, visit [https://develop.covercrop-selector.org/](https://develop.covercrop-selector.org/)## Table of Contents:
- [Cover Crop Species Selector Decision Support Tool](#cover-crop-species-selector-decision-support-tool)
- [Table of Contents:](#table-of-contents)
- [Tech stack](#tech-stack)
- [Local Installation Steps](#local-installation-steps)
- [Running in docker:](#running-in-docker)
- [Documentation](#documentation)
- [Runbook](#runbook)
- [Unit Testing](#unit-testing)
- [Helpful Links](#helpful-links)## Tech stack
- Single page application made in React.js
- Ratings and zone info verified via Airtable and then ingested into a PostgreSQL database and served up using a Node.js API
-## Local Installation Steps
**Prerequisites:**
1. Node and NPM [Download Here](https://nodejs.org/en/download/)
2. Git [Download Here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
3. A code editor (we recommend vs code) [Download Here](https://code.visualstudio.com/docs/setup/setup-overview)**Steps:**
1. Open a new Terminal for Mac/Linux or Command Prompt for Windows
2. Move to the desired folder `cd /path/to/folder`
3. Clone this repository into that folder `git clone https://github.com/precision-sustainable-ag/dst-selector`
4. From the Terminal/Command Prompt, move into the cloned directory `cd dst-selector`
5. Run `npm config set '@psa:registry' https://node.bit.cloud`
6. From the same command window, run `npm install` to install project dependencies. A full list of the dependencies can be found in package.json. If you are running on a windows machine delete package-lock.json prior to running the below command.
7. Create a file called .env in `root` directory (dst-selector). The file will contain the below keys. This document is in the git ignore, so it (and your API keys) won't be pushed to the repository. Ask @mikahpinegar or Adam Smith for the values of the keys```
VITE_API_GOOGLE_API_KEY=""
VITE_API_OPEN_WEATHER_API_KEY=""
VITE_API_MAPBOX_API_KEY=""
VITE_API_AUTH0_DOMAIN=""
VITE_API_AUTH0_CLIENT_ID=""
VITE_API_AUTH0_AUDIENCE=""
VITE_API_USER_HISTORY_API_URL=""
VITE_API_USER_HISTORY_SCHEMA=""
VITE_API_RELEASE_NOTES=""
VITE_API_MAPBOX_TOKEN=""
```8. After the dependencies have been installed and the .env file has been created, run `npm start` to run the code locally. If you run into any issues take a look in the [Runbook](#runbook) for previous issues and solutions. This will compile the JSX code into Javascript and open up a new browser window with the current version of the covercrops project!
## Running in docker:
Run `./start_script.sh`
Run `open http://localhost:3000`## Documentation
For in depth documentation see [the wiki pages](https://precision-sustainable-ag.atlassian.net/wiki/spaces/DST/pages/156500002/Species+Selector)
## Runbook
**Symptom:**
Node sass not supported on Mac OS `Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (88)`**Solution:**
`npm rebuild node-sass`**Symptom:**
After running `npm install` you might run into an `Error E404 - Not Found - GET https://registry.npmjs.org/@psa%2fdst.ui.map - Not found`**Solution:**
Follow these steps:1. Install the `react-scripts` package using `npm install react-scripts --save`
2. Run `npm start`**Line Spacing**
Set Line spacing (CRLF -> LF)
`git config core.autocrlf false`
`git rm --cached -r .`
`git reset --hard`## Unit Testing
To run the Cypress client
`npx cypress open --config-file=dev.config.js`## Helpful Links
**Confluence Links**
[Development Best Practices](https://precision-sustainable-ag.atlassian.net/wiki/spaces/ON/pages/381255706/Development+Best+Practices?atl_f=PAGETREE)
[Design Best Practaces](https://precision-sustainable-ag.atlassian.net/wiki/spaces/DST/pages/582746142/Web+Content+Accessibility+Guidelines+Best+Practices)
[ESLint](https://precision-sustainable-ag.atlassian.net/wiki/spaces/ON/pages/203915267/Linting+an+Application?atl_f=PAGETREE)
[Release Notes](https://precision-sustainable-ag.atlassian.net/wiki/spaces/DST/pages/277413889/Species+Selector+Release+Notes)
[User History](https://precision-sustainable-ag.atlassian.net/wiki/spaces/DST/pages/493584392/User+History+Introduction)**Recomended Development Tools**
[VSCode](https://code.visualstudio.com/)
[Cursor](https://www.cursor.com/)