Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/azurespheredev/xttdab-admin-django


https://github.com/azurespheredev/xttdab-admin-django

django javascript pip python react react-ui

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

> `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`.

```bash
$ cd frontend
```


> **Step 2** - Install dependencies via NPM or yarn

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


> **Step 3** - Start in development mode

```bash
$ 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`

```bash
$ cd backend
```


> **Step 2** - Install dependencies using a `virtual environment`

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

$ pip install -r requirements.txt
```


> **Step 3** - Setup the database

```bash
$ python manage.py makemigrations
$ python manage.py migrate
```

> **Step 4** - Start the API server (development mode)

```bash
$ python manage.py runserver 5000
```

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