02-con-a-thon's People
02-con-a-thon's Issues
Dead code! โ ๏ธ
Delete dead code!
02-Con-A-Thon/public/styles.css
Lines 255 to 268 in 56e4fad
Seeding in users is ๐ฅ
This is a really great idea:
Lines 12 to 14 in 56e4fad
Put all your CSS in one place (a stylesheet!)
You have CSS in a stylesheet, in the head and inline - as your application grows that will become difficult to manage. You should generally just keep all your CSS in a stylesheet anyway
02-Con-A-Thon/views/layout.hbs
Lines 11 to 43 in 56e4fad
Merge with Master
I had a small panic attack when I first cloned your project! โ ๏ธโ ๏ธโ ๏ธโ ๏ธ
Once I realized you had multiple branches it went away. But still! Merge with master
so it's up to date. Your instincts here to use multiple branches is ๐ฏ spot on - we're going to have a lesson on branching strategies for big projects next week where we'll dig into why. You just also want to keep master up to date! ๐
Index.js
This file is super well organized! Only thought is you may want to switch the order of these two:
Lines 29 to 36 in 56e4fad
Planning directory?
Maybe throw your user stories and wireframe into a planning/
directory?
Use Mongo/Mongoose Aggregate
02-Con-A-Thon/controllers/convention.js
Lines 8 to 19 in 56e4fad
This is an alright way to do this, a better way is to use MongoDB $group
Aggregation, which you can do through Mongoose Aggregate. Your query would look something like this:
Con.find({}, [], { groupBy: '$genre' }).then(cons => {
res.render('index', { cons })
})
I'd suggest also adding a limit so you're not getting every convention in your database.
Responsive!๐ฑ
This is a great start to responsive!
02-Con-A-Thon/public/styles.css
Lines 271 to 298 in 56e4fad
Handlebars Partials
Handlebars and most other templating languages have this thing called partials, which you can use to abstract out repetitive blocks of HTML. You could use a partial here and then render the partial inside each of these loops or create a partial that takes an array and loops through it.
Lines 33 to 51 in 56e4fad
Inline styles! โ ๏ธ
You're using inline styles throughout your application - inline styles are bad! You want to put that styling in a CSS file.
Fill out your Readme
We slacked out this self-guided lesson during project 2: Documentation
Give it a look through, specifically this section on documentation content (i.e. what to put in your readme
. You have the first item (a description of your project) but you could use this as an outline to fill in the rest. You could also use this readme template, which gets you most of the way there!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.