Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5 tasks
brunobuddy opened this issue Oct 7, 2024 · 16 comments
Open
5 tasks

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

brunobuddy opened this issue Oct 7, 2024 · 16 comments
Labels

Comments

@brunobuddy
Copy link
Contributor

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:

  • React
  • NextJS
  • Svelte
  • Vue
  • Other frontend ?

How to submit a demo

  • Clone the mnfst/frontend-examples repository
  • Install and checkout the angular implementation for inspiration
  • Go to TodoMVC Github and grab the framework that you are going to integrate
  • Copy it on the /examples folder and connect it to the backend
  • Make sure that there is an npm run dev script in the package.json
  • Make your PR in the mnfst/frontend-examples mentionning this issue
@ChinoUkaegbu
Copy link

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

@dawipayandas
Copy link

I'd like to work under this issue

@SebConejo
Copy link
Contributor

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

@ChinoUkaegbu
Copy link

I can work on React.

@ChinoUkaegbu
Copy link

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
Copy link
Contributor Author

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

@ChinoUkaegbu
Copy link

Screenshot (430)
Screenshot (431)

@brunobuddy
Copy link
Contributor Author

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

@LLxD
Copy link

LLxD commented Oct 8, 2024

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

@brunobuddy
Copy link
Contributor Author

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

@brunobuddy
Copy link
Contributor Author

@LLxD yes !

@ChinoUkaegbu
Copy link

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

@ChinoUkaegbu
Copy link

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
Copy link

ChinoUkaegbu commented Oct 19, 2024

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
Copy link
Contributor Author

@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
Copy link

ChinoUkaegbu commented Oct 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants