Creating a nodejs framework from scratch
To learn more about Node.js I’ll try to create a framework from scratch. The goal is not to create a framework to be used in production.
First, I will look at how current frameworks work and try to understand them.
After that I’ll try to do it step by step, and there are a lot of topics that I need to look into.
- How to structure properly my framework
- How to handle http messages
- Request
- Parameters
- Files
- Response
- Request
- Routing
- Basics routes
- Parameters in url
- Parameters validation
- Managing all methods
- Security aspect
- CORS
- OPTION method
- CSRF
- CORS
- Using a controller to handle my requests
- Accessing the database
- orm
- migration / sync of schema
Tags