Home

Awesome

<h1 align="center"> <a href="https://vpm.vlang.io"> <img width='240' alt='V Package Manager' src='.github/assets/vpm.svg'> </a> </h1> <div align="center"> <!-- [Getting started][GettingStarted] --> <!-- &ensp;|&ensp; --> <!-- [Documentation][Docs] --> <!-- &ensp;|&ensp; --> <!-- [Contribute][Contribute] -->

Sponsor Patreon Discord Twitter

</div>

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
<!-- Reference links --> <!-- [GettingStarted]: https://vpm.vlang.io/docs/getting-started --> <!-- [Docs]: https://vpm.vlang.io/docs --> <!-- [Contribute]: .github/CONTRIBUTING.md --> <!-- Badges --> <!-- Socials -->