Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linx05/nodejs-workshop
https://github.com/linx05/nodejs-workshop
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/linx05/nodejs-workshop
- Owner: linx05
- License: mit
- Created: 2019-02-07T07:19:30.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T00:39:58.000Z (about 2 years ago)
- Last Synced: 2024-11-07T18:32:41.421Z (about 2 months ago)
- Language: JavaScript
- Size: 3.22 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 51
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Node.js Workshop](https://docs.google.com/presentation/d/13dK6_AeKu7epd-HZdxGYkl6mt1sDT1mjX84mNfF_9gQ/edit?usp=sharing)
## Agenda
### What's...
- JavaScript
- Node.js
- Runtime
- the point!### Let's write (and run) some code! (hello-world)
Let's start off writing some code and seeing how to run it on Node.js.
While we're at it, let's kick off our first server!### Modules, Modules, Modules
Modules are fundamental part for creating Node.js applications. We'll take a look at how we can create our own modules and use existing ones from NPM.
#### Creating modules and using Node.js Standard Modules (modules)
We'll create our own CommonJS module for reading the files in a directory and filtering them. We'll take advantage of the `fs` Node.js module to access the file system.
#### NPM what? (fetch-dogs)
We'll be taking a look at `npm` module repository and how we can use it to extend the functionality of our applications.
We are going to install the `isomorphic-fetch` package and query the [Dog API](https://dog.ceo/dog-api/) to fetch ourselves some dogs 🐶.### Lets make an create an API (shopping-cart)
[Express](https://expressjs.com) is Node.js most used framework. We'll be taking a look at how to use it to create a full fletched API server and creating the server side of a shopping cart application.
### Let's save that stuff (shopping-cart-mongodb)
Now that we finished up with the functionality for our shopping cart API, let's persist this information to a database.
We'll be using MongoDB in combination with the Mongoose ORM to create reusable models and persist our information.