This is a minimal React project using Parcel that you should be able to get up and running.
To use:
npm install
npm run dev
- Go to http://localhost:1234
If you get a problem, you can try running it in Docker instead. You need to have Docker installed on your computer and then execute
- Make sure you delete
node_modules
,.parcel-cache
,dist
docker run --interactive --tty --volume %cd%:/app --workdir /app node:16-alpine npm install
(shorthanddocker run -it -v %cd%:/app -w /app node:16-alpine npm install
)docker run --interactive --tty --volume %cd%:/app --workdir /app -p 1234:1234 node:16-alpine npm run dev
(shorthanddocker run -it -v %cd%:/app -w /app -p 1234:1234 node:16-alpine npm run dev
)
- Make sure you delete
node_modules
,.parcel-cache
,dist
docker run --interactive --tty --volume $(pwd):/app --workdir /app node:16-alpine npm install
(shorthanddocker run -it -v $(pwd):/app -w /app node:16-alpine npm install
)docker run --interactive --tty --volume $(pwd):/app --workdir /app -p 1234:1234 node:16-alpine npm run dev
(shorthanddocker run -it -v $(pwd):/app -w /app -p 1234:1234 node:16-alpine npm run dev
)