mnfst / manifest

A Whole Backend That Fits Into 1 YAML file. ⭐ to support the project !
https://manifest.build
MIT License
797 stars 49 forks source link

Create a demo TODO APP with React / NextJS / Svelte / Vue #206

Open brunobuddy opened 1 month ago

brunobuddy commented 1 month ago

We built a demo repo to showcase the integration of Manifest with different frontend frameworks.

The demo is based on the popular TodoMVC website that compares the differents frameworks building the same todo app. In our use case we added a small Manifest backend with a db for persistant data:

name: My TODO App ✅
entities:
  Todo:
    seedCount: 10
    properties:
      - title
      - { name: completed, type: boolean }

We need now to create frontend examples based on the TodoMVC ones:

How to submit a demo

ChinoUkaegbu commented 1 month ago

Hi, I'd like to work on the React example!

dawipayandas commented 1 month ago

I'd like to work under this issue

SebConejo commented 1 month ago

Hi @ChinoUkaegbu and @dawipayandas . Which frontend do you want to work with? @brunobuddy FYI

ChinoUkaegbu commented 1 month ago

I can work on React.

ChinoUkaegbu commented 1 month ago

Just wondering what version of npm I should use for installing manifest. I'm getting a few errors when using Node.js v20.10.0 and I suspect it's as a result of that.

brunobuddy commented 1 month ago

@ChinoUkaegbu can you send me a screenshot of your errors ?

ChinoUkaegbu commented 1 month ago

Screenshot (430) Screenshot (431)

brunobuddy commented 1 month ago

@ChinoUkaegbu it is not tested on Windows, sorry.... Only Mac and Linux for now

LLxD commented 1 month ago

Hey @brunobuddy! I'd love to tackle the Svelte one ;). Is it still available?

brunobuddy commented 3 weeks ago

@ChinoUkaegbu I just released a version that fixes that issue on Windows !

brunobuddy commented 3 weeks ago

@LLxD yes !

ChinoUkaegbu commented 3 weeks ago

Thanks! I'll continue working on the React example.

ChinoUkaegbu commented 3 weeks ago

Got this error when trying to run the angular example :( Manifest installed without errors but running npm run dev is resulting in this: Screenshot (499) Screenshot (500)

ChinoUkaegbu commented 3 weeks ago

Good news and bad news:

I got the manifest backend to work. Had to change the nodemonPath in watch.js to end with nodemon.cmd instead of nodemon since that's the Windows specific executable for nodemon. Shown below: image I'm not sure how to modify the script to handle cross-platform compatibility? I think npx can handle that?

I'll work on the Angular error next but it still persisted.

brunobuddy commented 3 weeks ago

@ChinoUkaegbu sorry I did not explain to you that you had to get the latest version of the "manifest" package. I updated it on the "main" branch you can pull it and it should fix the issue

ChinoUkaegbu commented 3 weeks ago

I believe I was working off the latest version. I pulled the changes before starting.

The errors I got two weeks ago were with adding manifest using npx add manifest but they were resolved with the latest update! Now the errors from two days ago were with npm run manifest which was because of the nodemon executable not being compatible with windows but that was resolved like I mentioned above when I used nodemon.cmd instead.

LLxD commented 1 week ago

Hey @brunobuddy! Added a PR for the svelte example. Could you give it a check pls? ;)