|
1 | 1 |     |
2 | | -## API Docs: |
| 2 | +# PyMatcha |
| 3 | +#### Made by [Jules Lasne](https://github.com/seluj78) and [Lauris Skrauci](https://github.com/suppalarry) |
3 | 4 |
|
| 5 | +## Summary |
| 6 | + - [Why ?](#why) |
| 7 | + - [Installation](#installation) |
| 8 | + - [For Production](#for-production) |
| 9 | + - [For developpment](#for-developpment) |
| 10 | + - [Backend](#backend) |
| 11 | + - [Workers](#workers) |
| 12 | + - [Frontend](#frontend) |
| 13 | + - [Services in docker-compose](#the-different-services-on-the-docker-compose) |
| 14 | + - [What does it look like](#what-does-it-look-like) |
| 15 | + - [How long did it take](#how-long-did-it-take) |
| 16 | + - [How many lines of code](#how-many-lines-of-code) |
| 17 | + - [What are the features](#features-implemented) |
| 18 | + - [What are the bonuses](#bonuses-implemented) |
| 19 | + |
| 20 | +### Why ? |
| 21 | +Matcha is a [42](https://42.fr) school project aiming to teach how to make a dating website. Lauris and Jules chose to make it as close as it could be to a real production product. |
| 22 | +You can find the subject [here](https://github.com/Seluj78/PyMatcha/blob/dev/subject.pdf) |
| 23 | + |
| 24 | +### Installation |
| 25 | +#### For production |
| 26 | +You can simply download or git clone the project and, once inside of it, run `docker-compose up --build`. |
| 27 | +The website will be accessible on port `4242`. |
| 28 | +#### For developpment |
| 29 | +First of all, clone or download the repository, extract it if necessary then cd into it. |
| 30 | + |
| 31 | +##### Backend: |
| 32 | +You'll need `python3.8`+. cd in the backend and run: |
| 33 | +```shell |
| 34 | +python3.8 -m venv venv --prompt PyMatcha |
| 35 | +``` |
| 36 | +```shell |
| 37 | +source venv/bin/activate |
4 | 38 | ``` |
5 | | -docker run -p 80:8080 -e SWAGGER_JSON=/foo/swagger.yaml -v app:/foo swaggerapi/swagger-ui |
| 39 | +```shell |
| 40 | +pip install backend/requirements.txt |
6 | 41 | ``` |
| 42 | +```shell |
| 43 | +python run.py |
| 44 | +``` |
| 45 | + |
| 46 | +##### Workers: |
| 47 | +Same thing as for the backend, just then `cd` in the backend folder and run |
| 48 | +```shell |
| 49 | +celery -A PyMatcha.celery worker -E --loglevel=INFO -B --pool=threads |
| 50 | +``` |
| 51 | + |
| 52 | +##### Frontend: |
| 53 | +`cd` in the frontend folder and run `yarn install` then `yarn run` |
| 54 | + |
| 55 | +### The different services on the docker-compose: |
| 56 | + |
| 57 | +### What does it look like |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +### How long did it take |
| 70 | +Lauris and Jules started working on it at the begining of september and finished on `XXX`. |
| 71 | +If you see commits before September, it's of an older version where Jules changed twice of frontend partner |
| 72 | +Here is a nice visual representation of the commits: |
| 73 | + |
| 74 | +gource |
| 75 | + |
| 76 | +### How many lines of code |
| 77 | +cloc |
| 78 | + |
| 79 | +### Features implemented |
| 80 | + - Feature list |
| 81 | + |
| 82 | +### Bonuses implemented |
| 83 | + - Bonuses list |
0 commit comments