Skip to content

Commit

Permalink
[Test] - All test passed (#9)
Browse files Browse the repository at this point in the history
Con este set de cambios se logra lo siguiente:

- Funcionalidad del curso avanzada (WIP).
- Mas de 80% de cobertura de pruebas unitarias.
- MyPy passed
- PyLint passed
- Flake8 passed
- Bandit passed
- OCI image build

=========================================================================

* refactor

Signed-off-by: William Moreno <[email protected]>

* fix: Corrige lista de cursos del instructor

Fixes: #7

Signed-off-by: William Moreno <[email protected]>

* Agrega codigo para agregar seccion a un curso.

Signed-off-by: William Moreno <[email protected]>

* Utiliza codigos uuid para secciones y recursos

Signed-off-by: William Moreno <[email protected]>

* fix: Corrige error al crear la DB en potgres

Signed-off-by: William Moreno <[email protected]>

* style: Corrige errores reportados por pylint.

pylint now_lms
************* Module now_lms
now_lms/__init__.py:795:8: W0622: Redefining built-in 'id' (redefined-builtin)
now_lms/__init__.py:796:8: W0621: Redefining name 'nuevo_seccion' from outer scope (line 790) (redefined-outer-name)
now_lms/__init__.py:822:8: W0622: Redefining built-in 'id' (redefined-builtin)
now_lms/__init__.py:823:8: W0621: Redefining name 'nuevo_recurso' from outer scope (line 817) (redefined-outer-name)
now_lms/__init__.py:817:31: W0613: Unused argument 'seccion' (unused-argument)

-----------------------------------
Your code has been rated at 9.89/10

Signed-off-by: William Moreno <[email protected]>

* refactor: Reduce cantidad de markup repetido

Signed-off-by: William Moreno <[email protected]>

* build: Actualiza Bootstrap Icons

Signed-off-by: William Moreno <[email protected]>

* feat: Acordeon para mostrar contenido del curso

Signed-off-by: William Moreno <[email protected]>

* refactor: Pagina tipo de recurso

Signed-off-by: William Moreno <[email protected]>

* fix: Not require POST

Signed-off-by: William Moreno <[email protected]>

* refactor

Signed-off-by: William Moreno <[email protected]>

* Agrega indice

Signed-off-by: William Moreno <[email protected]>

* Agrega info a usuarios predterminados

Signed-off-by: William Moreno <[email protected]>

* Feat: Agrego macro para notificaciones

Signed-off-by: William Moreno <[email protected]>

* fix: Notify

Signed-off-by: William Moreno <[email protected]>

* setup tet

Signed-off-by: William Moreno <[email protected]>

* test unitarios

Signed-off-by: William Moreno <[email protected]>

* pruebas unitarias

Signed-off-by: William Moreno <[email protected]>

* test

Signed-off-by: William Moreno <[email protected]>

* build: Deploy to DO

Signed-off-by: William Moreno <[email protected]>

* build: Deploy to Heroku

Signed-off-by: William Moreno <[email protected]>

* build: Deploy to DO

Signed-off-by: William Moreno <[email protected]>

* build: Deploy to Heroku

Signed-off-by: William Moreno <[email protected]>

* fix: Heroku postgresql requieres ssl

Signed-off-by: William Moreno <[email protected]>

* fix: Heroku postgresql requieres ssl

Signed-off-by: William Moreno <[email protected]>

* fix: Heroku postgresql requieres ssl

Signed-off-by: William Moreno <[email protected]>

* build: Heroku likes psycopg

Signed-off-by: William Moreno <[email protected]>

* Update README.md

* build: Minimal nginx configuration

Signed-off-by: William Moreno <[email protected]>

* Update readme

Signed-off-by: William Moreno <[email protected]>

* fix: Corrige permisos instructor

Signed-off-by: William Moreno Reyes <[email protected]>

* fix: Corrige lista de cursos del instructor

Fixes: #7

Signed-off-by: William Moreno <[email protected]>

* test: Agrega pruebas

Signed-off-by: William Moreno Reyes <[email protected]>

* Agrega metodo para eliminar curso.

Signed-off-by: William Moreno <[email protected]>

* fixup

Signed-off-by: William Moreno <[email protected]>

* build: Actualiza configuración de gitpod

Signed-off-by: William Moreno <[email protected]>

* style: Correcciones de estilo

Signed-off-by: William Moreno <[email protected]>

* fix: Typo

Signed-off-by: William Moreno <[email protected]>

* refactor: Ejecuta un query menos

Signed-off-by: William Moreno <[email protected]>

* WIP

Signed-off-by: William Moreno <[email protected]>

* style: pass mypy

Signed-off-by: William Moreno <[email protected]>

* style: Sonarcube

Signed-off-by: William Moreno <[email protected]>

* feat: Corrige direcciones de base de datos

Signed-off-by: William Moreno <[email protected]>

* Update README.md

* build: Minimal nginx configuration

Signed-off-by: William Moreno <[email protected]>

* Update readme

Signed-off-by: William Moreno <[email protected]>

* fix: Corrige permisos instructor

Signed-off-by: William Moreno Reyes <[email protected]>

* fix: Corrige lista de cursos del instructor

Fixes: #7

Signed-off-by: William Moreno <[email protected]>

* test: Agrega pruebas

Signed-off-by: William Moreno Reyes <[email protected]>

* Agrega metodo para eliminar curso.

Signed-off-by: William Moreno <[email protected]>

* fixup

Signed-off-by: William Moreno <[email protected]>

* build: Actualiza configuración de gitpod

Signed-off-by: William Moreno <[email protected]>

* style: Correcciones de estilo

Signed-off-by: William Moreno <[email protected]>

* fix: Typo

Signed-off-by: William Moreno <[email protected]>

* refactor: Ejecuta un query menos

Signed-off-by: William Moreno <[email protected]>

* WIP

Signed-off-by: William Moreno <[email protected]>

* style: pass mypy

Signed-off-by: William Moreno <[email protected]>

* build: Heroku likes psycopg

Signed-off-by: William Moreno <[email protected]>

* build: PG8000 por defecto

Signed-off-by: William Moreno <[email protected]>

* build: Test python3.11

Signed-off-by: William Moreno <[email protected]>

* Revert "build: Test python3.11"

This reverts commit b804e0d.

* Update README.md

* test: agrega test

Signed-off-by: William Moreno Reyes <[email protected]>

* test: agrega test

Signed-off-by: William Moreno Reyes <[email protected]>

* test: agrega test

Signed-off-by: William Moreno Reyes <[email protected]>

* test: Mejora covertura

Signed-off-by: William Moreno <[email protected]>

* style: Correciones de estilo

Signed-off-by: William Moreno <[email protected]>

* test: Mejor covertura

Signed-off-by: William Moreno <[email protected]>

* test: Mejor covertura

Signed-off-by: William Moreno <[email protected]>

* test: mejor cobertura

Signed-off-by: William Moreno <[email protected]>

* Update README.md

* Update README.md

* Update README.md

* test: Crear usuario

Signed-off-by: William Moreno <[email protected]>

* test: Fix  test

Signed-off-by: William Moreno <[email protected]>

* test: Fix  test

Signed-off-by: William Moreno <[email protected]>

* test: Agrega mas test unitarios

Signed-off-by: William Moreno <[email protected]>

* feat: Crear curso demo

Signed-off-by: William Moreno <[email protected]>

* test: Update test

Signed-off-by: William Moreno <[email protected]>

* feat: Arregla relaciones entre tablas

Signed-off-by: William Moreno <[email protected]>

* test: Agrega test unitarios

Signed-off-by: William Moreno <[email protected]>

* Update README.md

* test: Agrega pruebas unitarias

Signed-off-by: William Moreno <[email protected]>

* fix: Eliminar seccion

Signed-off-by: William Moreno <[email protected]>

* test: Agrega pruebas unitarias

Signed-off-by: William Moreno <[email protected]>

* feat: Seccion publica

Signed-off-by: William Moreno <[email protected]>

* test: Actualiza test

Signed-off-by: William Moreno <[email protected]>

* test: Actualiza test

Signed-off-by: William Moreno <[email protected]>

* style: CSS fixes

Signed-off-by: William Moreno <[email protected]>

* style: Fixes

Signed-off-by: William Moreno <[email protected]>

* style: CCS fixes

Signed-off-by: William Moreno <[email protected]>

* fix: Log message

Signed-off-by: William Moreno <[email protected]>

* feat: Asigna indice a nueva seccion

Signed-off-by: William Moreno <[email protected]>

* feat: Agrega metodos para modificar indice seccion

Signed-off-by: William Moreno <[email protected]>

* style: Fixes

Signed-off-by: William Moreno <[email protected]>

* WIP

Signed-off-by: William Moreno <[email protected]>

* WIP

Signed-off-by: William Moreno <[email protected]>

* WIP

Signed-off-by: William Moreno <[email protected]>

* test: Update test

Signed-off-by: William Moreno <[email protected]>

* test: Update test

Signed-off-by: William Moreno <[email protected]>

* Revert "test: Update test"

This reverts commit 8ed7065.

* fix: Reorganiza indice de seccion

Signed-off-by: William Moreno Reyes <[email protected]>

* fix: Reordenar indice

Signed-off-by: William Moreno Reyes <[email protected]>

* fix: Pagina inicio

Signed-off-by: William Moreno Reyes <[email protected]>

* fix: Reorganizar indice

Signed-off-by: William Moreno Reyes <[email protected]>

* Fix typo

Signed-off-by: William Moreno Reyes <[email protected]>

* feat: Agrega recurso en youtube

Signed-off-by: William Moreno <[email protected]>

* update

Signed-off-by: William Moreno Reyes <[email protected]>

* WIP

Signed-off-by: William Moreno Reyes <[email protected]>

* WIP

Signed-off-by: William Moreno Reyes <[email protected]>

* WIP

Signed-off-by: William Moreno Reyes <[email protected]>

* WIP

Signed-off-by: William Moreno Reyes <[email protected]>

* refactor: Reorganice project

Signed-off-by: William Moreno <[email protected]>

* build: Development server

Signed-off-by: William Moreno Reyes <[email protected]>

* WIP

Signed-off-by: William Moreno Reyes <[email protected]>

* WIP

Signed-off-by: William Moreno Reyes <[email protected]>

* Fix node_modules

Signed-off-by: William Moremo <[email protected]>

* Actualiza mensajes del log

Signed-off-by: William José Moreno Reyes <[email protected]>

* Python 3.11

* Python 3.11

Signed-off-by: William José Moreno Reyes <[email protected]>

* Clean pylint conf

References:
 - pylint-dev/pylint#4942

Signed-off-by: William José Moreno Reyes <[email protected]>

* Corrige mensaje de error

References:

 - https://github.com/bmosoluciones/now-lms/actions/runs/3652369567

 now_lms/__init__.py:358:53: E712 comparison to True should be 'if cond is True:' or 'if cond:'

Se sigue la sintaxis aceptada por Flask-SqlAlchemy

Signed-off-by: William José Moreno Reyes <[email protected]>

* Fix test

Signed-off-by: William José Moreno Reyes <[email protected]>

* Disable pylint

Signed-off-by: William José Moreno Reyes <[email protected]>

* Disable pylint

Signed-off-by: William José Moreno Reyes <[email protected]>

* lint

Signed-off-by: William José Moreno Reyes <[email protected]>

* Support Python 3.9 and above

References:
 - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/installing_and_using_dynamic_programming_languages/assembly_installing-and-using-python_installing-and-using-dynamic-programming-languages

Signed-off-by: William José Moreno Reyes <[email protected]>

* UBI 9

Signed-off-by: William José Moreno Reyes <[email protected]>

* UBI 9

Signed-off-by: William José Moreno Reyes <[email protected]>

* UBI 9

Signed-off-by: William José Moreno Reyes <[email protected]>

* UBI 9

Signed-off-by: William José Moreno Reyes <[email protected]>

* Docker

Signed-off-by: William José Moreno Reyes <[email protected]>

* Docker

Signed-off-by: William José Moreno Reyes <[email protected]>

* Docker

Signed-off-by: William José Moreno Reyes <[email protected]>

* Docker

Signed-off-by: William José Moreno Reyes <[email protected]>

* Docker

Signed-off-by: William José Moreno Reyes <[email protected]>

* Docker

Signed-off-by: William José Moreno Reyes <[email protected]>

* Update README file

Signed-off-by: William José Moreno Reyes <[email protected]>

* Update Docker file

Signed-off-by: William José Moreno Reyes <[email protected]>

* Enable type chequing

Signed-off-by: William José Moreno Reyes <[email protected]>

* All test passed

Signed-off-by: William José Moreno Reyes <[email protected]>

* Fix mypy not interactive

Signed-off-by: William José Moreno Reyes <[email protected]>

* Fix bandit

Signed-off-by: William José Moreno Reyes <[email protected]>

* Ignore bandit errors

Signed-off-by: William José Moreno Reyes <[email protected]>

* Check python 3.7

Signed-off-by: William José Moreno Reyes <[email protected]>

Signed-off-by: William Moreno <[email protected]>
Signed-off-by: William Moreno Reyes <[email protected]>
Signed-off-by: William Moreno Reyes <[email protected]>
Signed-off-by: William Moremo <[email protected]>
Signed-off-by: William José Moreno Reyes <[email protected]>
Co-authored-by: William Moremo <[email protected]>
  • Loading branch information
williamjmorenor and William Moremo authored Dec 9, 2022
1 parent b1b1f70 commit d66ec33
Show file tree
Hide file tree
Showing 51 changed files with 2,166 additions and 813 deletions.
3 changes: 0 additions & 3 deletions .do/deploy.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@ spec:
- key: LMS_PSWD
value: "admin123+"
type: SECRET
- key: DATABASE_URL
scope: RUN_TIME
value: ${example-db.DATABASE_URL}
databases:
- name: example-db
5 changes: 2 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
.idea
.do


# Documentacion
mkdocs.yml
docs
Expand All @@ -30,5 +29,5 @@ requirements-databases.txt
.mypy.ini
.gitpod.yml
.gitpod.sh

app.json
app.json
sonar-project.properties
17 changes: 13 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand All @@ -27,17 +27,26 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install bandit flake8 pytest
python -m pip install -r development.txt
- name: Lint project
run: |
rm -rf build
flake8 now_lms
flake8 --ignore=E712 now_lms
python -m build
python -m twine check dist/*
pylint now_lms
python -m bandit -r now_lms
python -m flake8 now_lms
python -m pylint now_lms
- name: Test with pytest
run: |
pytest -v --exitfirst --cov=now_lms
- name: Check python types
run: |
python -m pip install mypy
python -m mypy --install-types --non-interactive now_lms
- name: OCI Image
run: |
docker buildx build .
- name: Codecov
uses: codecov/codecov-action@v1
6 changes: 4 additions & 2 deletions .gitpod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ sudo apt install -y sqlite
git config pull.rebase true
python -m pip install --upgrade pip
python -m pip install --upgrade pip
python -m pip install -r development.txt
python -m pip install --upgrade -r development.txt
python -m pip install -e .
python setup.py develop
mypy now_lms --install-types --non-interactive
python -m pip install hupper
/home/gitpod/.pyenv/versions/3.8.12/bin/hupper -m waitress --port=8080 now_lms:app
python -m flask setup
/home/gitpod/.pyenv/versions/3.8.12/bin/hupper -m waitress --port=8080 now_lms:app
git push heroku mastergit remote add heroku https://git.heroku.com/app.git
73 changes: 1 addition & 72 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -74,85 +74,14 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=print-statement,
parameter-unpacking,
unpacking-in-except,
old-raise-syntax,
backtick,
long-suffix,
old-ne-operator,
old-octal-literal,
import-star-module-level,
non-ascii-bytes-literal,
raw-checker-failed,
disable=raw-checker-failed,
bad-inline-option,
locally-disabled,
file-ignored,
suppressed-message,
useless-suppression,
deprecated-pragma,
use-symbolic-message-instead,
apply-builtin,
basestring-builtin,
buffer-builtin,
cmp-builtin,
coerce-builtin,
execfile-builtin,
file-builtin,
long-builtin,
raw_input-builtin,
reduce-builtin,
standarderror-builtin,
unicode-builtin,
xrange-builtin,
coerce-method,
delslice-method,
getslice-method,
setslice-method,
no-absolute-import,
old-division,
dict-iter-method,
dict-view-method,
next-method-called,
metaclass-assignment,
indexing-exception,
raising-string,
reload-builtin,
oct-method,
hex-method,
nonzero-method,
cmp-method,
input-builtin,
round-builtin,
intern-builtin,
unichr-builtin,
map-builtin-not-iterating,
zip-builtin-not-iterating,
range-builtin-not-iterating,
filter-builtin-not-iterating,
using-cmp-argument,
eq-without-hash,
div-method,
idiv-method,
rdiv-method,
exception-message-attribute,
invalid-str-codec,
sys-max-int,
bad-python3-import,
deprecated-string-function,
deprecated-str-translate-call,
deprecated-itertools-function,
deprecated-types-field,
next-method-defined,
dict-items-not-iterating,
dict-keys-not-iterating,
dict-values-not-iterating,
deprecated-operator-function,
deprecated-urllib-function,
xreadlines-attribute,
deprecated-sys-function,
exception-escape,
comprehension-escape,
# Por la naturaleza del proyecto no todos los import estan al inicio para evitar
# importaciones circulares
import-outside-toplevel,
Expand Down
Binary file added .yarn/install-state.gz
Binary file not shown.
2 changes: 0 additions & 2 deletions .yarnrc

This file was deleted.

15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
FROM registry.access.redhat.com/ubi8/ubi-minimal AS js
RUN rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg \
&& curl -sL https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo \
&& microdnf -y install yarn
COPY package.json .
COPY yarn.lock .
RUN yarn
FROM registry.access.redhat.com/ubi9/ubi-minimal AS js
RUN microdnf install -y nodejs npm
COPY ./now_lms/static/package.json package.json
RUN npm install

FROM registry.access.redhat.com/ubi8/ubi-minimal
FROM registry.access.redhat.com/ubi9/ubi-minimal

ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED = 1
ENV FLASK_ENV "production"

RUN microdnf install -y --nodocs --best --refresh python39 python39-pip python39-cryptography \
RUN microdnf install -y --nodocs --best --refresh python39 python3-pip python3-cryptography \
&& microdnf clean all

# Install dependencies in a layer
Expand Down
60 changes: 53 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
![PyPI - License](https://img.shields.io/pypi/l/now_lms?color=brightgreen&logo=apache&logoColor=white)
![PyPI](https://img.shields.io/pypi/v/now_lms?color=brightgreen&label=version&logo=python&logoColor=white)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/now_lms?logo=python&logoColor=white)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellow)](https://github.com/PyCQA/pylint)
[![codecov](https://codecov.io/gh/bmosoluciones/now-lms/branch/main/graph/badge.svg?token=SFVXF6Y3R3)](https://codecov.io/gh/bmosoluciones/now-lms)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=bmosoluciones_now-lms&metric=alert_status)](https://sonarcloud.io/dashboard?id=bmosoluciones_now-lms)
[![Join the chat at https://gitter.im/now-lms/community](https://badges.gitter.im/now-lms/community.svg)](https://gitter.im/now-lms/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Simple to {install, use, configure, mantain} learning management system.

Expand All @@ -30,32 +33,37 @@ python -m pip install now_lms
python -m now_lms
```

Visit http://127.0.0.1:8080/ in your browser, defaul user and password are `lms-admin`, note that the default server is olny bind to the localhost.
Visit http://127.0.0.1:8080/ in your browser, defaul user and password are `lms-admin`, note that the default server is only bind to the localhost.

### Other deployment options

There are available templates to deploy Now - LMS to these services:

[![Deploy to DO](https://img.shields.io/badge/DO-Deploy%20to%20DO-blue "Deploy as Digital Ocean App")](https://cloud.digitalocean.com/apps/new?repo=https://github.com/bmosoluciones/now-lms/tree/main)
[![Deploy to Heroku](https://img.shields.io/badge/Heroku-Deploy%20to%20Heroku-blueviolet "Deploy to Heroku")](https://heroku.com/deploy?template=https://github.com/bmosoluciones/now-lms/tree/main)
[![Deploy to Heroku](https://img.shields.io/badge/Heroku-Deploy%20to%20Heroku-blueviolet "Deploy to Heroku")](https://heroku.com/deploy?template=https://github.com/bmosoluciones/now-lms/tree/heroku)


### OCI Image
[![Docker Repository on Quay](https://quay.io/repository/bmosoluciones/now-lms/status "Docker Repository on Quay")](https://quay.io/repository/bmosoluciones/now-lms) [![Join the chat at https://gitter.im/now-lms/community](https://badges.gitter.im/now-lms/community.svg)](https://gitter.im/now-lms/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Docker Repository on Quay](https://quay.io/repository/bmosoluciones/now_lms/status "Docker Repository on Quay")](https://quay.io/repository/bmosoluciones/now_lms)

There is also a OCI image disponible if you prefer to user containers, in this example we use [podman](https://podman.io/):

```
# <---------------------------------------------> #
# Install the podman command line tool.
# Fedora, CentOS ...
# DNF family (CentOS, Rocky, Alma):
sudo dnf -y install podman
# Debian, Ubuntu ...
# APT family (Debian, Ubuntu):
sudo apt install -y podman
# OpenSUSE
# OpenSUSE:
sudo zypper in podman
# <---------------------------------------------> #
# Run the software.
# Create a new pod:
podman pod create --name now-lms -p 80:80 -p 443:443
Expand All @@ -77,4 +85,42 @@ podman run --pod now-lms --name now-lms-server --rm -v $PWD/nginx.conf:/etc/ngin
```

NOW-LMS also will work with MySQL or MariaDB just change the image of the database container and set the correct connect string.
NOW-LMS also will work with MySQL or MariaDB just change the image of the database container and set the correct connect string. SQLite also will work if you will serve a few users.

## Contributing

### Getting the source code

```
git clone https://github.com/bmosoluciones/now-lms.git
```
### Create a python virtual env

```
python3 -m venv venv
# Linux:
source venv/bin/activate
# Windows
venv\Scripts\activate.bat
```
### Install python deps

```
python3 - m pip install -r development.txt
```

### Install Boostrap

```
cd now_lms/static/
npm install
```

### Start a development server

```
hupper -m waitress --port=8080 now_lms:app
```
Please note that we use waitress as WSGI server because gunicorn do not work on Windows, hupper will live reload the WSGI server as you save changes in the source code so you will be able to work with your changes as you work, please note that changes to the jinja templates will not trigger the server reload, only changes to python files.

Default user and password are ```lms-admin```, default url to work with th server will be ```http://127.0.0.1:8080/```.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"logo": "https://github.com/bmosoluciones/now-lms/raw/main/now_lms/static/icons/logo/logo_small.png",
"keywords": ["lms", "python"],
"scripts": {
"postdeploy": "python -m flask setup"
"postdeploy": "python -m pip install psycopg2-binary && python -m flask setup"
},
"env": {
"LMS_KEY": {
Expand Down
7 changes: 7 additions & 0 deletions development.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Base
-r requirements.txt

# Servidor de desarrollo
hupper

# Crear tarball y wheel
build
twine
Expand All @@ -25,3 +28,7 @@ mkdocs-material

# Verificación de tipos
mypy

#Live realoader
hupper
# hupper -m now_lms
Loading

0 comments on commit d66ec33

Please sign in to comment.