https://github.com/prici-io/prici
manage plans and pricing for any SaaS application
https://github.com/prici-io/prici
entitlements fastify hacktoberfest limitations nodejs pricing remult
Last synced: 5 months ago
JSON representation
manage plans and pricing for any SaaS application
- Host: GitHub
- URL: https://github.com/prici-io/prici
- Owner: prici-io
- License: mit
- Created: 2023-12-14T08:16:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-04T07:51:37.000Z (over 1 year ago)
- Last Synced: 2025-09-28T01:54:47.583Z (6 months ago)
- Topics: entitlements, fastify, hacktoberfest, limitations, nodejs, pricing, remult
- Language: TypeScript
- Homepage: https://prici.io
- Size: 286 KB
- Stars: 49
- Watchers: 1
- Forks: 7
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prici
Prici is an open-source project to manage plans and pricing for any SaaS application.
You can use Docker's standalone service and run it locally or on your machine.
-------
## Getting started
Create a `.env` file with the following content:
```dotenv
JWT_SECRET=something-difficult-to-break
# Enable /api/admin route for admin interface
ADMIN_UI=true
```
Run it locally or wherever:
```shell
$ docker run -p 9000:9000 --env-file=.env ghcr.io/prici-io/prici:main
```
That's it. Now **prici** runs on port 9000.
-------
## Use a custom database
If you don't mention any database connection, it will use local JSON files.
you can keep them for persistence by adding a volume to the container, e.g.:
```sh
$ docker run -p 9000:9000 --env-file=.env -v ./db:/app/apps/api/db ghcr.io/prici-io/prici:main
```
### Postgres
Add an environment variable with the Postgres connection string.
```sh
$ docker run -p 9000:9000 --env POSTGRES_URL=YOUR-DB-CONNECTION-STRING ghcr.io/prici-io/prici:main
```
### MongoDB
Add an environment variable with MongoDB URL.
Just so you know, you can add the DB name manually if your connection string does not include the DB name.
```sh
$ docker run -p 9000:9000 --env MONGODB_URL=YOUR-MONGODB_URL --env MONGODB_DB_NAME=YOUR_DB_NAME_OPTIONAL ghcr.io/prici-io/prici:main
```
-------
## Node SDK
Just install the SDK:
```sh
$ npm install @prici/sdk
```