Details on setting up local machine, including PyCharm, etc. for this course.
- Create empty github repo
- Clone newly created github repo in PyCharm
- In PyCharm project, setup a venv for the project.
- Add README.md and gitignore files to the repo and commit/push.
Add a React front end project.
Run the following command to create the react app in the root project folder.
npx create-react-app frontend
This adds a new folder called frontend/
Output from npx command.
Success! Created frontend at /mnt/c/Users/david/Dropbox/Programming/Python/PyCharmProjects/django-react-ecommerce-course/frontend
Inside that directory, you can run several commands:
npm start
Starts the development server.
npm run build
Bundles the app into static files for production.
npm test
Starts the test runner.
npm run eject
Removes this tool and copies build dependencies, configuration files
and scripts into the app directory. If you do this, you can’t go back!
We suggest that you begin by typing:
cd frontend
npm start