Giter Site home page Giter Site logo

Using database with it? about desktop HOT 4 CLOSED

x-ji avatar x-ji commented on May 19, 2024
Using database with it?

from desktop.

Comments (4)

dominicletz avatar dominicletz commented on May 19, 2024

Did you have a look at the sample app https://github.com/elixir-desktop/desktop-example-app ?

It's using the new ecto_sqlite3 library which has good ecto support. Give it a try.

from desktop.

x-ji avatar x-ji commented on May 19, 2024

Apparently I missed the first sentence in the repo lol. That's really cool!

I saw that exqlite is also included in the runtimes for iOS and Android, so one can also use the full SQLite functionalities with iOS and Android builds right?

from desktop.

x-ji avatar x-ji commented on May 19, 2024

And by the way, if I want to expose the app via a port to a frontend on the desktop builds, this should be trivially achievable right? (The use case I mentioned was to run a separate frontend app also locally and have it connect to an API backend.) I can't imagine why it shouldn't, but would just like to make sure, since the example case mentioned in the READMEs use LiveView :)

from desktop.

dominicletz avatar dominicletz commented on May 19, 2024

And by the way, if I want to expose the app via a port to a frontend on the desktop builds, this should be trivially achievable right? (The use case I mentioned was to run a separate frontend app also locally and have it connect to an API backend.) I can't imagine why it shouldn't, but would just like to make sure, since the example case mentioned in the READMEs use LiveView :)

Sure this works as well. You just have to signal the port somehow. In the Android and iOS builds the frontend is defacto another app and it's using environment variables to pass the port addresses.

from desktop.

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.