You will need to install the following to get up and running:
- Open a terminal at the directory location where you would like the project to be stored
- Run
git clone https://github.com/sgunsay1/VetDecisionTree.git
- While still in the terminal, cd into the directory titled
VetDecisionTree
- Run
npm install
to download all project dependencies - You're ready to go!
It is much easier to write/develop code using and IDE (Integrated Development Environment). They provide a TON of helpful tools to get you up and running whilst coding. They also provide intellisense and autocompletion features for your code.
My favorite IDE is VS Code
Things should be set up such that all you have to do to change the decision tree paths is edit or add files inside of the src/decisions
folder. Checkout vaccineTree.ts
for an example of how this might work.
In the project directory, you can run:
-
npm run dev
ornpm start
- Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.
- Runs the app in the development mode.
-
npm run build
- Builds the app for production to the
dist
folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
- Builds the app for production to the
You can deploy the dist
folder to any static host provider (netlify, surge, now, etc.)