Skip to content

azuresphere7/xttdab-admin-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests (compatibility matrix)

👉 Set Environment

  1. Install Python >= 3.7

  2. Install NPM | NodeJS | NPM | YARN | | --- | --- | --- |
    | v14.0.0 | ❌ | ✅ | | v16.0.0 | ✅ | ✅ | | v18.0.0 | ❌ | ❌ |

  3. Run powershell.exe as administator and Execute follow command Set-ExecutionPolicy RemoteSigned -Force

👉 Start the Frontend

Step 1 - Once the project is downloaded, change the directory to react-ui.

$ cd frontend

Step 2 - Install dependencies via NPM or yarn

$ npm i --legacy-peer-deps
// OR
$ yarn

Step 3 - Start in development mode

$ npm run start 
// OR
$ yarn start

At this point, the app is available in the browser localhost:3000 (the default address).

👉 Start the Backend Server

Step 1 - Change the directory to backend

$ cd backend

Step 2 - Install dependencies using a virtual environment

# (Windows based systems)
$ python -m venv env
$ .\env\Scripts\activate.ps1

$ pip install -r requirements.txt

Step 3 - Setup the database

$ python manage.py makemigrations
$ python manage.py migrate

Step 4 - Start the API server (development mode)

$ python manage.py runserver 5000

Use the API via POSTMAN or Swagger Dashboard at localhost:5000.