Skip to content

A Single Page Application built with Django, Django REST Framework and Vue JS

Notifications You must be signed in to change notification settings

Klodovsky/QuestionBag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuestionBag

A Single Page Application built with Django, Django REST Framework and Vue JS.

This is the source code of my final year web development project.

The task was to develop a web app using different frameworks for the backend and frontend.

How to set up the project environment to run on your local machine?

Make sure you have python3 and pip installed.

sudo apt install python3-pip

Confirm the pip3 installation.

pip3 --version

Clone / Download the project and move inside the folder.

Create a new Python Virtual Environment:

Now install virtualenv via pip3.

pip3 install virtualenv

Install virtualenvwrapper via pip3:

pip3 install virtualenvwrapper

Once the module is installed we are ready to create virtual environments for Python 3.

python3 -m venv my-project-env

To start using this virtual environment, you need to activate it by running the activate script:

source my-project-env/bin/activate

Now install all the Python/Django dependencies:

pip install -r requirements.txt

Usage

Move inside the QuestionBag folder and apply the migrations :

cd QuestionBag
python manage.py makemigrations
python manage.py migrate

Install the Vue JS dependencies:

cd QuestionBag/frontend
npm install

Run Vue JS Development Server:

npm run serve

Open a new terminal and run Django's development server:

python manage.py runserver

Open up your browser and go to 127.0.0.1:8000

home

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Acknowledgment

Special thanks to Mr Michele Saba for his amazing Django REST udemy course .

Click HERE to Enroll Now!