vlang / vpm

V's package manager

Home Page:https://vpm.vlang.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

V's package manager

https://vpm.vlang.io

License:GNU General Public License v3.0


Languages

Language:V 49.0%Language:HTML 43.1%Language:CSS 5.5%Language:JavaScript 2.4%