Skip to content

Commit

Permalink
chore(design pattern): #12
Browse files Browse the repository at this point in the history
fix(routing): #2
chore(core): Axon() function added to return an instance of AxonCore for easier usage.
docs(readme): readme updated
docs(web): web docs updated.
  • Loading branch information
MR-MKZ committed Nov 18, 2024
1 parent dcb8d2b commit 5b339df
Show file tree
Hide file tree
Showing 37 changed files with 294 additions and 279 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Currently Axon is 2X faster than Express. :D please checkout [Axon Benchmarks](.

Latest change:
- `CORS` config added to AxonCore.
- An instance maker added for AxonCore for easier usage. (Axon function)
- Rebase folder structure and filenames of project [#12](https://github.com/MR-MKZ/AxonJs/issues/12).
- fixed routing bug [#2](https://github.com/MR-MKZ/AxonJs/issues/2)
- Plugin manager system added to core. (Document will update soon - 2024/10/24)


Expand All @@ -32,15 +35,9 @@ You can checkout Axon benchmarks document and results from below link.
<a href="#">
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/mr-mkz/axonjs/npm-publish.yml">
</a>
<a href="https://www.npmjs.com/package/@mr-mkz/axon">
<img alt="jsDelivr hits (npm)" src="https://img.shields.io/jsdelivr/npm/hy/%40mr-mkz%2Faxon">
</a>
<a href="https://www.npmjs.com/package/@mr-mkz/axon">
<img alt="NPM Downloads" src="https://img.shields.io/npm/dy/%40mr-mkz%2Faxon?label=NPM%20Downloads&color=%235304db">
</a>
<a href="https://github.com/Mr-MKZ/AxonJs/releases/latest">
<img alt="GitHub Downloads (all assets, all releases)" src="https://img.shields.io/github/downloads/mr-mkz/axonjs/total?style=flat&label=Github%20Downloads&color=%235bc912">
</a>
</p>
<p align="center">
<a href="#">
Expand All @@ -49,9 +46,6 @@ You can checkout Axon benchmarks document and results from below link.
<a href="#">
<img alt="npm bundle size" src="https://img.shields.io/bundlephobia/min/%40mr-mkz%2Faxon">
</a>
<a href="#">
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/mr-mkz/axonjs?label=Github%20release">
</a>
<a href="https://www.npmjs.com/package/@mr-mkz/axon">
<img alt="NPM Version" src="https://img.shields.io/npm/v/%40mr-mkz%2Faxon?label=NPM%20release&color=%2304dba9">
</a>
Expand Down Expand Up @@ -109,7 +103,9 @@ You can access and create routes with just a few steps.
```
3. load your routes in core with `loadRoute()` function;
- ```js
const core = new AxonCore();
const core = Axon(); // easier and newer method
// or
// const core = new AxonCore();

core.loadRoute(router)
4. Done, you created your routes successfully :D
Expand Down
12 changes: 6 additions & 6 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
--dark-hl-4: #4FC1FF;
--light-hl-5: #001080;
--dark-hl-5: #9CDCFE;
--light-hl-6: #AF00DB;
--dark-hl-6: #C586C0;
--light-hl-7: #098658;
--dark-hl-7: #B5CEA8;
--light-hl-8: #008000;
--dark-hl-8: #6A9955;
--light-hl-6: #008000;
--dark-hl-6: #6A9955;
--light-hl-7: #AF00DB;
--dark-hl-7: #C586C0;
--light-hl-8: #098658;
--dark-hl-8: #B5CEA8;
--light-hl-9: #000000FF;
--dark-hl-9: #D4D4D4;
--light-hl-10: #267F99;
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b339df

Please sign in to comment.