Based on Django Rest Framework (4.1) with Python (3.10)
# install mini-conda (these four commands download and install the latest 64-bit version of the Linux installer)
# create folder to installer
$ mkdir -p ~/miniconda3
output:
# download installer
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
output:
# install mini-conda
$ bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
output:
# silently install
$ rm -rf ~/miniconda3/miniconda.sh
output:
# after installing, close and reopen your terminal application or refresh it to activate mini-conda
$ source ~/miniconda3/bin/activate
output:
# check nvidia driver version
$ nvidia-smi
output:
# create environment
$ conda env create -f environment_cu121.yml # cuda 12.1
output:
# activate environment
$ conda activate gemna_3.10
output:
# migrate database (default SQLite)
$ ./manage.py makemigrations
output:
$ ./manage.py startapp migrate
output:
# create super user to login on Django Admin
$ ./manage.py createsuperuser
output:
# run server
$ ./manage.py runserver 0.0.0.0:8000
output:
At the end, in the browser type: http://localhost:8000/admin, the web application (Django admin) will be loaded there.
Login
Administration
Frontend and backend integration depends on the domain or IP of the backend. For example, if the backend is deployed on a server with an IP: 192.168.1.77 and on port: 8000, then that IP and port must be setup in the nuxt.config.js file of the frontend.
...
axios: {
baseURL: "http://192.168.1.77:8000",
// progress: false,
// credentials: true,
// validateStatus: false
},
...
We include an user guide to use the GEMNA web applicaction.