Update README.md
This commit is contained in:
parent
1daec6bdfd
commit
2767478385
43
README.md
43
README.md
@ -35,52 +35,13 @@ This project is part of the 42 School Common Core curriculum. Its purpose is to
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Automated
|
|
||||||
|
|
||||||
Just run the following :
|
|
||||||
|
|
||||||
```bash
|
|
||||||
chmod +x ./run.sh
|
|
||||||
./run.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
### Manual
|
### Manual
|
||||||
- Clone the project:
|
- Clone the project:
|
||||||
``` bash
|
``` bash
|
||||||
git clone https://git.chauvet.pro/michel/ft_transcendence
|
git clone https://git.chauvet.pro/michel/ft_transcendence
|
||||||
cd ft_transcendence
|
cd ft_transcendence
|
||||||
```
|
```
|
||||||
- Create python virtual environnement.
|
- Start docker containers.
|
||||||
``` bash
|
``` bash
|
||||||
python3 -m venv .env
|
docker-compose up --build
|
||||||
```
|
|
||||||
- Source the environnement.
|
|
||||||
``` bash
|
|
||||||
source .env/bin/activate
|
|
||||||
```
|
|
||||||
- Install the requirements
|
|
||||||
``` bash
|
|
||||||
pip install -r requirements.txt
|
|
||||||
```
|
|
||||||
- Setup database
|
|
||||||
```
|
|
||||||
python manage.py makemigrations games
|
|
||||||
python manage.py makemigrations profiles
|
|
||||||
python manage.py makemigrations chat
|
|
||||||
python manage.py makemigrations tournament
|
|
||||||
python manage.py migrate
|
|
||||||
```
|
|
||||||
- Compile translations
|
|
||||||
```
|
|
||||||
python manage.py compilemessages
|
|
||||||
```
|
|
||||||
- Start the developpement server
|
|
||||||
```
|
|
||||||
python manage.py runserver 0.0.0.0:8000
|
|
||||||
```
|
|
||||||
|
|
||||||
coc nvim
|
|
||||||
```
|
|
||||||
pip install django-stubs
|
|
||||||
pip install django-type
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user