From a7f17f5c032d62905de9f64e451391897b620bf3 Mon Sep 17 00:00:00 2001 From: "Leonardo J. Caballero G" Date: Fri, 26 May 2023 09:32:52 -0400 Subject: [PATCH] Updated the documentation files and source code --- CHANGELOG.md | 2 +- README.rst | 53 +++++++++++++++++-- backend/src/slc_sitioweb/CHANGES.md | 2 +- .../src/slc_sitioweb/configure.zcml | 2 + 4 files changed, 53 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 881482e..a8428c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ # 2023-05-11 -- Initial version [ScrumLATAMComunidad] +- Initial version [macagua] diff --git a/README.rst b/README.rst index 5e55fc5..097189c 100644 --- a/README.rst +++ b/README.rst @@ -8,6 +8,7 @@ The `Scrum Latam Comunidad `_ Website repo A new SCRUM LATAM Comunidad Website using Plone 6 and Volto technologies. + Quick start ----------- @@ -19,20 +20,62 @@ Development Setup - yarn - Docker + Install ~~~~~~~ +Install the requirements dependencies: + +.. code:: shell + + sudo apt install build-essential python3-dev python3-venv git tree curl + + +Install `Node Version Manager - NVM `_: + +.. code:: shell + + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash + export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" \ + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + source ~/.bashrc + exit + + +Install Node 16 Version: + +.. code:: shell + + nvm install 16 + nvm use 16 + + +Install `yarn `_ tool: + .. code:: shell - git clone git@github.com:ScrumLATAMComunidad/slc-sitioweb.git - cd slc-sitioweb - sudo apt install make python3-venv npm install --global yarn + + +Clone and install the git repository: + +.. code:: shell + + git clone git@github.com:ScrumLATAMComunidad/slc-sitioweb.git slc-sitioweb && cd $_ + + +Install the dev stack: + +.. code:: shell + make install + Start ~~~~~ +Open two consoles to run each of the following commands in each of them: + Start the Backend (http://localhost:8080/) .. code:: shell @@ -63,6 +106,8 @@ This monorepo is composed by two distinct codebases: api and frontend. - **backend**: API (Backend) Plone installation using ``pip`` (not *buildout*). Includes a policy package named ``slc_sitioweb``. More details information at `backend/src/slc_sitioweb/README.md `_ file. +- **devops**: Devops Deployments scripts por this monorepo. More details + information at `devops/README.md `_ file. - **frontend**: React (Volto) package named frontend. More details information at `frontend/README.md `_ file. @@ -84,7 +129,7 @@ automatically format them, you can run ``make format`` -in the root folder or especifically in each backend or frontend folders. +in the root folder or specifically in each backend or frontend folders. Linters commands are available in each backend and frontend folder. diff --git a/backend/src/slc_sitioweb/CHANGES.md b/backend/src/slc_sitioweb/CHANGES.md index 9df546f..5ddbe02 100644 --- a/backend/src/slc_sitioweb/CHANGES.md +++ b/backend/src/slc_sitioweb/CHANGES.md @@ -1,7 +1,7 @@ # Changelog -## 1.0a1 (unreleased) +## 1.0.0a1 (unreleased) - Added the authomatic support via pas.plugins.authomatic addon for backend and volto-authomatic addon for frontend [macagua] diff --git a/backend/src/slc_sitioweb/src/slc_sitioweb/configure.zcml b/backend/src/slc_sitioweb/src/slc_sitioweb/configure.zcml index d6f7501..87caa7c 100644 --- a/backend/src/slc_sitioweb/src/slc_sitioweb/configure.zcml +++ b/backend/src/slc_sitioweb/src/slc_sitioweb/configure.zcml @@ -20,6 +20,8 @@ + +