ToyFy web-application’s aim is to educate the children about the value of money and currency by comparing the value of their favorite toy in different countries in the world. This WebApp is specially designed for children of age group 5 - 13 years. The point is not to prevent the kid from getting the wanted toy, but to give them some understanding of money value and to prepare them for their future. This application enables parents to create their own profile and children can also use the same.
docker
and docker-compose
.Nodejs
.To start the database open the terminal and cd
your way in to the project root folder. You can just simply run
docker-compose up
to start the database. Closing the terminal will kill the database. So you need to restart the database every time you need to use it.
Open the root folder in IntelliJ and import all the gradle dependencies (this has to be done only once). Make sure that the database is running (see steps above) otherwise the backend won't have access to it. Then run the main class at
src/main/java/se/kth/sda6/skeleton/SkeletonApplication.java to start the web server.
To install the project dependencies for the frontend, open the terminal and make sure that the current directory is frontend
. You can then run npm install
to install all the dependencies needed for the project (This has to be done only once).
To start the frontend server run npm start
from the frontend
directory. Make sure that database and backend server are also running so that the frontend can interact with the backend.
User can see the short description about app on left side of Main page and Login with Sign up blocks on right side!
New user needs to Sign up block and add:
Here you can find your new toy! In search block:
Enter the toy which you want Click on your favourite toy Popup will show you :
- Picture
- Description
- Price
- Currency
- Message about what you can buy for that money in other country
- Buy button in the right side
After Clicking on the buy button - You will see a popup message: Price from toy is going automatically to the balance
If you do not have enough money you will not be able to buy any toy and has to perform some tasks to earn money
2. Task
Welcome to our task page!!
Congratulations now you have enough money to go back to Home page and buy toys.
3. Exchange toys
Exchange your used toy with another used toy!
See available toys
Will show toys which other kids already added and want to exchange
Add a picture of your toy
Click plus and add picture of toy which you want to exchange
Teach kids to earn, save and spend Parents can: