Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yeoman and ExpressJS

I want to know if there is some boilerplate code to use a frontend workflow tool like Yeoman with a backend framework like ExpressJS, if I want to maintain the same codebase for both the front and back ends.

Basically I want to know -

  • How do the boilerplate code produced by yeoman and express fit in together. Is there a way to integrate the two? (How does the gruntfile fit into the express project)

  • Can I substitute yeoman's default watch with an express server which reloads pages on update?

like image 840
ssb Avatar asked Oct 31 '12 14:10

ssb


People also ask

What is the alternative of ExpressJS?

Koa, React, Flask, Django, and Golang are the most popular alternatives and competitors to ExpressJS.

Is ExpressJS outdated?

It is unmaintainedExpress has not been updated for years, and its next version has been in alpha for 6 years. People may think it is not updated because the API is stable and does not need change.

What is difference between Nextjs and ExpressJS?

Express. js is a backend framework for building APIs whereas Next. js is a full stack framework that builds upon React to improve the SEO, development experience, and performance of your project. One of these features IS a built-in API routing system that could replace Express.

Is ExpressJS same as NodeJS?

What is Express JS – Quick Overview. ExpressJS is a web application framework for NodeJS. That's what mainly makes the difference between Express JS and Node JS. The former provides various features that make web application development fast and easy, which otherwise takes more time using only the latter.


3 Answers

Yeoman is currently focused on front-end app development, but we're going to explore back-end integration in the future.

like image 123
Sindre Sorhus Avatar answered Nov 09 '22 23:11

Sindre Sorhus


No, actually there isn't any right now.

But you can combine express.js with the component package manager. There is some work left, and you cant use yeoman components in component.

To answer your questions

  • You can look for components in the component repo that you have used in yeoman. Not the same, but might be a solution.
  • Use the module supervisor for this. You can get it via npm
like image 29
Sebastian Schürmann Avatar answered Nov 09 '22 23:11

Sebastian Schürmann


I haven't found an easy way of integrating my own Express + H5BP + Angular + Grunt skeletons into Yeoman, and eventually just settled for creating a repo here: https://github.com/ericclemmons/genesis-skeleton

From what I've read, there are projects underway to add express generators, but eventually stacks are going to get complex enough to where you'll have to maintain your own starter app, rather than generating it.

like image 20
Eric Avatar answered Nov 09 '22 23:11

Eric