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
|
|
|
|
```
|
2023-12-16 06:06:05 -05:00
|
|
|
<<<<<<< HEAD
|
2023-11-27 08:09:18 -05:00
|
|
|
python manage.py runserver makemigrations profiles
|
2023-12-16 05:58:50 -05:00
|
|
|
python manage.py migrate profiles
|
2023-12-16 06:06:05 -05:00
|
|
|
=======
|
2023-12-13 07:45:29 -05:00
|
|
|
python manage.py makemigrations games
|
|
|
|
python manage.py makemigrations profiles
|
2023-12-15 14:32:43 -05:00
|
|
|
python manage.py runserver makemigrations chat
|
2023-12-13 08:55:17 -05:00
|
|
|
python manage.py migrate
|
2023-12-16 06:06:05 -05:00
|
|
|
>>>>>>> d03f90367f1fd075e79f4a69d31c5a49b9e53d01
|
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
|
|
|
```
|