Code Monkey home page Code Monkey logo

prici's Introduction

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:

JWT_SECRET=something-difficult-to-break

Run it locally or wherever:

$ 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.:

$ 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.

$ 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.

$ 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:

$ npm install @prici/sdk

prici's People

Contributors

davidmeirlevy avatar eladabramovich avatar himasnhu-at avatar madina0801 avatar rannn505 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.