- Create virtual environment for the project.
Run command:
Olvy_task$ c:\>python -m venv c:\path\to\myenv
Now, enter in myenv: For Linux/ Mac OS:
Olvy_task$ Source myenv/bin/activate
For Windows:
Olvy_task$ myenv\Scripts\activate
-
Now, install requirements.txt file using:
(myenv)Olvy_task$ pip install -r requirements.txt
This will install all the dependencies.
-
Next is to locate manage.py file and run command to start the django server.
Olvy_task$ python manage.py runserver
This will available on port no. 8000.
- Now, Download and install yarn package manager using command.
npm install --global yarn
-
Get inside the
vueapp/vuedjango
and install node modules usingyarn install
command -
After installing, type following command to start the frontend server.
Olvy_task/vueapp/vuedjango$ yarn serve
This will available on port no. 8080.
- Now enter the Url to the browser
http://localhost:8080/
and get the output.