DtechB / singlePageBlogVueDjango

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Blog

Simple blog page with vuejs as frontend and django-rest as backend + perfect authentication :)


⚙️ Config the backend

First you should make venv for this project. So in the backend folder you should type this command in your Terminal or Console:

python -m venv venv

Now you should activate your venv. So in the main root of project you should type this command in your Terminal or Console:

In Linux/macOS:
source venv/bin/activate
In Windows:
./venv/Scripts/activate

After activating venv you should install the requirements.txt packages. So type this command in your Terminal or Console:

pip install -r requirements.txt
Configuration of project almost done.

After installing packages migrate database:

python manage.py migrate

If in windows command python didn't work please try with py

🏁 Run the backend api

First of all, please enter the following command in the Terminal or Console to make sure the project is configured correctly:

python manage.py check

You should see This message: "System check identified no issues (0 silenced)."
If you see this message you can run project. So type this command in Terminal or Console:

python manage.py runserver

Congratulations, you ran the project correctly ✅

Now copy/paste this address in your browser URL bar:

http://127.0.0.1:8000/swagger

⚙️ Config the frontend

First you should install all packages that related to nodejs and vuejs. So in the frontend folder you should type this command in your Terminal or Console:

npm i
Configuration of project almost done.

🏁 Run the frontend

After installing needed packages run this code to run project in your localhost:8080

npm run serve

About

License:GNU General Public License v3.0


Languages

Language:Vue 57.5%Language:Python 29.8%Language:JavaScript 10.7%Language:HTML 2.0%