mehmetalpsumer / django-rest-api-generator

Django REST API generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django CRUD REST API Generator

This is a simple tool that generates a Django REST API with the given models.

Specs:

  • Authentication,
  • DRF generic views,
  • Routes,
  • PEP8,
  • Dockerized.

You can test it out here.

To run the generated Django apps

Docker and docker-compose are required to run the generated apps.

# Unzip the project at 'Downloads' or 'server/projects'.
cd django_project  # Go into the generated app
docker-compose up  # Run the containers

Run local version

Run the server.

cd server
npm i
npm run dev

Run the client.

cd client
npm i
npm run serve

Screenshots

  1. Choose project and app parameters.

Step 1

  1. Create app models with the form served by Vue.

Step 2

  1. Review your models structure.

Step 3

  1. All these will be generated by the app and can be downloaded.

Step 4

About

Django REST API generator


Languages

Language:TypeScript 57.1%Language:Vue 40.0%Language:JavaScript 1.3%Language:HTML 0.7%Language:CSS 0.5%Language:Dockerfile 0.3%