- Documentation for short-number package
- Online here
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 build
If you need to copy node_modules
directory from the container to your local machine, run this command:
podman cp short-number-docs:/app/node_modules .
Note
node_modules
is excluded from using volume in compose.yml file, that's why you need to copy it manually. It's done to prevent your local modules to be copied to Linux container, since it can create incompatibility issues between operating systems if you don't use Linux.
To run a container, navigate to the root of the project and run this command:
podman-compose up -d
You can visit http://localhost:3000
to see your documentation.
To enter inside of the container, run this command:
podman-compose exec app sh
You'll be able to run NPM commands inside of the container. Don't run npm run dev
because it's already running when you created a container.
Run this command to stop and delete the containers:
podman-compose down
npm i
npm run dev
Navigate to http://localhost:5173
to see your documentation if you run the project locally. If you use container engine, visit http://localhost:3000
.