@@ -8,14 +8,14 @@ SPDX-License-Identifier: CC-BY-4.0
88
99## Prerequisites
1010
11- - Go 1.14.x
12- - Python 3
13- - Node 8/12 +
11+ - Go 1.24.+
12+ - Python 3.11, 3.12 currently not working due to known issues with lxml.
13+ - Node 18 +
1414
1515## Node Setup
1616
1717NodeJS is used by [ serverless] ( https://www.serverless.com/ ) to facilitate
18- deployment and location testing. In all but few occasions, we use NodeJS v12 +.
18+ deployment and location testing. In all but few occasions, we use NodeJS v18 +.
1919
2020The frontend UI still requires an older version of NodeJS - version 8. This is
2121due to compatibility issues with the Angular and Ionic toolchain for the legacy
@@ -47,8 +47,7 @@ Historical and Current Endpoints:
4747
4848### Install Python
4949
50- You will need to install a local Python 3.6+ runtime - Python 3.7 will work now
51- that we've updated the ` hug ` library.
50+ You will need to install a local Python 3.11 runtime (possibly via ` deadsnakes ` ).
5251
5352One easy way to install a Python runtime on a Mac is via the ` pipenv ` tool.
5453Here, we'll use it to install a specific version of Python. There are other
@@ -63,7 +62,7 @@ To create a new Python installation using `pipenv`, specify the specific version
6362using the ` --python VERSION ` flag, like so:
6463
6564``` bash
66- pipenv --python 3.7
65+ pipenv --python 3.11
6766```
6867
6968When given a Python version, like this, Pipenv will automatically scan your
@@ -79,7 +78,7 @@ We prefer to use `virtualenv`.
7978pip3 install virtualenv
8079```
8180
82- Now setup the virtual env using python 3.6+ :
81+ Now setup the virtual env using python 3.11 :
8382
8483``` bash
8584# Check your version and grab the appropriate path
@@ -89,7 +88,7 @@ which python
8988
9089# Setup the virtual env
9190cd cla-backend
92- virtualenv --python=/usr/local/Cellar/python3/3.7.4 /bin/python3 .venv
91+ virtualenv --python=/usr/local/Cellar/python3/3.11.13 /bin/python3 .venv
9392```
9493
9594This will create a ` .venv ` folder in the ` cla-backend ` project folder. We'll
@@ -111,6 +110,20 @@ pip3 install -r requirements.txt
111110
112111This will install the dependencies in the ` .venv ` path.
113112
113+
114+ ### Notes on Ubuntu 24.04 LTS
115+
116+ - Its python ` 3.12 ` is "too new" so the followimng steps are needed to install python 3.11:
117+ ```
118+ sudo add-apt-repository ppa:deadsnakes/ppa
119+ sudo apt update
120+ sudo apt install python3.11 python3.11-venv python3.11-dev
121+ python3.11 -m venv .venv
122+ source .venv/bin/activate
123+ pip install -r requirements.txt
124+ ```
125+
126+
114127### Setup Environment Variables
115128
116129We'll need a few run-time environment variables to communicate with AWS when
@@ -187,6 +200,8 @@ This will install the `serverless` tool and plugins.
187200# You can simply run this launcher:
188201# ok to use node v12+
189202yarn serve:dev
203+ # or to start on 0.0.0.0 IP:
204+ yarn serve:ext
190205
191206# Or run it using this approach - points to the DEV database/environment
192207node_modules/serverless/bin/serverless wsgi serve -s ' dev'
0 commit comments