DEV Community

Cover image for Fullstack? Why not (Django + Vue-js) - episode 0
aderayevans
aderayevans

Posted on

2 2

Fullstack? Why not (Django + Vue-js) - episode 0

Table of Contents

  1. Django for backend
  2. Vue.js for frontend

Settings essentials


Django for backend


  • Anaconda for virtual environment 4.12.0
conda create --name django-env

activate django-env #activate the environment
Enter fullscreen mode Exit fullscreen mode

Remember to install all commands below inside conda env (django_env)

  • >= Python 3.10.4
  • Django 4.0.5

    python -m pip install Django

  • Django CORS : Cross-Origin-Resource-Policy

    python -m pip install django-cors-headers


Vue.js for frontend


  • Install Nodejs 16.15.1 and npm 8.11.0 at https://nodejs.org/en/download/
  • vue-cli 5.0.6

    npm install -g vue-cli

  • axios 0.27.2

    npm i axios

  • typescript 4.7.4 (when cannot find {frontend_project_dir}/node_modules/typescript)

    npm install typescript

or

npm install -g typescript

Additional settings:

add this line to {frontend_project_dir}/jsconfig.json

    "jsx": "preserve",
Enter fullscreen mode Exit fullscreen mode
    {
  "compilerOptions": {
    "target": "es5",
    "jsx": "preserve",
    "module": "esnext",
    "baseUrl": "./",
    "moduleResolution": "node",
    "paths": {
      "@/*": [
        "src/*"
        // "./src/**/*.ts"
      ]
    },
    "lib": [
      "esnext",
      "dom",
      "dom.iterable",
      "scripthost"
    ]
  }
}
Enter fullscreen mode Exit fullscreen mode

Image of Stellar post

Check out Episode 1: How a Hackathon Project Became a Web3 Startup πŸš€

Ever wondered what it takes to build a web3 startup from scratch? In the Stellar Dev Diaries series, we follow the journey of a team of developers building on the Stellar Network as they go from hackathon win to getting funded and launching on mainnet.

Read more

Top comments (0)

πŸ‘‹ Kindness is contagious

If this article connected with you, consider tapping ❀️ or leaving a brief comment to share your thoughts!

Okay