Giter Site home page Giter Site logo

Comments (8)

AnandChowdhary avatar AnandChowdhary commented on June 29, 2024

Thanks for opening this issue, @wayneburlingame! It makes me really happy that you got excited about the "end-to-end" SaaS, that was precisely my intention.

The database schema is for 1.x, so if you use that, everything should work. It seems like you're using 2.x, which uses a different schema, where the preferredLanguage column has been renamed to prefersLanguage to match other columns with the "prefers" prefix for color scheme and reduced motion.

If you want to use 2.x, you should use the Prisma schema to generate your database (docs for that coming soon!) and you should use the new branch in Staart UI rather than master. You can use npx prisma migrate up --experimental to generate your database instead of the schema.sql you must be using now.

Let know if this solves your problem! I'll keep this issue open until I have decent "getting started" docs for the new version with Prisma.

from ui.

AnandChowdhary avatar AnandChowdhary commented on June 29, 2024

In summary, your options are, though it's my fault this is so confusing:

  1. master branch of API with new, upcoming version of Staart UI (in v2 branch)
  2. 1.x version of API with Staart UI's master branch

What you're doing is master branch of API with the master branch of UI, which sadly doesn't work (though I'll make sure it does soon!). I think the best way forward is to update your Staart UI to the v2 branch. :)

from ui.

wayneburlingame avatar wayneburlingame commented on June 29, 2024

from ui.

AnandChowdhary avatar AnandChowdhary commented on June 29, 2024

You can use npx prisma migrate up --experimental to generate your database instead of the schema.sql you must be using now.

Prisma Migrate docs: https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-migrate

from ui.

wayneburlingame avatar wayneburlingame commented on June 29, 2024

from ui.

AnandChowdhary avatar AnandChowdhary commented on June 29, 2024

Do you have documentation on all the reference points that need tables or
info created in the database?

Yes, the prisma/schema.prisma file in Staart API has the Prisma schema about what tables should be created and the general data structure and relations.

Also, on your documentation, you refer to MySQL/MariaDB, but Prisma uses a lot of PostgreSQL in their documentation and tutorials and examples

This project uses MySQL, but the point of Prisma is that it works with many different databases. Although they have some examples with Postgres, they also have examples with MySQL and others. In the schema.prisma file, you'll notice that we're using MySQL.

I'll write a thorough "Getting started" guide soon and hopefully that'll make this process easier. :)

from ui.

wayneburlingame avatar wayneburlingame commented on June 29, 2024

from ui.

FindingAnand avatar FindingAnand commented on June 29, 2024

⚠️ This issue has not seen any activity in the past 2 months so I'm marking it as stale. I'll close it if it doesn't see any activity in the coming week.

from ui.

Related Issues (17)

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.