Where communities thrive
Join over
1.5M+ people
Join over
100K+ communities
Free
without limits
Create
your own community
Explore more communities
sahat/hackathon-starter
A boilerplate for Node.js web applications
People
Repo info
Activity
James Lee
@uptownhr
that would be great :)
i do need to work on a contributing guide as well
Niall O'Brien
@niallobrien
But it would be opinionated of course
James Lee
@uptownhr
opinionated is good
:)
i don't have much experiences with frontend
at least not with gulp
i've been using webpack
Niall O'Brien
@niallobrien
Ah
James Lee
@uptownhr
but it wasn't simple enough for me to put in the framework
Niall O'Brien
@niallobrien
I’ve used both
James Lee
@uptownhr
i'm trying to keep a balance of opinions,functions and simplicity
really hard
haha
Niall O'Brien
@niallobrien
For sure
Let me take a look at the code ;)
James Lee
@uptownhr
hehe
Niall O'Brien
@niallobrien
Okay, I like that you’re using proper file names, and not like
/post/index.js
Makes using CMD+P much easier
James Lee
@uptownhr
whats CMD+P?
Niall O'Brien
@niallobrien
Sublime Text (I have it mapped in Webstorm)
James Lee
@uptownhr
btw, i'm actually doing both
is it to open files?
Niall O'Brien
@niallobrien
yeah, very quickly
_
James Lee
@uptownhr
i use webstorm too, but i have different keybindings
but going back to index.js
i have controllers/index and models/index
if you want to include in all the files of that dir
its very useful for destructuring
now you can do, { User, Project } = require('./models')
Niall O'Brien
@niallobrien
For sure, but makes file hopping a bitch
James Lee
@uptownhr
instead of having multiple lines
Niall O'Brien
@niallobrien
Having 5
index.js
files open is not fun
Man, that Post controller looks damn clean
No validation in there?
James Lee
@uptownhr
it's just a view
so no input
Niall O'Brien
@niallobrien
Ah, looking elsewhere :)
You have a Gitter?
Instead of polluting this one
James Lee
@uptownhr
yup
hehe
uptowhr/hackable
Niall O'Brien
@niallobrien
Any advice for structuring large apps with Hackathon Starter? Thanks.
Anker
@ankerbachryhl
Hi,
@sahat
Awesome project :smile: :+1: What would you recommend, if I wanna add a chat? :smile:
tackpapa
@tackpapa
is there any way i can replace jade with angular?
Sahat Yalkabov
@sahat
@ankerbachryhl
Thanks. There are probably existing chat solutions, but you can also implement it yourself using socket.io.
Dipesh Bhardwaj
@Dev-Dipesh
@tackpapa
Jade, which is now Pug is a templating engine. You can use Angular within Jade
rakesh kumar jha
@rakeshk706_twitter
hi
can anyone please help me with the linkedin login