Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 1.51 KB

step-1-install-guillotina.md

File metadata and controls

81 lines (60 loc) · 1.51 KB

1. Install guillotina

mkdir tutorial-gmi
cd tutorial-gmi
python3.8 -m venv genv
source ./genv/bin/activate
pip install guillotina
pip install cookiecutter

Up database

  • Run postgres
docker run -d \
    -e POSTGRES_DB=guillotina \
    -e POSTGRES_USER=guillotina \
    -e POSTGRES_PASSWORD=guillotina \
    -p 127.0.0.1:5444:5432 \
    --name postgres_gmi \
    postgres:13.4

Create and run guillotina application

  • Create guillotina application called guillotina_demo
guillotina create --template=application
full_name []: Guillotina demo
email []: [email protected]
package_name [guillotina_myproject]: guillotina_demo
project_short_description [Guillotina server application python project]:
Select open_source_license:
1 - MIT license
2 - BSD license
3 - ISC license
4 - Apache Software License 2.0
5 - GNU General Public License v3
6 - Not open source
Choose from 1, 2, 3, 4, 5, 6 [1]:

Then install guillotina_demo

pip install -e guillotina_demo
  • Modify config file guillotina

    Open your editor and modify config.yaml

-dsn: postgresql://postgres@localhost:5432/guillotina
+dsn: postgresql://guillotina:guillotina@localhost:5444/guillotina
allow_origin:
 - http://localhost:8080
+ - http://localhost:3000
 - "chrome-extension://*"
  • Run guillotina server
guillotina serve -c guillotina_demo/config.yaml

The server should now be running on http://0.0.0.0:8080

Previous step

Next step