node.js: JavaScript runtime
(e.g. for running a local development server)
npm: package manager
possibilities:
possible commands for initializing a project named "todolist":
npx create-react-app@latest todolist
npx create-react-app@latest todolist --template typescript
npm create vite@latest
npx create-next-app@latest
npx create-next-app@latest --ts
see also: https://reactjs.org/docs/create-a-new-react-app.html
example:
npx create-react-app@latest todolist --template typescript
many aspects can be preconfigured by the initializer:
create-react-app: default file structure
basic file structure for a simple todo list project:
common approaches:
inside the project directory:
npm run start
(or npm start
): starts the local development servernpm run build
: creates a build (for deployment)app runs on a local development server on the computer (typically localhost:3000)
automatic reloads on code changes
A React project can be hosted on any static hosting service
static build with create-react-app:
npm run build
minified and bundled app is created in the build folder
simple options for trying out deployment options without login:
features:
possible approach when looking for issues: