Skip to content

Commit

Permalink
Merge pull request #156 from hemedani/main
Browse files Browse the repository at this point in the history
📖 add video link to readme and documents
  • Loading branch information
hemedani committed Mar 22, 2024
2 parents b822116 + b860168 commit 8b6bf90
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 19 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# Why **Lesan**?

Even though _**NoSQL**_ is very fast, its complexities are very troublesome for large-scale projects. On the other hand, _**GraphQL**_ shines in client-server connectivity but it has several weaknesses and is somewhat complex, adding another layer of complexity to the project. That’s why we created **LESAN**.

[This video](https://youtu.be/FzMNIGanXSQ) is an introductory tutorial on **Lesan** framework in Farsi language.

# Benchmarks

Expand Down
2 changes: 1 addition & 1 deletion docs/add_relation_fn.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ <h2 id="update-many-to-many-relation"><a class="header" href="#update-many-to-ma
const obIdLivedCities = livedCities.map((lc: string) =&gt; new ObjectId(lc));

return await users.addRelation({
_id: new ObjectId(_id),
filters: { _id: new ObjectId(_id) },
projection: body.details.get,
relations: {
livedCities: {
Expand Down
11 changes: 6 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,14 @@ <h1 id="benchmarks"><a class="header" href="#benchmarks">Benchmarks</a></h1>
<p>We use this formula to calculate the difference : (B - A) ÷ A * 100<br />
As you see on the chart:</p>
<ul>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>1168%</code> faster than the <code>prisma-express-rest</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>1417%</code> faster than the <code>prisma-express-graphql</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>4435%</code> faster than the <code>mongoose-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>72289%</code> faster than the <code>mongo-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>298971%</code> faster than the <code>mongoose-express-rest</code> (used sortby)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>1168%</code> faster than the <code>prisma-express-rest</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>1417%</code> faster than the <code>prisma-express-graphql</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>4435%</code> faster than the <code>mongoose-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>72289%</code> faster than the <code>mongo-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>298971%</code> faster than the <code>mongoose-express-rest</code> (used sortby)</li>
</ul>
<p><strong>Maybe we created the most performant framework in the world!</strong> <a href="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/MiaadTeam/benchmark">see more detailed benchmark</a></p>
<p><a href="https://youtu.be/FzMNIGanXSQ">This video</a> is an introductory tutorial on <strong>Lesan</strong> framework in Farsi language</p>

</main>

Expand Down
11 changes: 6 additions & 5 deletions docs/introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,14 @@ <h1 id="benchmarks"><a class="header" href="#benchmarks">Benchmarks</a></h1>
<p>We use this formula to calculate the difference : (B - A) ÷ A * 100<br />
As you see on the chart:</p>
<ul>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>1168%</code> faster than the <code>prisma-express-rest</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>1417%</code> faster than the <code>prisma-express-graphql</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>4435%</code> faster than the <code>mongoose-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>72289%</code> faster than the <code>mongo-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>298971%</code> faster than the <code>mongoose-express-rest</code> (used sortby)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>1168%</code> faster than the <code>prisma-express-rest</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>1417%</code> faster than the <code>prisma-express-graphql</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>4435%</code> faster than the <code>mongoose-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>72289%</code> faster than the <code>mongo-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>298971%</code> faster than the <code>mongoose-express-rest</code> (used sortby)</li>
</ul>
<p><strong>Maybe we created the most performant framework in the world!</strong> <a href="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/MiaadTeam/benchmark">see more detailed benchmark</a></p>
<p><a href="https://youtu.be/FzMNIGanXSQ">This video</a> is an introductory tutorial on <strong>Lesan</strong> framework in Farsi language</p>

</main>

Expand Down
15 changes: 9 additions & 6 deletions docs/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,14 @@ <h1 id="benchmarks"><a class="header" href="#benchmarks">Benchmarks</a></h1>
<p>We use this formula to calculate the difference : (B - A) ÷ A * 100<br />
As you see on the chart:</p>
<ul>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>1168%</code> faster than the <code>prisma-express-rest</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>1417%</code> faster than the <code>prisma-express-graphql</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>4435%</code> faster than the <code>mongoose-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>72289%</code> faster than the <code>mongo-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> return data to client <code>298971%</code> faster than the <code>mongoose-express-rest</code> (used sortby)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>1168%</code> faster than the <code>prisma-express-rest</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>1417%</code> faster than the <code>prisma-express-graphql</code>. Which uses <code>postgres</code> as a database.</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>4435%</code> faster than the <code>mongoose-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>72289%</code> faster than the <code>mongo-express-rest</code> (Note that we did not sort in this query)</li>
<li><a href="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/MiaadTeam/lesan">Lesan</a> returns data to client <code>298971%</code> faster than the <code>mongoose-express-rest</code> (used sortby)</li>
</ul>
<p><strong>Maybe we created the most performant framework in the world!</strong> <a href="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/MiaadTeam/benchmark">see more detailed benchmark</a></p>
<p><a href="https://youtu.be/FzMNIGanXSQ">This video</a> is an introductory tutorial on <strong>Lesan</strong> framework in Farsi language</p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="installation"><a class="header" href="#installation">Installation</a></h1>
<p>Currently, only the <a href="https://deno.land/">Deno</a> version of <strong>Lesan's</strong> framework is ready and usable, <a href="https://nodejs.org/en">Node</a> and <a href="https://bun.sh/">Bun</a> versions will also be ready soon.</p>
<h3 id="pre-request"><a class="header" href="#pre-request">Pre request</a></h3>
Expand Down Expand Up @@ -1516,7 +1517,7 @@ <h2 id="update-many-to-many-relation"><a class="header" href="#update-many-to-ma
const obIdLivedCities = livedCities.map((lc: string) =&gt; new ObjectId(lc));

return await users.addRelation({
_id: new ObjectId(_id),
filters: { _id: new ObjectId(_id) },
projection: body.details.get,
relations: {
livedCities: {
Expand Down Expand Up @@ -3766,6 +3767,8 @@ <h3 id="post-requests"><a class="header" href="#post-requests">POST Requests:</a
<li>Requests sent to <code>upload</code> a document.</li>
<li>Requests sent to <code>receive data</code> from the <code>server</code> (in fact, these requests are the main requests sent to <strong>Lesan</strong>).</li>
</ul>
<h4 id="upload-documents"><a class="header" href="#upload-documents">Upload documents</a></h4>
<p>for uploading a document you should send a <code>POST</code> request to <strong>Lesan</strong> endpoint </p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="lesan-vs-graphql"><a class="header" href="#lesan-vs-graphql">Lesan vs GraphQL</a></h1>
<div style="break-before: page; page-break-before: always;"></div><h1 id="all-the-advantages-of-lesan"><a class="header" href="#all-the-advantages-of-lesan">All the advantages of Lesan</a></h1>
<p>راجع به فانکشنال پروگرمینگ حتما بگم و اینهارو توش توضیح بدم :<br />
Expand Down
2 changes: 2 additions & 0 deletions docs/request_flow.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ <h3 id="post-requests"><a class="header" href="#post-requests">POST Requests:</a
<li>Requests sent to <code>upload</code> a document.</li>
<li>Requests sent to <code>receive data</code> from the <code>server</code> (in fact, these requests are the main requests sent to <strong>Lesan</strong>).</li>
</ul>
<h4 id="upload-documents"><a class="header" href="#upload-documents">Upload documents</a></h4>
<p>for uploading a document you should send a <code>POST</code> request to <strong>Lesan</strong> endpoint </p>

</main>

Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/searchindex.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pages/src/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@ In one sentence, **Lesan** may add a few to five hundred milliseconds to the `cr
- [Lesan](https://github.com/MiaadTeam/lesan) returns data to client `298971%` faster than the `mongoose-express-rest` (used sortby)

**Maybe we created the most performant framework in the world!** [see more detailed benchmark](https://github.com/MiaadTeam/benchmark)

[This video](https://youtu.be/FzMNIGanXSQ) is an introductory tutorial on **Lesan** framework in Farsi language

0 comments on commit 8b6bf90

Please sign in to comment.