Scripter or interested in scripting? This place just may fancy to your likings!
- Wannabe Don
- Posts: 1529
- Joined: Wed Dec 28, 2011 4:37 pm
- Location: Romania
I'd also recommend using the n version manager to save yourself some headaches when dealing with different versions of node.F Sullivan wrote:The joys of working within a native event-oriented environment... if you're using Node, make sure you're also using NPM to make things easier for yourself.
Currently I use the n-install script to first install node and manage it from the Home folder on linux but you can use it with a previous installed version too.
Also at some point I'd recommend switching to Ubuntu or some other linux distro if you're going to program in Python/PHP/Node to save yourself further headaches when deploying web apps on a VPS.
And speaking of VPS! I recommend Digital Ocean because at some point you'll need a VPS if you're doing something other than PHP. They also have some good guides about deploying and securing web apps and all that is basic sysadmin-ing and devops.
Here's a referral link that gets you $10 credit or almost 2 months (depending on VAT) of the first tier of hosting: https://m.do.co/c/1cd34dab989f
Though if you'd rather avoid the hassle of administrating your own server I'd suggest Heroku's free and hobby tiers. I've used them in the past for the socket.io intro tutorial and it worked nicely.
Oh and finally if you aren't using git for version control you should start learning it right away, the sooner the better.
- Posts: 573
- Joined: Sun Mar 22, 2015 7:23 am
I'd disagree and say you'd be better off investing into deployment software such as Laravel Forge if you're really wanting to avoid any headaches.Varsatorul wrote:Also at some point I'd recommend switching to Ubuntu or some other linux distro if you're going to program in Python/PHP/Node to save yourself further headaches when deploying web apps on a VPS.
- Badman Mike
- Wannabe Don
- Posts: 3289
- Joined: Mon Apr 02, 2012 4:49 am
is app middleware in express executed on every request? say i'm doing jwt authentication with passport, and initialize all my passport stuff in my main app file, will it be run every time a request is made? once a user has registered and authenticated, a json web token with their info encrypted into it is signed and the user has to include that in the header of any request, but how does passport know it's there?
Who is online
Users browsing this forum: No registered users and 1 guest