-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af9cb3c
commit 81760ba
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# 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 | ||
|
||
Run it locally or wherever: | ||
```sh | ||
$ docker run -p 9000:9000 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, 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 -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 | ||
``` | ||
|