Docs build with Docusaurus.
npm installnpm startNavigate to http://localhost:3000 to see your documentation.
Note
If you use 🐳 Docker instead of 🦦 Podman, just replace podman-compose with docker compose, and podman with docker in code examples below.
To build an image, navigate to the root of the project and run this command:
podman-compose buildRun this command to install npm packages and generate a node_modules directory on your local machine:
podman-compose run --rm app npm iTo run a container, navigate to the root of the project and run this command:
podman-compose up -dYou can visit http://localhost:3000 to see your documentation. Your files will be auto-compiled to plain JavaScript as you change them.
To enter inside of the container, run this command:
podman-compose exec app shYou'll be able to run NPM commands inside of the container.
Tip
You don't need to run npm start because it's already running after you created a container.
After you are done working on a project, you can cleanup by stopping and removing all the running containers for this project.
podman-compose down