Giter Site home page Giter Site logo

roacobb / react-django-admin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wimagguc/react-django-admin

0.0 1.0 0.0 579 KB

Administration interface in React JS, using Django's Rest Framework for the backend.

License: MIT License

Python 2.49% CSS 0.16% JavaScript 96.86% HTML 0.13% Dockerfile 0.01% Makefile 0.29% Smarty 0.07%

react-django-admin's Introduction

React-Django Admin

Administration interface in React JS, and a simple Django Rest Framework (with OAuth2 provider) for the backend. Uses Bootstrap for the templates.

This is not meant to be a replacement of Django's admin. What this project is actually good for:

  • You can provide a separate "administration" area for users
  • Web login for any OAuth2-based API

Screenshots

image

image

image

image

TODO

  • Forgotten password
  • Many, many bugfixes are coming up

Frontend

To install the project:

```sh
$ npm install
```

For development, auto-building the resources:

```sh
$ gulp watch
```

Edit the config:

The config is in `./js/config.js`; Copy the `./js/config.js.example` file, then change the API_URI parameter to the server you've set in the backend:

```js
var RDAAppConfig = {};
RDAAppConfig.Config = {
  API_URI : "http://localhost:5000",
  CLIENT_ID : "<YOUR_CLIENT_ID>",
  CLIENT_SECRET : "<YOUR_CLIENT_SECRET>",
  STORAGE_ID : "RDA_LOCALSTORAGE"
};
```

Run server:

```sh
$ node server.js
```

Visit http://localhost:8080/ in the browser.

This project uses:

* React.js
* Bootstrap
* Backbone.js
* jQuery 2

Backend

To install the project:

```sh
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python manage.py syncdb
$ python manage.py collectstatic
```

Run locally:

```sh
$ foremen start
```

Or, alternatively:

```sh
$ python manage.py runserver
```

Add the OAuth2 Credentials

Run the server, then go to the address:

http://localhost:5000/admin/oauth2_provider/application/add/

Add:

* CLIENT_ID, CLIENT_SECRET: the auto-generated keys
* Client type: Confidental
* Authorization grant type: Resource owner password-based
* Name: any
* User: any

Used at

This is a proof-of-concept, not used anywhere in special.

However, feel free to add your link here and send a pull request.

License

MIT, do-with-the-code-whatever-you-please License

About

Richard Dancsi

react-django-admin's People

Contributors

wimagguc avatar

Watchers

James Cloos 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.