You can find the information here
Load backend API
It is recomended to create a virtualenv to save dependencies locally. If you already have one skip this step.
I recommend to create the virtual env within the same project folder and name it ".venv"
To create the virtualenv this way excecute the following command:
python3 -m venv .venv
- Posisionate yourself into project root folder
- Then activate virtual env (This example is only if you created your virtualenv in the same way as the "Create Virtualenv" section)
After this step you could install your dependencies inside the .venv folder
There is a file named "requirements.txt" which is holding all the names for the required dependencies. The dependencies will be installed from this file
pip install -r requirements.txt
Run Flask API
You will see something like:
Serving Flask app "main" (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: on * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger PIN: 132-406-912
Server is going to reload on every change in source code
Load frontend React App
If you don´t have installed Node JS yet, you can install from this page: https://nodejs.org/es/
And install the option "Recommended for most users"
Next steps are assuming you already have installed Node JS
Open terminal and posicionate on frontend folder
Then simply run the following command:
If everything is ok you will see the following output on terminal
Compiled successfully! You can now view creature-ai-demo in the browser. Local: http://localhost:3000/ On Your Network: http://192.168.100.8:3000/ Note that the development build is not optimized. To create a production build, use npm run build.