bocadilloproject/bocadillo

Example: Bocadillo + frontend framework

florimondmanca opened this issue ยท 11 comments

Is your feature request related to a problem? Please describe.

Bocadillo is most likely to be used to create server-side app that provides data for a frontend app built with a JavaScript framework (Vue, React, etc.).

Describe the solution you'd like

  • Create an example repo for Bocadillo + F (where F is one of Vue or React).
  • Add a very short how-to guide in the docs that links to that repo..

Ideally, the example repo should show how to:

  • Set up a development stack for Bocadillo + F (i.e. the important parts one should look at).
  • Get Bocadillo to serve frontend build artefacts to have a production-ready app.

Describe alternatives you've considered

  • Write a how-to guide only: jumping to code and/or a "hello world" app is probably more effective. Plus people can just fork the repo and start hacking.

Additional context

As suggested by @EricE in #236

@cs01 Feel free to take a look at this with React or share any interesting patterns that could help write the guide!

cs01 commented

Sounds good. IME I prefer to jump straight into sample code or an already working "hello world" app. I am not opposed to writing docs on this, but I think a sample repo would be more helpful. Maybe I can have write access to a new repo at bocadilloproject/react-app?

Oh absolutely, go for it! I created react-example and gave you write access.

I still think we should add a small page to redirect people to the app for the code. I can handle that. :-)

I'd love to see a Bocadillo + ReactJS/React Native example repo. I'm planning on getting started on a PoC project for this in the next month or two.

I've just come across Bocadillo recently and it looks awesome!

Thanks for the kind words @lukebranch! Feel free to spread the word. :-) If that's an option, I'd be glad to see your project once it goes out!

I tried to assign this issue to you @cs01, but it seems you haven't received the invitation to join the org.
Anyway, if you need help on setting it up or have any questions we can discuss it here or on Gitter. :-)

cs01 commented

I thought I had joined but I just double checked and it looks like I didn't accept. I should be a member now, so feel free to reassign to me. Sorry about that! I haven't forgotten about this! Just been busy ๐Ÿ˜….

Hey, no worries @cs01! Looks like you're now a member of the Bocadillo organization. ๐Ÿ‘

cs01 commented

I pushed an initial commit to https://github.com/bocadilloproject/react-example ๐Ÿ˜„ .

That looks awesome @cs01! ๐Ÿคฉ I'll open a few issues with suggestions. :-)

We now have the frontend frameworks guide published, so I think we're done with this. Thanks!

cs01 commented

The frontend frameworks docs look good ๐Ÿ‘