Introduction
Ecewo is a modern and developer-friendly backend framework for C that handles the complexities of C programming and lets you build backends with ease — inspired by the simplicity of Express.js.
Table of Contents
Section titled “Table of Contents”- Getting Started
- 1.1 Requirements
- 1.2 Installation
- 1.3 Start Server
- 1.3.1 Write The Entry Point
- 1.3.2 Build And Run The Server
- Route Handling
- 2.1 Handlers
- 2.2 Declaring Routes
- 2.3 Notes
- Handling Requests
- 3.1 Request Body
- 3.2 Request Params
- 3.3 Request Query
- 3.4 Request Headers
- Using JSON
- 4.1 Creating JSON
- 4.2 Parsing JSON
- Using A Database
- 5.1 Install SQLite
- 5.2 Example Folder Structure
- 5.3 Change The Makefile
- 5.4 Connecting To Database
- 5.5 Example Usage
- 5.5.1 Inserting Data
- 5.5.2 Querying Data
- Authentication
- 6.1 Login
- 6.2 Logout
- 6.3 Getting session data
- 6.4 Protected Routes
- 6.5 Notes
- Middleware
- Environment Variables
- Async Operations
- 9.1 The Async Logic
- 9.2 Example Usage
- 9.2.1 Step 1: Create A Context Structure
- 9.2.2 Step 2: Create An Entry Point
- 9.2.3 Step 3: Write The First Operation
- 9.2.4 Step 4: Write The Second Operation
- 9.2.5 Step 5: Write The free_async() Function
- 9.2.6 Final View
- 9.2.7 Test