Server Starter
Here’s a template in NodeJS to help you get started in web dev with back-end!
This just uses express.static
. Very little effort went into this.
Why do I need to create 500 lines of code for a simple server? @FeixuRuins
@AnthonyMouse To make it actually useful. Look at this. Spot the difference? Static, not static.
Dude. This is a Server Starter. Not an advanced web app with Sass. @FeixuRuins
@AnthonyMouse I agree with FeixuRuins, this is just express.static
. You could've done this in less than 5
minutes.
once again, SERVER STARTER, what if somebody doesnt know html or just needs a web server starter? @programmeruser
@AloegelhiPlaysR if they don't even know HTML then backend is going to be kind of hard for them...
Nice job,looks good
Thanks. @FloCal35
do you want to work on a project together? @FloCal35
go to HTMLProject @FloCal35
Nice
thanks. @retronbv
Looks awesome. Also I saw FeixuRuins saying little effort, but think of this, who needs to use 100+ lines for a simple webserver?
Yeah thats what I was saying. Thanks!
Upvote@AloegelhiPlaysR@AloegelhiPlaysR if you only need
express.static
you're better off using a HTML repl ornpx static-here
. A real backend would have routing, a database, etc.IK, but they can now install important packages. @programmeruser
Like FS and use fs for writing json files with user input from a textbox or something! @AnthonyMouse
Yeah! @AloegelhiPlaysR
Glad we're on the same page. I much prefer node.js over html any day! @AnthonyMouse
yeah definiyely. @AloegelhiPlaysR
@AnthonyMouse you could have at least done routing with
app.get
instead of just usingexpress.static
.Yeah, but this is supposed to encourage people to make big things. It’d be kinda hard with 100 files. But if you really want me too… @programmeruser