Comments (8)
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.
In summary, your options are, though it's my fault this is so confusing:
master
branch of API with new, upcoming version of Staart UI (inv2
branch)- 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.
from ui.
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.
from ui.
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.
from ui.
from ui.
Related Issues (17)
- Is it possible to share complete code for the site?
- Verify email HOT 1
- Not able to connect to backend HOT 1
- suggest for ui framework HOT 1
- register.js:85 Uncaught (in promise) Error HOT 9
- Invalidate session on logout HOT 3
- Tapable.plugin is deprecated. HOT 2
- Add all-contributors HOT 5
- Log out when expired local token
- Best practices to integrate Staart-ui with Staart? HOT 4
- Show outbound emails from ES in admin interface HOT 1
- Demo site is slow on Chrome/Mac HOT 8
- Hitting refresh in register breaks the web app HOT 4
- how to connect custom web app to this front end templete HOT 6
- dotENV File Secret Keys question for clarification HOT 2
- UI differences? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.