Giter VIP home page Giter VIP logo

Cobudget

Tech stack

Next.js, Urql, Apollo, Prisma, PostgreSQL

Development

Prerequisites

  • Install and run Docker-compose
  • Install Node.js version >= 18.
    • Or run nvm use in this directory
  • Install dependencies in /ui
    • yarn
  • In /ui, copy .env.local.default to .env.local

Running the project

Start development databse

In /ui:

docker-compose up

Then, run yarn migrate in another terminal.

Start development process

In /ui

yarn dev

You can login with the link shown in the terminal.

Translation

We are using crowdin + react-intl for translations. It works like this

  1. Text is rendered using FormatMessage component which is imported from react-intl. The default message is the message which appears if a translation is missing.
  2. The id of the text is generated using hash function.
  3. yarn extract command extracts the default messages from the code and assign them an id. These are stored in en.json file.
  4. The en.json file is uploaded to crowdin using yarn crowdin:upload command.
  5. After translating text, translations can be downloaded using the command yarn crowdin:download

Stripe

To make stripe checkout work you need their webhooks to reach your machine. Do this by running ./scripts/forward-stripe-webhooks.sh (you'll need the stripe CLI and to have logged in using stripe login before that) in a terminal in the background. That command will also give you a webhook secret in the format whsec_123..., you should set the env var STRIPE_WEBHOOK_SECRET to this value.

License

Released under AGPL-3.0-or-later, with some additional terms. All of which are included in the file LICENSE in the git repository.

Cobudget's Projects

group-migration icon group-migration

Scripts for migrating data from the old Cobudget to the current version.

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.