Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Jun 7, 2024
1 parent 641a787 commit bb03b5d
Showing 1 changed file with 22 additions and 26 deletions.
48 changes: 22 additions & 26 deletions backend/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
# Contribution

## Dependencies
```bash
# Install all the dependencies.
pipenv sync
# Update dependencies.
pipenv install
```
# backend

## Development
Leverages great things to achieve great results

If you want to link to Postgresql, create the `.env` file and set the `POSTGRES_URI` environment variable in it, example:
[![CodeFactor](https://www.codefactor.io/repository/github/openzim/nautilus-webui/badge)](https://www.codefactor.io/repository/github/openzim/nautilus-webui)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![codecov](https://codecov.io/gh/openzim/nautilus-webui/branch/main/graph/badge.svg)](https://codecov.io/gh/openzim/nautilus-webui)
![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fgithub.com%2Fopenzim%2Fnautilus-webui%2Fraw%2Fmain%2Fbackend%2Fpyproject.toml)

```env
POSTGRES_URI=postgresql+psycopg://username:password@host/database
```

Dev commands:
```bash
# Init database
pipenv run init
# Start FastAPI
pipenv run start
# Run tests
pipenv run tests
# Format code
pipenv run format
# Check format.
pipenv run format:check
## Usage

**CAUTION**: this is not a standalone, installable Python package.

- It's the backend of a web service that is intended to be deployed using OCI images.
- See the sample Composefile in the dev folder of the repository.
- It has external dependencies (including [S3 Storage](https://wasabi.com/), [Mailgun](https://www.mailgun.com/) account and a full-fledged [Zimfarm](https://github.com/openzim/zimfarm).
- It **must be configured** via environment variables (see `constants.py` and Compose's Envfile)
- There is no CHANGELOG nor release management. Production is tied to CD on `main` branch.

```sh
❯ hatch run serve
```

nautilus-webui backend adheres to openZIM's [Contribution Guidelines](https://github.com/openzim/overview/wiki/Contributing).

nautilus-webui backend has implemented openZIM's [Python bootstrap, conventions and policies](https://github.com/openzim/_python-bootstrap/docs/Policy.md) **v1.0.1**.

0 comments on commit bb03b5d

Please sign in to comment.