2023-10-31 16:26:17 -04:00
|
|
|
# BACKEND
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
- Clone the project:
|
|
|
|
``` bash
|
|
|
|
git clone https://git.chauvet.pro/michel/ft_transcendence
|
|
|
|
cd ft_transcendence
|
2023-11-22 08:23:36 -05:00
|
|
|
git switch server
|
2023-10-31 16:26:17 -04:00
|
|
|
```
|
|
|
|
- Create python virtual environnement.
|
|
|
|
``` bash
|
|
|
|
python3 -m venv .env
|
|
|
|
```
|
|
|
|
- Source the environnement.
|
|
|
|
``` bash
|
|
|
|
source .env/bin/activate
|
|
|
|
```
|
|
|
|
- Install the requirements
|
|
|
|
``` bash
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
2023-11-27 08:09:18 -05:00
|
|
|
- Setup database
|
|
|
|
```
|
|
|
|
python manage.py runserver makemigrations profiles
|
2023-12-16 05:58:50 -05:00
|
|
|
python manage.py migrate profiles
|
2023-11-27 08:09:18 -05:00
|
|
|
```
|
2023-10-31 16:26:17 -04:00
|
|
|
- Start the developpement server
|
|
|
|
```
|
|
|
|
python manage.py runserver 0.0.0.0:8000
|
2023-10-31 16:38:34 -04:00
|
|
|
```
|