Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmeirlevy authored Dec 20, 2023
1 parent af9cb3c commit 81760ba
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions README.md
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
```

0 comments on commit 81760ba

Please sign in to comment.