8000 GitHub - win7/GEMNA_Backend
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

win7/GEMNA_Backend

Repository files navigation

GEMNA Backend

Based on Django Rest Framework (4.1) with Python (3.10)

Install requirements (Ubuntu/Linux Mint)

# 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:

Alt text

# download installer
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh

output:

Alt text

# install mini-conda
$ bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3

output:

Alt text

# silently install
$ rm -rf ~/miniconda3/miniconda.sh

output:

Alt text

# after installing, close and reopen your terminal application or refresh it to activate mini-conda
$ source ~/miniconda3/bin/activate

output:

Alt text

Quick Setup

# check nvidia driver version
$ nvidia-smi

output:

Alt text

# create environment
$ conda env create -f environment_cu121.yml # cuda 12.1

output:

Alt text ... Alt text

# activate environment
$ conda activate gemna_3.10

output:

Alt text

# migrate database (default SQLite)
$ ./manage.py makemigrations

output:

Alt text

$ ./manage.py startapp migrate

output:

Alt text

# create super user to login on Django Admin
$ ./manage.py createsuperuser

output:

Alt text

# run server
$ ./manage.py runserver 0.0.0.0:8000

output:

Alt text

At the end, in the browser type: http://localhost:8000/admin, the web application (Django admin) will be loaded there.

Login

Alt text

Administration

Alt text

Frontend and backend integration

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
	},
...

User guide

We include an user guide to use the GEMNA web applicaction.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0