Node Rest API Project for the Chinook Database
This project is based on the Chinook database, which is used as a sample database for learning SQL.
Here are the starter files for the project
- Setting Up the Project
- The Database
- Genre Routes and Controllers
- Genre Model
- Genre Data Service
- Finishing the Genre Routes
Links to resources:
- Software design principles
- Overview of HTTP (you read this last semester, but you may want to review it)
- REST APIs for non-techies
- REST API Introduction
- REST API Design
- Structuring a REST API project in Express
- Setting up a connection pool with the mysql2 package
- Running Queries with mysql2
- mysql2 Documentation
- Routes and Controllers
- Separating Routes and Controllers
- JSON Web Tokens
- JWT Authentication
- JWT and Refresh Tokens
- Drawbacks to JWT
- Securing JavaScript Apps
- Preventing SQL Injection Attacks
- Dealing with CORS in Express Apps
- Securing your app with Helmet