Code Monkey home page Code Monkey logo

Comments (6)

Morrisai avatar Morrisai commented on August 22, 2024

or do we go with two separate repos? one for back end and one for frontend?

from generator-jam3.

cheapsteak avatar cheapsteak commented on August 22, 2024

I think separate repos makes more sense, probably won't be much code sharing
Also, scope creep!

from generator-jam3.

mikkoh avatar mikkoh commented on August 22, 2024

Not scope creep. 😁 It's a part of the long term plan. We've already been discussing backends and cmses that would work well with our workflow.

from generator-jam3.

miguelmoraleda avatar miguelmoraleda commented on August 22, 2024

Maybe we could have 2 generators: generator-jam3-frontend and generator-jam3-backend. In case you need both for the same project, you can create:

|-project-name/
|-- frontend
|-- backend

And then run the proper generator in each folder. With this maybe we loose the opportunity to have more advanced commands like yo jam3:update interacting with both projects at the same time. Maybe not. I'm not sure.

In the other hand, I think we should let this for phase 3 or 4 of the generator and just focus on front end at this point.

from generator-jam3.

mikkoh avatar mikkoh commented on August 22, 2024

I'm not sure separating the backend and frontend is a good route. By repo or by generator.

The holy grail of Node is to be able to use frontend code on the backend and backend code on the frontend.

One case where I've done thing many times is where I've setup a socket.io server and had an Object which stores all the "keys" for events in an Object. Like:

module.exports = {
  CHARACHTER_MOVED: 'charMoved'
}

On the frontend I'll listen for for events.CHARACHTER_MOVE and on the server I'll emit events.CHARACHTER_MOVE.

The game plan with the backend is to mirror the way we work with routes.

So if we have a section and route such as /about then the backend would also have an /about route you could call and get a JSON model for that section.

from generator-jam3.

njam3 avatar njam3 commented on August 22, 2024

Look into using salt for bringing in the latest php backends, look for a way to standardize backend code.

from generator-jam3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.