Code examples from the Getting Started with Express.js series on https://egghead.io
You can populate your database with the following command.
mongoimport --db test --collection users --drop --file user_list.json
Code examples from Getting Started with Express on egghead.io
Code examples from the Getting Started with Express.js series on https://egghead.io
You can populate your database with the following command.
mongoimport --db test --collection users --drop --file user_list.json
First of all, thank you so much for putting this course together, I'm loving getting more out of node and express with it!
Halfway through though, I began to have an SyntaxError: Unexpected token
message when booting up the server, without any more information on where it was. Turns out this isn't a syntax error in the code per se, and it's bound to happen to most Mac users at some point, so I thought I'd share the problem and how to fix it:
That damned .DS_Store
file in the OSX filesystem.
In the /
route, we're grabbing all files from that folder, not just the JSON ones. If it encounters something that is not a JSON file, this will of course break since it can't be parsed. .DS_Store
, being invisible in the file system, will only show up on the logs for the list of all files.
A solution would be to filter all files and narrow them down to only the JSON ones.
Happy expressing!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.