Skip to content

Build a server and API for your next web application, using Node, Express and MongoDB

Notifications You must be signed in to change notification settings

lenmorld/node_workshop

Repository files navigation

Node workshop

Create a server + REST API for your next web application!

In this workshop, we’ll discuss concepts and put them to practice with activities, all about web servers. The code and concepts here would be a great foundation for your next web project! Topics include, but not limited to:

  • Using Node and Express to build a web server and REST API
  • Understanding routing, request and response
  • Implementing CRUD with HTTP methods
  • Building a server-rendered website using templates
  • Connecting to a Cloud NoSQL database: MongoDB Atlas DB
  • User authentication with sessions, cookies and tokens
  • Using external APIs, such as Github Jobs, Giphy, Spotify

Previous Events

Material

Preview slides: Google Drive document

Material: Notion link

Code

to follow workshop:

$ git checkout dev
$ node server.js

to dev latest

$ git checkout master
$ npm start

Create a .env file on root

NODE_ENV=development
PORT=4000
MONGO_DB_CONNECTION_STRING=YOUR_CONNECTION_STRING_HERE
# API keys go here

Screenshots

client server architecture

REST API CRUD methods

MongoDB CRUD

Session-based Auth

Token-based Auth

Spotify API with OAuth2

About

Build a server and API for your next web application, using Node, Express and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published