Modern Django App with React: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
<pre> | <pre> | ||
pip install django | pip install django | ||
pip install django-compressor django-compressor-toolkit | |||
</pre> | </pre> | ||
Line 20: | Line 21: | ||
Init Git | Init Git | ||
<pre>git init</pre> | <pre>git init</pre> | ||
Init NPM (creates package.json) | |||
<pre>npm init</pre> |
Revision as of 07:27, 9 February 2021
Install NPM (you likely already have it)
sudo apt-get install nodejs npm
Install Django
pip install django pip install django-compressor django-compressor-toolkit
Start the app
django-admin startproject project
Run the app
cd project python manage.py runserver
Init Git
git init
Init NPM (creates package.json)
npm init