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

https://github.com/app-generator/core-django-api-gen

Django API Generator - Complete Sample | AppSeed
https://github.com/app-generator/core-django-api-gen

appseed django-api django-starter django-template

Last synced: 3 months ago
JSON representation

Django API Generator - Complete Sample | AppSeed

Awesome Lists containing this project

README

          

# [Django API Generator](https://github.com/app-generator/django-api-generator) `Sample`

Minimal **Django** project with `Docker` support - actively supported by [AppSeed](https://appseed.us/) via `Email` and `Discord`.

> Features - see **[video](https://www.youtube.com/watch?v=fkjvhFejEv8)** presentation

- ✅ `Up-to-date Dependencies`
- ✅ `Docker`
- ✅ Integrates [API Generator](https://github.com/app-generator/django-api-generator) Library for Django


## ✨ Start the app in Docker

> 👉 **Step 1** - Download the code from the GH repository (using `GIT`)

```bash
$ git clone https://github.com/app-generator/core-django.git
$ cd core-django
```


> 👉 **Step 2** - Start the APP in `Docker`

```bash
$ docker-compose up --build
```

Visit `http://localhost:5085` in your browser. The app should be up & running.


## Manual Build

> 👉 Download the code

```bash
$ git clone https://github.com/app-generator/core-django-api-gen.git
$ cd core-django-api-gen
```


> 👉 Install modules via `VENV`

```bash
$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt
```

> 👉 Set Up Database

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


> 👉 Create SuperUser

```bash
$ python manage.py createsuperuser
```


> 👉 Generate the API for `Books` model

```bash
$ python manage.py generate-api
```


> 👉 Start the app

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

At this point, the app runs at `http://127.0.0.1:8000/` and the API is usable `http://127.0.0.1:8000/api/books/`


![Django API Generator - DRF Interface (open-source tool).](https://user-images.githubusercontent.com/51070104/197181145-f7458df7-23c3-4c14-bcb1-8e168882a104.jpg)


---
[Django API Generator](https://github.com/app-generator/django-api-generator) `Sample` - Minimal **Django** starter provided by **[AppSeed](https://appseed.us/)**