Coder Social home page Coder Social logo

Split app.js route down about esfiddle HOT 10 CLOSED

esfiddle avatar esfiddle commented on June 12, 2024
Split app.js route down

from esfiddle.

Comments (10)

Kashyap12 avatar Kashyap12 commented on June 12, 2024

hi @joshghent , can i take this up?

from esfiddle.

joshghent avatar joshghent commented on June 12, 2024

@Kashyap12 Of course! All yours! Let me or anyone else know if you have any questions 👍
Look forward to your PR 🎉

from esfiddle.

SaraVieira avatar SaraVieira commented on June 12, 2024

Hello @Kashyap12 ,

Are you still working on this ? 😄

from esfiddle.

Kashyap12 avatar Kashyap12 commented on June 12, 2024

@SaraVieira yes

from esfiddle.

Kashyap12 avatar Kashyap12 commented on June 12, 2024

@joshghent Hi Josh, I ve started working on this issue, but need help as I am a bit new to OSS ans JS, please let me know if we can have a chat.

from esfiddle.

vcapretz avatar vcapretz commented on June 12, 2024

@Kashyap12 what's your doubt? try to explain here and I'll try to help you

from esfiddle.

Kashyap12 avatar Kashyap12 commented on June 12, 2024

@vcapretz so I hv one doubt ,in the break up of the app.js script,the 1st point is ,Main page route (embeded and regular),I am nt sure what is embeded and regular.

from esfiddle.

vcapretz avatar vcapretz commented on June 12, 2024

@Kashyap12 I think it makes sense to put the "embed" routes (they are using Regular Expressions), the authenticated/ route and the ones that have comments starting with "// This one is matching ...".

Not every page will need to have all of that imports, probably just the main page route!

(if you need an example, that a look here: https://github.com/vcapretz/task-manager/tree/master/routes, it was a project that I made to practice Node!)

from esfiddle.

joshghent avatar joshghent commented on June 12, 2024

@Kashyap12 @vcapretz Yeah I would split the routes down like that.

  • Authenticated routes
  • Login routes (we will be adding more ways to login so will need different end points soon)
  • Static pages (blog and about)
  • Code pages (embedded and homepage).

from esfiddle.

vcapretz avatar vcapretz commented on June 12, 2024

I'm doing this one! will send the PR soon

from esfiddle.

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.