Go to file
Colin Goutte a64ab9189e Add pdbpp for dev 2023-08-25 15:12:38 +02:00
docs Fix generating documentation 2023-08-23 17:32:09 +02:00
.gitignore RED: Fix import, still need to create proper database strcuture 2023-08-25 12:03:32 +02:00
Makefile Add directiv in normal makefile for venv 2023-08-25 15:12:00 +02:00
MakefileVenv Add readme 2023-08-23 17:06:10 +02:00
Pipfile Add pdbpp for dev 2023-08-25 15:12:38 +02:00
README.rst Add tooling and doc for our first usecase 2023-08-25 11:11:29 +02:00
crud.py GREEN: But this is really coding *against* the framework 2023-08-25 15:11:32 +02:00
database.py RED: Fix import database module 2023-08-25 11:57:49 +02:00
dev.py GREEN: But this is really coding *against* the framework 2023-08-25 15:11:32 +02:00
functionnal_test.py Refactor: only one instantiation of webdriver 2023-08-25 10:50:37 +02:00
gitaliases.gitconfig Add tooling and doc for our first usecase 2023-08-25 11:11:29 +02:00
models.py RED: we still need to created the view 2023-08-25 12:10:37 +02:00
movie_service.py simple create and update implementation 2023-08-23 15:04:33 +02:00
requirements.txt Add directiv in normal makefile for venv 2023-08-25 15:12:00 +02:00
requirements_dev.txt Add directiv in normal makefile for venv 2023-08-25 15:12:00 +02:00
test_guidelines.py Add test for readme file 2023-08-23 16:24:29 +02:00
test_overview.py Prepare testing for overview section 2023-08-23 15:13:58 +02:00
test_sql_database.py Add directiv in normal makefile for venv 2023-08-25 15:12:00 +02:00

README.rst

###################################
Documentation the movie API project
###################################

********
Context
********

We want to code a sample api to so show workskills

========
Stack
========

# Fraweworks
I choose to use `FastAPI <https://fastapi.tiangolo.com/>`

Environement / Install
----------------------

We assume make is installed


if pipenv is installed:

.. code-block:: shell

      make clean install run_dev



if pipenv is *not* installed

.. code-block:: shell

    make -f MakefileVenv clean install run_dev



I suggest you have pipenv installed, this projet is writtent under python 3.12 and may work on other versiona
We have a requirement of being virtualenv compatible while i will  working with Pipenv.


Testing
-------

Unitest should run flawlessly using make test, however functionnal testing may require some extra work.

Functional testing requires *geckodriver* and *selenium* which is a driver to programatically control firefox (so one ca reproduce user behavior)

.. code-block:: shell

   #debian
   sudo apt-get install firefox-geckodriver

   # arch
   sudo pacman -S geckodriver



Toolings
--------

Few useful git aliases may be found in `gitalias.gitconfig` to use them add the include directive to your .git/config file

.. code-block::

    [include]
        path = ../gitaliases.gitconfig

    [core]
            repositoryformatversion = 0
            filemode = true
            bare = false
            logallrefupdates = true
    <snip>