-
Change into the project directory
git clone https://github.com/hgbaodev/chat-app.git
-
Navigate to the project directory
cd chat-app
-
Change into the client directory
cd client
-
Install npm dependencies
npm install
-
Start the client interface
npm run dev
- Open a terminal in the project directory.
- Change into the project directory:
cd server/database
- Build the Docker image:
docker-compose build
- Run the Docker containers:
docker-compose up
- Open a new terminal.
- Command to list all containers:
docker container ls
- Copy the
container_id
of the running MySQL container. - Access the MySQL container's command line:
docker exec -it container_id /bin/bash
- Access MySQL prompt:
Replace
mysql -ppass -uroot
pass
with the actual MySQL root password. - List all databases in MySQL:
show databases;
- Change into the project directory:
cd server
- Install pipenv:
pip install pipenv
- Activate the virtual environment:
pipenv shell
- Update the database:
python manage.py migrate
- Start the server:
python manage.py runserver