https://github.com/guillotinaweb/guillotina_chat
https://github.com/guillotinaweb/guillotina_chat
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/guillotinaweb/guillotina_chat
- Owner: guillotinaweb
- Created: 2017-10-15T05:52:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-02T22:59:51.000Z (almost 5 years ago)
- Last Synced: 2025-10-11T13:46:22.849Z (13 days ago)
- Language: CSS
- Size: 159 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
guillotina_chat Docs
====================
This is a simple package that is designed to be used as reference material
for the `Guillotina training section of the docs
`_.
It's really not meant for anything other than training so don't expect this
to be useful!
Dependencies
------------
Python >= 3.6
Installation
------------
This example will use virtualenv::
python -m venv .
./bin/pip install -e .[test]
Running
-------
Run pg:
make run-postgres
Most simple way to get running::
./bin/guillotina
Setup
-----
To setup the app then, first create container::
curl -X POST http://localhost:8080/db -d '{"id": "container", "@type": "Container"}' --user root:root
Then, install the app::
curl -X POST http://localhost:8080/db/container/@addons -d '{"id": "dbusers"}' --user root:root
curl -X POST http://localhost:8080/db/container/@addons -d '{"id": "guillotina_chat"}' --user root:root
Test, it's working::
curl http://localhost:8080/db/container/@get-conversations --user root:root
And, test sending message::
curl -i -X POST http://localhost:8080/db/container/conversations/ --data-raw '{
"@type": "Conversation",
"title": "New convo with foobar2", "users": ["Bob", "Alice"] }
' --user root:root