Skip to content

vlang/vpm

Repository files navigation

Sponsor Patreon Discord Twitter

Instantly publish your modules and install them. Use the API to interact and find out more information about available modules. Become a contributor and enhance V with your work. vpm.vlang.io →

To run it locally, just run

v .

Don't forget to update config.toml: set your Postgres host, port, user, password, and dbname.

Make sure you have libpq-dev installed. Please refer to your OS or distribution documentation to install it.

In order to use GitHub authentication, add GitHub client id and secret as well.

Tailwind Setup

Download and install Tailwinds Standalone CLI in your local clone.

Linux Example:

curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
chmod +x tailwindcss-linux-x64
mv tailwindcss-linux-x64 tailwindcss

You can edit the tailwind configuration in tailwind.config.js and add custom css to static/css/index.css.

Watching CSS

Use the Standalone CLI to watch the css for changes

./tailwindcss -i static/css/index.css -o static/css/dist.css --watch --minify

Intellisense

Use Tailwinds CSS Intellisense extension for VSCode to get code completion for all tailwinds classes.

Development database

Instance of locally installed Postgres 15 or docker container:

docker run -it \
  --name vpm-database \
  -e POSTGRES_DB=vpm \
  -e POSTGRES_USER=vpm \
  -e POSTGRES_PASSWORD=vpm \
  --mount source=vpm-data,target=/var/lib/postgresql/data \
  -p 5432:5432 \
  postgres:15