ft_transcendence/README.md

40 lines
702 B
Markdown
Raw Normal View History

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-13 07:45:29 -05:00
python manage.py makemigrations games
python manage.py makemigrations profiles
2023-12-16 04:35:52 -05:00
python manage.py makemigrations chat
2023-12-20 13:15:47 -05:00
python manage.py makemigrations tournament
2023-12-13 08:55:17 -05:00
python manage.py migrate
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
```
2023-12-15 14:32:43 -05:00
coc nvim
```
pip install django-stubs
```