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
- Forgotten password
- Many, many bugfixes are coming up
```sh
$ npm install
```
```sh
$ gulp watch
```
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"
};
```
```sh
$ node server.js
```
Visit http://localhost:8080/ in the browser.
* React.js
* Bootstrap
* Backbone.js
* jQuery 2
```sh
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python manage.py syncdb
$ python manage.py collectstatic
```
```sh
$ foremen start
```
Or, alternatively:
```sh
$ python manage.py runserver
```
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
This is a proof-of-concept, not used anywhere in special.
However, feel free to add your link here and send a pull request.
MIT, do-with-the-code-whatever-you-please License
Richard Dancsi
- Blog: wimagguc.com
- Github: github.com/wimagguc
- Twitter: twitter.com/wimagguc
- Linkedin: linkedin.com/in/richarddancsi