basic questions

Hello, I am a beginner (aka noob) and just found out about manifest and it seems like a good fit for building a astro blog. I have some general questions though: Do I understand it correct that I would intall Manifest via npm into my Astro project/directory and deploy that to github as one? Once deployed how does one access the admin panel? Is it also just <www.domain.com>:1111? Is there a way to configure CORS so that only my site can access my data in manifest? Do I understand it correct that I can simply define my users in the yaml file and they can simply login with my provided pw to edit the site, no need for further setup? Can I use the auth feature to create a logged in state for my astro site, without using the Manifest Backend/Admin Panel? Thanks! Looks like a really amazing project, very exciting for devs who want to build simple sites.
4 Replies
brunobuddy
brunobuddy6d ago
Hello @fTxUser ! Manifest is made to be the most simple possible. However some concepts may required a bit of practice: Do I understand it correct that I would intall Manifest via npm into my Astro project/directory and deploy that to github as one? >> You can do that yes, it's called "monorepo" structure. You can share your node modules or have a github repo with 2 folders: client/frontend/astro and server/backend/manifest. You also can separate it into 2 repos. If the Astro frontend will be the only consumer of the Manifest API, it can be simpler to have them in the same repository Once deployed how does one access the admin panel? Is it also just <www.domain.com>:1111? >> Yes Is there a way to configure CORS so that only my site can access my data in manifest? >> Not yet Do I understand it correct that I can simply define my users in the yaml file and they can simply login with my provided pw to edit the site, no need for further setup? >> Manifest comes with the "admin" entity by default. Once installed you can log to your admin panel and create individually credentials for your user Can I use the auth feature to create a logged in state for my astro site, without using the Manifest Backend/Admin Panel? >> I am not seeing why would you want to do that. What would be the point ? If the frontend logs to get data from the backend you would need to store the credentials publicly in your frontend code.
fTxUser
fTxUserOP6d ago
thanks a lot for taking the time to answer my questions bruno! The last question was more about if it's possible to create a simple app, like a to-do app that users can log into to save their to-dos, that is running off Manifest without the user noticing.
brunobuddy
brunobuddy6d ago
@fTxUser you could do this todoapp but there a missing feature at the moment: the ABAC to restrict the access only to user's own todos. You can query and filter by userId but technically anyone can just change the query to see other's todos. We have this feature in the backlog
brunobuddy
brunobuddy6d ago
There is an example of the TodMVC app here: https://github.com/mnfst/frontend-examples
GitHub
GitHub - mnfst/frontend-examples
Contribute to mnfst/frontend-examples development by creating an account on GitHub.

Did you find this page helpful?