Code Monkey home page Code Monkey logo

Comments (4)

huumn avatar huumn commented on May 26, 2024

I've had a few other requests to do this too.

It is a fairly complicated dev setup to do ad hoc (like I do). Docker would probably be best.

from stacker.news.

abetusk avatar abetusk commented on May 26, 2024

Setting up the lightning daemon (or connection thereto) is lower priority than setting up the database and connecting, etc. You obviously have more familiarity with the setup but I suspect there's the possibility of hooking up the database without the lnd connection but with some DB connection.

If true, that allows testing of the features that don't directly depend on the lightning daemon, like API access, RSS feed updates, etc.

from stacker.news.

huumn avatar huumn commented on May 26, 2024

You're right, you can run the app without lnd being connected. Off the top of my head, you mostly just need

  1. a postgres db
  2. an .env file with the DATABASE_URL like
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#using-environment-variables

# Prisma supports the native connection string format for PostgreSQL, MySQL and SQLite.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

# prisma
DATABASE_URL="postgresql://keyan@localhost:5432/stackernews?schema=public"
  1. run prisma migrate dev

For next auth there are other bits. I should for sure document this though.

from stacker.news.

huumn avatar huumn commented on May 26, 2024

We now have a dockerized local dev setup.

from stacker.news.

Related Issues (20)

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.