Code Monkey home page Code Monkey logo

django-react-app's Introduction

Django & React application

(Based on: https://github.com/18F/docker-compose-django-react)

This is a app prototype, for my personal use only. It consist of Django REST API (CRUD functionality) and React frontend (work in progress).

Running

  1. docker-compose build
  2. docker-compose up
  3. There should now be two servers running:
  1. docker-compose run --rm django python3 manage.py migrate

API routes

  • GET /api/posts posts list
  • POST /api/posts create a new post
  • GET /api/posts/:id get post detail
  • PATCH /api/posts/:id update post
  • PUT /api/posts/:id rewrite post
  • DELETE /api/posts/:id delete post

Using docker-compose run to issue one-off commands

If you want to run a one-off command, like installing dependencies, you can use the docker-compose run <service_name> <cmd>.

For example, to install a Javascript dependency and save that information to package.json we could run: docker-compose run --rm frontend npm install --save axios

If you want to be on a shell for one of the Docker services, you can do something like: docker-compose run --rm frontend bash

django-react-app's People

Contributors

semyonmerkulov avatar

Stargazers

Oğuzhan BULUT avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.