Giter VIP home page Giter VIP logo

egghead-getting-started-with-express's Introduction

Getting Started with Express.js

Code examples from the Getting Started with Express.js series on https://egghead.io

Importing data

You can populate your database with the following command.

mongoimport --db test --collection users --drop --file user_list.json

egghead-getting-started-with-express's People

Contributors

bclinkinbeard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

egghead-getting-started-with-express's Issues

'Unexpected token' message when starting the server

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.