Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/guillotinaweb/guillotina_react

A Management interface for Guillotina
https://github.com/guillotinaweb/guillotina_react

asyncio guillotina hooks python react

Last synced: 7 days ago
JSON representation

A Management interface for Guillotina

Awesome Lists containing this project

README

        

# 🔌 Guillotina Management Interface

It's build around the idea of a framework to roll you own GMI.

Provides an interface to access all Guillotina content depending on user permissions and allowing you to apply actions like create/modify/remove content, UI interactions like displaying flash messages, etc.

All this with the flexibility to build it your way, adding your own content with your forms, your icons, etc. It's build around the idea to act as a framework,
layer that could be extended from outside.

## Prerequisites

- React +16.12.0

## Status

Alpha version. The app is usable, but still needs some love.

## Roll your own guillotina

### With create react app

```bash

npx create-react-app gmi_demo
cd gmi_demo

yarn add @guillotinaweb/react-gmi

```

App.js

```jsx
import React from 'react'
import { Layout } from '@guillotinaweb/react-gmi'
import { Auth } from '@guillotinaweb/react-gmi'
import { Guillotina } from '@guillotinaweb/react-gmi'
import { Login } from '@guillotinaweb/react-gmi'
import { getClient } from '@guillotinaweb/react-gmi'
import { ClientProvider } from '@guillotinaweb/react-gmi'
import { useState } from 'react'
import '@guillotinaweb/react-gmi/dist/css/style.css'

// guillotina url
let url = 'http://localhost:8080'
const schema = '/'
const auth = new Auth(url)
const client = getClient(url, schema, auth)

function App() {
const [isLogged, setLogged] = useState(auth.isLogged)

const onLogin = () => {
setLogged(true)
}

const onLogout = () => {
setLogged(false);
};

auth.onLogout = onLogout

return (


{isLogged && }
{!isLogged && (






)}


)
}

export default App
```

### To add icons:

Add the icons to the default public/index.html header

```diff

+

```

- Copy guillotina logo to your public

```bash
curl https://raw.githubusercontent.com/guillotinaweb/guillotina_react/master/public/logo.svg > public/logo.svg

```

## Docs?

- [Howto Extend Guillotina React form outside?](docs/extend.md)
- [Narrative Docs](docs/api.md)
- [Getting Started - Step by Step](docs/tutorial/tutorial.md)

## Develop

```
run a local guillotina
yarn
yarn start

```

## Screenshots

![](screenshots/screen2.png)
![](screenshots/screen1.png)
![](screenshots/screen3.png)

## Sponsors

This project is sponsored by Vinissimus Wine Shop and Iskra