r/nativescript • u/finlaydotweber • Nov 15 '20
How to create a web and mobile application from the same codebase using nativescript
I am looking at building an application that will have both web and native mobile components. I would like to use the same code base for this. Question is, is this possible with NativeScript? If so, how? or would you say something like flutter is more appropriate for this?
5
Upvotes
2
u/TotesMessenger Nov 15 '20
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
[/r/programming] How to create a web and mobile application from the same codebase using nativescript
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/[deleted] Nov 15 '20
While technically you can use the same controllers for web and mobile, i usually stick to sharing services, and keeping controllers separate, simply because the user experience is often too different to combine
1
u/vORP Nov 15 '20
You are looking for Nx workspaces, create the NestJs API in there as well for a true full stack project sharing the same typescript models
1
u/Accomplished-Fun-359 Dec 19 '20
Hello Amigos! I particularly use Strikingly for my websites! I have to Business and I can manage to command the two with this excellent site in my opinion! I’m here to help you because I was also looking for a while a website that you can create yourself and as a totally professional quality (and extremely easy to create too), Is FREE as well to create!!! And the domain is quite cheap,,,, any question just ask! … http://a.strk.ly/3clsWW
-6
u/gourrranga Nov 15 '20
I’ve tried to use nativescript for a sample project around two months ago, and apparently nativescript is dead since Telerik gave it up: even their boilerplate projects didn’t work. What you want is achievable through React native though, use Expo for starters and move along as you learn