Skip to content

octopuce/cafebabel.com

 
 

Repository files navigation

Cafebabel

Installation

Requirements

  • Python 3.6+
  • MongoDB 3.4+

Preparing the project

python3 -m venv ./venv
source ./venv/bin/activate

Installing the dependencies

pip install -e .

Installing the database

Install and launch MongoDB on default port (27017) or tune it in your settings.local.py (see Configuring section).

flask initdb

You may reset your database by deleting the /cafebabel.db file and re-initializing the database.

Configuring

If existing, the file settings.local.py at the root of the project will override the default settings.py configuration.

Running the project

export FLASK_APP=cafebabel
export FLASK_DEBUG=1
flask run

Running a dummy mail server

sudo python -m smtpd -n -c DebuggingServer localhost:25

Production installation

In order to deploy to the staging server, you should have an SSH access to the server.

Your server must have python3.6 installed.

Installation can be processed with make install. Deploying will run through make deploy.

Documentation

Architecture Decision Records

Please document important architecture decisions, you can use adr-tools for this.

Existing ones are located in docs/architecture/decisions.

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.4%
  • HTML 28.9%
  • JavaScript 4.0%
  • Makefile 2.3%
  • CSS 0.4%