ericof / portal-uft

Portal do treinamento UFT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Portal UFT

Built with Cookiecutter Plone Starter Black code style Backend Tests Frontend Tests

Portal da UFT utilizando Plone 6.

Quick start

Development Setup

  • Python 3.9
  • Node 16
  • yarn
  • Docker

Install

git clone git@github.com:ericof/portal-uft.git
cd portal-uft
make install

Start

Start the Backend (http://localhost:8080/)

make start-backend

Start the Frontend (http://localhost:3000/)

make start-frontend

Structure

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 dlr.internet
  • frontend: React (Volto) package named dlr-internet

Reasoning

  • Repo contains all codebase needed to run the site (excluding existing addons for Plone and React).
  • Github Workflows are triggered based on changes on each codebase (see .github/workflows)
  • Easier to create Docker images for each codebase
  • Showcase Plone installation/setup without buildout

Linters and Formatting

There are some hooks to run lint checks on the code. If you want to automatically format them, you can run

make format

in the root folder or especifically in each backend or frontend folders.

Linters commands are available in each backend and frontend folder.

Acceptance tests

There are Makefile commands in place:

build-test-acceptance-server: Build Acceptance Backend Server Docker image that it's being used afterwards. Must be run before running the tests, if the backend code has changed.

start-test-acceptance-server: Start server fixture in docker (previous build required)

start-test-acceptance-frontend: Start the Core Acceptance Frontend Fixture in dev mode

test-acceptance: Start Core Cypress Acceptance Tests in dev mode

Credits

This was generated by cookiecutter-plone-starter on 2022-06-22 17:11:05

About

Portal do treinamento UFT


Languages

Language:JavaScript 41.6%Language:Python 40.5%Language:Makefile 15.3%Language:Dockerfile 1.2%Language:Shell 1.0%Language:Less 0.4%