Simple Counter Application to learn the fundamentals of Reactjs
- Use pip to install Pipenv and its dependencies,
- pip install pipenv
- Change directory to the folder containing your Python project and run 'pipenv install'
- This will create two new files, Pipfile and Pipfile.lock, in your project directory, and a new virtual environment.
- Install Django with pipenv install django.
- Start a django project by running 'django-admin startproject name_of_your_project_here'.
- Change directory to the project root and create a new app with 'django-admin startapp name_of_your_app'.
- Add your new app to installed apps in settings.py.
- Run app with 'python manage.py runserver'.
- Have Node.js and NPM installed.
- Run 'npm install -g create-react-app'.
- Create a new app with 'create-react-app name_of_your_project'.
- Copy/cut all the contents of the React app and paste in the root of the Django project.
- Run app with npm start from the project root.