- Explain what a RESTful, database-driven HTTP server is.
- Explain why a RESTful, database-driven HTTP server is useful.
- Use Express and Knex to build a RESTful, database-driven HTTP server.
Turn to your neighbor and discuss what a RESTful, database-driven HTTP server is. Be prepared to share your answer.
Turn to your neighbor and discuss why a RESTful, database-driven HTTP server is useful. Be prepared to share your answer.
- What is stored in the
knexfile.js? Is the name important? Is the location important? - What is stored in the
knex.jsfile? Is the name important? Is the location important? - What file do you require in a file when you want to use the database?
- When creating routes in a separate file, to which object do you attach your new route to? How do you get that object? What do you export?
- How do you add routes that are defined in another file to your express application?