Best practices for embedding a javascript app in a Mojo app.

32 views
Skip to first unread message

Alberto Mijares

unread,
Nov 7, 2019, 10:51:26 AM11/7/19
to Mojo Users Group
Hi guys,

I need to write an API with its front-end in javascript. There's a
node module I can install with npm that would be very helpful. Is it a
good practice to have both projects in the same tree? Should I have
separated projects?

I never had to deal with frontend development before, so I have no
idea how to do it following best practices.

Thanks in advance.

Regards,


Alberto Mijares

Dan Book

unread,
Nov 7, 2019, 10:54:38 AM11/7/19
to mojol...@googlegroups.com
It's really just an organizational question. You can easily have the javascript and the API as two separate projects and design them to work independently, or as the same project so you can more easily coordinate changes between them. In either case something will need to serve the javascript files from the back-end as well.

-Dan

--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/CAGZBXN-0yS%2Bi7AjH06DsS76b3AzB%3DqykyGTwXiXunLNySa6kAg%40mail.gmail.com.

Alberto Mijares

unread,
Nov 7, 2019, 1:23:20 PM11/7/19
to Mojo Users Group
Thank you. You made me think better.

Regards,


Alberto Mijares
> To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/CABMkAVVA9aN1utzpKTGoHm8fA5SOC7aSPsqLr1AUXquYzTTdbw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages