Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

#Creature AI

You can find the information here

Load backend API

Create virtualenv

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

Activate virtualenv

  1. Posisionate yourself into project root folder
cd path/to/your/project/folder
  1. Then activate virtual env (This example is only if you created your virtualenv in the same way as the "Create Virtualenv" section)
source .venv/bin/activate

After this step you could install your dependencies inside the .venv folder

Install dependencies

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

python backend-api/main.py

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

Install dependencies

Open terminal and posicionate on frontend folder

cd frontend

Then simply run the following command:

npm install

Run app

npm start

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.

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published