Skip to content

Recommended package for MySQL database? #51

Discussion options

You must be logged in to vote

Yes, it is as simple as that. You will find a lot of tutorials about express online.


You could also use Node.js (nanojsx) and PHP (laravel) together. Keep the routes and the database connection in PHP and fetch the resources you need from Node.js.

For example, in Node.js (just sudo code)

// fetch post nr. 55
const result = await fetch('my-laravel-api.com/posts/55')

// add the post as props to your Post component
const post = renderSSR(<Post data={result.data} />)

// send the html 
res.send(post)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jrson83
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants