Skip to content

Commit 309bd7c

Browse files
author
Yakshit chhipa
committed
Merge branch 'main' of https://github.com/Axnjr/Blazze.js
2 parents 005e496 + 3e16844 commit 309bd7c

File tree

3 files changed

+91
-30
lines changed

3 files changed

+91
-30
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Yakshit Chhipa
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,42 @@
11
<div align="center">
22

3-
<h1 style="font-size:5rem">Blazze.js</h1>
3+
![Screenshot 2024-01-21 153036-modified](https://github.com/Axnjr/Blazze.js/assets/111436589/cad139ae-a2e0-4f39-9c1a-ee99c63f732a)
4+
5+
<br>
46

57
<a>![Static Badge](https://img.shields.io/badge/TypeSafe-8A28E2)</a>
68
<a>![Static Badge](https://img.shields.io/badge/API%20Dev-%201A18A0)</a>
79
<a>![Static Badge](https://img.shields.io/badge/OpenSource%20-%20%23fff?logoColor=%23fff&labelColor=%23fff&color=%23fff)</a>
810
<a>![Static Badge](https://img.shields.io/badge/Express-%20%20%23FF00FF)</a>
911
<a>![Static Badge](https://img.shields.io/badge/SWC-%20?logoColor=%23000&color=%2300FFF3)</a>
10-
<a>![X (formerly Twitter) URL](https://img.shields.io/twitter/url?url=https%3A%2F%2Ftwitter.com%2FYC59094) </a>
12+
<a href="https://twitter.com/Blazzejs">![X (formerly Twitter) URL](https://img.shields.io/twitter/url?url=https%3A%2F%2Ftwitter.com%2FBlazzejs)</a>
1113
<a>![Static Badge](https://img.shields.io/badge/v.1.2.3%20-%20%230213FF)</a>
1214
<a>![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/t/Axnjr/Blazze.js?logoColor=%23000&labelColor=%23F4FF00&color=%23FC9300)</a>
15+
16+
<br>
1317

1418
</div>
1519

16-
A light-weight express framework to write typesafe API's with zero configuration, no boiler-plate blazingly fast. Blazze.js is a powerful and lightweight JavaScript framework designed to simplify web development. With a focus on simplicity and performance, Blazze.js provides a set of features that make building web applications a breeze.
20+
A lightweight express framework to write typesafe APIs with zero configuration, no boilerplate blazingly fast. Blazze.js is a powerful and lightweight JavaScript framework designed to simplify web development. With a focus on simplicity and performance, Blazze.js provides a set of features that make building web applications a breeze.
1721

1822
## Features
19-
- __`Request Caching:`__ Blazze handles caching automatically to optimize large computations.
20-
- __`Powered by SWC:`__ Super speed transpilation via the power of Rust.
21-
- __`Easy Setup:`__ Hit `npx blazze-init` to start building your projects.
22-
- __`TypeScript:`__ Out of the box TS support, no configurations and environment setup, just get started directly.
23-
- __`Directory based Routing:`__ Keep the logic separated without any setup. Routes are based on the directory structure.
24-
- __`Fast & Robust:`__ Built on top of express, for better developer experience.
25-
- __`No Boiler Plate Code:`__ Install init and start, Nothing else 🚀
26-
- __`Build Optimization:`__ Makes a single optimized bundle for your app
2723

24+
- __😎 Request Caching:__ - Blazze handles caching automatically in both Production and Dev Environments. In production it is obviously necessary to optimize large computations, however request caching is taken care of in dev mode as well by Blazze to provide a smooth developer experience, there is no need to revalidate the cache manually everything is handled by Blazze under the hood.
25+
26+
- __🏎️ Powered by SWC:__ - Blazze leavrages Rust-based tool: [Speedy Web Compiler](https://swc.rs/) to transiple Typescript files, so there negligible waiting time after file changes.
27+
28+
- __🐣 Easy Setup:__ - Hit `npx blazz-init` to start building your projects, you'll be asked a few questions for configuring Blazze & that's it Blazze will setup the project for you.
29+
30+
- __💪 TypeScript:__ - Out of the box TS support, no configurations and environment setup, just get started directly.
31+
32+
- __📂 Directory based Routing:__ - Keep the logic separated without any setup. Routes are based on the directory structure. ex: you will create a dir `user` inside of which you can add your logic for various request methods viz: `GET`, `POST`, `PUT`, `PATCH`, `DELETE`.
33+
34+
- __🚀 Fast & Robust:__ - Built on top of [Express JS](https://expressjs.com/) and [Helmet JS](https://helmetjs.github.io/), security and efficiency by default.
35+
36+
- __💫 No Boiler Plate Code:__ - Install init and start, Nothing else 🚀
37+
38+
- __🔥 Build Opimization:__ - Makes a single optimized Expressjs bundle for your complete app
39+
2840
## How to start ?
2941

3042
- Install blazze `npm i blazze@latest`
@@ -34,11 +46,16 @@ A light-weight express framework to write typesafe API's with zero configuration
3446
<img width="" alt="Screenshot 2024-01-11 222945" src="https://github.com/Axnjr/Blazze.js/assets/111436589/c9f09ffe-953e-43a5-bd52-ef2f8ee376e0">
3547

3648
- Create your API routes in the root-endpoint directory
37-
- Each route can have 5 http method files viz: GET, POST, PUT, PATCH, DELETE
38-
- Each files handles specific API request methods
49+
- Each route can have 5 HTTP method files viz: GET, POST, PUT, PATCH, DELETE
50+
- Each file handles specific API request methods
3951
- You need to export a default normal function from each file
4052
- These functions get Express Request and Response objects as parameters
4153
- For nested routes use "@" symbol ex: new/subs/ppl will be -> new@subs@ppl which will have its respective logic
42-
- This is to avoid deep recursive file watching and being more performent for the system
43-
- Dynamic routes start with a underscore "_" ex: api/v1/_users
54+
- This is to avoid deep recursive file watching and being more performant for the system
55+
- Dynamic routes start with an underscore "_" ex: api/v1/_users
4456
- That's it you are ready to blazze ...
57+
58+
## Contribute to Blazze
59+
Read the [Contribution guidlines](https://github.com/Axnjr/Blazze.js/blob/main/contributing.md) to begin.
60+
61+
## Give Blazze a Star ❤️⭐

contributing.md

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22

33
👋 Thank you for considering contributing to Blazze.js! I appreciate your interest in making my framework even better. Please take a moment to review this document to understand how you can contribute to Blazze.js.
44

5-
## Getting Started
5+
## Developing
66

77
Before you start contributing, make sure you have [Node.js](https://nodejs.org/) installed on your machine.
88

9-
1. Fork the Blazze.js repository on GitHub.
10-
2. Clone your forked repository to your local machine.
9+
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device.
1110

12-
```bash
13-
git clone https://github.com/Axnjr/Blazze.js.git
14-
```
15-
16-
3. Navigate to the project directory.
11+
2. Create a new branch:
12+
```
13+
git checkout -b feat/MY_BRANCH_NAME
14+
```
15+
> Use a descriptive and meaningful name for the branch that reflects the purpose of your contribution.
1716
18-
```bash
19-
cd Blazze.js
20-
```
17+
3. Install dependencies.
18+
```bash
19+
npm install
20+
```
2121

22-
4. Install dependencies.
23-
```bash
24-
npm install
25-
```
22+
4. Start developing
23+
```bash
24+
node index.js or npm run dev
25+
```
2626

2727
## Making Changes
2828

@@ -49,6 +49,29 @@ git push origin feature-branch
4949

5050
5. Open a pull request on the main Blazze.js repository.
5151

52+
## Commit Guidelines
53+
54+
- We encourage [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) format for your commit messages.
55+
- Keep your commit messages concise, clear, and descriptive.
56+
- Make sure to include a brief summary of the changes made in the commit.
57+
58+
```
59+
The commit message should be structured as follows:
60+
61+
<type>[optional scope]: <description>
62+
63+
[optional body]
64+
65+
[optional footer(s)]
66+
67+
```
68+
Example Commit Message:
69+
70+
```
71+
feat(cache): Add new caching system
72+
```
73+
74+
5275
## Coding Standards
5376

5477
- Follow the JavaScript Standard Style.

0 commit comments

Comments
 (0)