https://zetonteam.github.io/zeton_react/
Zeton is an application that support behavioral therapy. Token system for the child. Allows you to earn points for your activities and exchange them for prizes.
- Developing deficit (desirable) behaviour
- Reduction of undesired behaviour
- Generating and maintaining therapy effects over time
This project was bootstrapped with Vite.
To install dependencies, run:
To list every command, run: npm run
In the project directory, you can run:
or
or
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.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
after that if we want to up in browser from dist:
or if we want to get for that serve package:
Builds the app for production to the dist
folder.
It correctly bundles React 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!
See the section about deployment-->[this is legacy for change!!! to Vite] for more information.
In cli like bash terminal, prompt one line of them below:
or one line of them below:
Next step in cli terminal one line of them below:
Next step in browser We can launch view of our frontend app without backend by endpoint below:
Another useful prompt in cli to check our images or containers situation:
For styling we use Styled Components
Install the package of styled-components in your project directory with:
npm install --save styled-components
For keeping state we use Redux.
Next install Redux core library:
npm install redux
And..
npm install react-redux
(We changed create-react-app to vite react by recomendations and because of vulnerabilities from "react-script" package)
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
This section has moved here: ...todo
This section has moved here: ...todo
This section has moved here: ...todo
This section has moved here: ...todo
This section has moved here: ...todo
This section has moved here: ...todo
- Pick a prize:
There are two places to get to this mode.
- Click on the
Nagrody
button in the navbar. (After adding all pages it should work from every page) - Or in Student's panel click on
Przyznaj nagrodę
button.
- Prizes - edition mode
-
To delete prize, click x icon
- Tasks and points settings - click on Ustawienie in the sidebar (footer on mobile) and go to Zachowania
Here you can see all the tasks and points, add new ones, edit existing or delete them in the same way as it was shown in "Prizes" section.
-
now you can see all the tasks and points that student can receive for completing the task by clicking
Wybierz zachowanie
on the select bar/button -
you can see a list of behaviours/tasks and points
-
after selecting the task/behaviour you can click
Przyznaj punkty
button to add points for compliting the task.