repo stringlengths 8 123 | branch stringclasses 178 values | readme stringlengths 1 441k โ | description stringlengths 1 350 โ | topics stringlengths 10 237 | createdAt stringlengths 20 20 | lastCommitDate stringlengths 20 20 | lastReleaseDate stringlengths 20 20 โ | contributors int64 0 10k | pulls int64 0 3.84k | commits int64 1 58.7k | issues int64 0 826 | forks int64 0 13.1k | stars int64 2 49.2k | diskUsage float64 | license stringclasses 24 values | language stringclasses 80 values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ArnabChatterjee20k/TypeScript-Projects | main | null | Contains basic typescript projects to master and understand typescript | javascript,reactjs,typescript,vite | 2023-07-21T18:24:30Z | 2023-09-25T19:58:24Z | null | 1 | 2 | 20 | 0 | 1 | 22 | null | null | TypeScript |
carlosazaustre/hotel-reservation-app | main | # hotel-reservation-app
Code from the ReactJS Video Tutorial on [YouTube](https://www.youtube.com/watch?v=KRrzBkxxMbc)
[](https://www.youtube.com/watch?v=KRrzBkxxMbc)
You will learn:
- How to set up a React JS project from scratch.
- Integration and use of **React/TanStack Query** to manage queries and mutations.
- Global state with **Zustand**.
- Navigation with **Wouter**.
- Forms with **React Hooks Forms**.
- Notifications with **React Hot Toast**.
- Design and styles with **Material UI**.
This tutorial is perfect for both beginners looking for a detailed "react js tutorial" and experienced developers wanting to expand their knowledge and learn about new libraries.
You don't need to download anything beforehand; I'll show you how to do everything from the beginning.
So, prepare your development environment and join me on this exciting journey through the world of React JS!
| Hotel booking application, using React along with some of the most popular and powerful libraries in the ecosystem: React/TanStack Query, Zustand, Wouter, React Hooks Forms, React Hot Toast, and Material UI | javascript,react,tutorial | 2023-07-21T07:35:36Z | 2023-09-06T14:07:47Z | null | 1 | 1 | 3 | 0 | 5 | 22 | null | null | JavaScript |
superdev-tech/nuxt-plotly | main | <p align="center">
<a href="https://github.com/superdev-tech/nuxt-plotly" target="_blank" rel="noopener noreferrer">
<img style="width:400px" src="https://raw.githubusercontent.com/superdev-tech/nuxt-plotly/main/nuxt-plotly-logo.svg" alt="nuxt-plotly logo">
</a>
</p>
<br/>
<p align="center">
<a href="https://npmjs.com/package/nuxt-plotly"><img src="https://img.shields.io/npm/v/nuxt-plotly/latest.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="npm version"></a>
<a href="https://npmjs.com/package/nuxt-plotly"><img src="https://img.shields.io/npm/dm/nuxt-plotly.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="npm download"></a>
<a href="https://github.com/superdev-tech/nuxt-plotly/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/nuxt-plotly.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="MIT license"></a>
<a href="https://nuxt.com/modules/nuxt-plotly"><img src="https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js" alt="nuxt-plotly module on nuxt official"></a>
</p>
<br/>
# Nuxt Plotly Module
๐ `nuxt-plotly` module is thin Nuxt3 wrapper for [plotly.js](https://plotly.com/javascript/)
- [๐ Online playground](https://stackblitz.com/edit/nuxt-starter-1bs1ke?file=app.vue)
- [๐ Plotly Documentation](https://plotly.com/javascript/plotly-fundamentals/)
## Features
<!-- Highlight some of the features your module provide here -->
- ๐ All plotly.js methods and events
- ๐พ Auto redraw on screensize changes and props update
- ๐ Data reactivity
- ๐๏ธ TypeScript support
## Quick Setup
1. Add `nuxt-plotly` dependency to your project
```bash
npx nuxi@latest module add nuxt-plotly
```
2. Add `nuxt-plotly` to the `modules` section of `nuxt.config.ts`
```js
// nuxt.config.js
export default defineNuxtConfig({
/**
* Add nuxt-plotly module
*/
modules: ["nuxt-plotly"],
/**
* Add nuxt-plotly module with options
* Set the inject option to true to use plotly function via $plotly
*/
// modules: [["nuxt-plotly", { inject: true }]],
});
```
3. Add `plotly.js-dist-min` to the `vite.optimizeDeps.include` section of `nuxt.config.ts`
```js
// nuxt.config.js
export default defineNuxtConfig({
vite: {
optimizeDeps: {
include: ["plotly.js-dist-min"],
},
},
});
```
That's it! You can now use Nuxt Plotly Module in your Nuxt app โจ
## Require client-side
There are two ways to use the `nuxt-plotly` module on the client-side in Nuxt3:
1. Wrap the component with the `<client-only>` tag.
```html
<client-only>
<nuxt-plotly
:data="pieChart.data"
:layout="pieChart.layout"
:config="pieChart.config"
style="width: 100%"
></nuxt-plotly>
</client-only>
```
2. Create a file with the `.client.vue` extension, for example, [PieChart.client.vue](https://github.com/superdev-tech/nuxt-plotly/blob/main/playground/components/PieChart.client.vue) and then you can use the component without the `<client-only>` tag.
## Plotly Event listeners
You can access [Plotly events](https://plotly.com/javascript/plotlyjs-events) using the `@on-ready` directive to receive the `PlotlyHTMLElement` object from the `<nuxt-plotly>` component.
- HTML template example
```html
<template>
<client-only>
<nuxt-plotly
:data="data"
:layout="layout"
:config="config"
@on-ready="myChartOnReady"
></nuxt-plotly>
</client-only>
</template>
```
- After receiving the PlotlyHTMLElement, you can access Plotly events
```typescript
function myChartOnReady(plotlyHTMLElement: NuxtPlotlyHTMLElement) {
console.log({ plotlyHTMLElement });
plotlyHTMLElement.on?.("plotly_afterplot", function () {
console.log("done plotting");
});
plotlyHTMLElement.on?.("plotly_click", function () {
alert("You clicked this Plotly chart!");
});
}
```
## Plotly Functions
To use the [Plotly Function](https://plotly.com/javascript/plotlyjs-function-reference/) in your nuxt project, follow these steps:
- Step 1: Set the `inject` option to `true` in the `nuxt-plotly` module configuration of your `nuxt.config.ts` file.
```js
// nuxt.config.js
export default defineNuxtConfig({
modules: [["nuxt-plotly", { inject: true }]],
});
```
- Step 2: After setting the inject option to true, you can now access the plotly function via `$plotly` in your nuxt project.
```ts
// app.vue
const { $plotly } = useNuxtApp();
/**
* Show all plotly functions
*/
console.log($plotly);
/**
* Use downloadImage function
*/
$plotly.downloadImage(plotlyHTMLElement as HTMLElement, {
format: "png",
width: 800,
height: 600,
filename: "newplot",
});
```
## Type Aliases
These type aliases simplify the usage of Plotly types in your Nuxt project:
```typescript
/**
* Represents an array of Plotly data objects.
*/
export type NuxtPlotlyData = Array<Plotly.Data>;
/**
* Represents a partial configuration object for Plotly charts.
*/
export type NuxtPlotlyConfig = Partial<Plotly.Config>;
/**
* Represents a partial layout object for Plotly charts.
*/
export type NuxtPlotlyLayout = Partial<Plotly.Layout>;
/**
* Represents a partial HTML element that holds a rendered Plotly chart.
*/
export type NuxtPlotlyHTMLElement = Partial<Plotly.PlotlyHTMLElement>;
```
With these type aliases, you can easily work with Plotly data, configurations, layouts, and HTML elements in your Nuxt application, enhancing your experience when creating interactive charts and visualizations.
## Development: If you want to contribute
```bash
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release
```
## License
Copyright ยฉ 2023 [Supanut Dokmaithong](https://github.com/Boomgeek).
This project is [MIT licensed](https://github.com/superdev-tech/nuxt-plotly/blob/main/LICENSE).
| ๐ Enhance your Nuxt 3 projects with interactive data visualizations using nuxt-plotly โ Simplified Plotly.js integration made easy! | charting,data-visualization,frontend,interactive-visualizations,javascript,nuxt,nuxtjs,plotly | 2023-07-21T06:37:30Z | 2024-04-03T12:50:10Z | null | 3 | 4 | 39 | 1 | 3 | 22 | null | MIT | Vue |
piotr-jura-udemy/nuxt-course | master | <a href="https://www.udemy.com/user/piotr-jura">
<p align="center"><img alt="Piotr Jura - Udemy Instructor" src="https://avatars.githubusercontent.com/u/39863283?v=4" align="center" width="200"></p>
<h1 align="center">Piotr Jura Udemy Courses</h1>
<h2 align="center">Fado Code Camp</h2>
</a>
<p align="center">
High-quality, comprehensive courses for web developers.
</p>
<p align="center">
<a href="#about-the-instructor"><strong>About the Instructor</strong></a> ยท
<a href="#courses"><strong>Courses</strong></a> ยท
<a href="#contact-and-links"><strong>Contact & Links</strong></a> ยท
<a href="#course-resources"><strong>This Course Resources</strong></a>
</p>
<br/>
## About the Instructor
I am Piotr Jura, a seasoned web developer and a passionate Udemy instructor. With years of experience in JavaScript, TypeScript, Node, PHP, MySQL, Vue, React, and more, I bring practical, real-world knowledge to my students.
## Courses
- [Master Nuxt 3 - Full-Stack Complete Guide](https://www.udemy.com/course/master-nuxt-full-stack-complete-guide/?referralCode=4EBA58BFBD39A31A9BE9)
- [Symfony 6 Framework Hands-On 2023](https://www.udemy.com/course/symfony-framework-hands-on/?referralCode=6750F64C057515A5F787)
- [Vue 3 Mastery: Firebase & More - Learn by Doing!](https://www.udemy.com/course/vuejs-course/?referralCode=26DAD96DAB47B4602DA3)
- [Master NestJS - Node.js Framework 2023](https://www.udemy.com/course/master-nestjs-the-javascript-nodejs-framework/?referralCode=C8A3F83982053A5E44C0)
- [Master Laravel with GraphQL, Vue.js, and Tailwind](https://www.udemy.com/course/master-laravel-with-graphql-vuejs-and-tailwind/?referralCode=CE3B5297B3614EFA884A)
- [Master Laravel, Vue 3 & Inertia Full Stack 2023](https://www.udemy.com/course/master-laravel-6-with-vuejs-fullstack-development/?referralCode=4A6CED7AA1583CB709D6)
- [Master Laravel 10 for Beginners & Intermediate 2023](https://www.udemy.com/course/laravel-beginner-fundamentals/?referralCode=E86A873AC47FB438D79C)
- [Symfony API Platform with React Full Stack Masterclass](https://www.udemy.com/course/symfony-api-platform-reactjs-full-stack-masterclass/?referralCode=D2C29D1C641BB0CDBCD4)
## Contact and Links
- **Blog:** [Fado Code Camp](https://fadocodecamp.com/)
- **LinkedIn:** [Follow Me on LinkedIn](https://www.linkedin.com/in/piotr-j-24250b257/)
- **GitHub:** You are here! Give me a follow!
- **Twitter:** [@piotr_jura](https://twitter.com/piotr_jura)
## Course Resources
Coming up!
---
<p align="center">
<strong>Explore, Learn, and Grow with My Comprehensive Web Development Courses!</strong>
</p>
| null | full-stack,fullstack,javascript,nuxt,nuxt3,tailwind,tailwindcss,udemy,udemy-course,udemy-course-project | 2023-07-29T16:15:13Z | 2023-11-25T11:27:29Z | null | 1 | 0 | 83 | 0 | 6 | 22 | null | null | Vue |
DoonOnthon/GamePulse | main | # GamePulse ๐ฎ๐
</br>
**NOT AS ACTIVE CODING MYSELF, I WILL TRY TO CHECK UP ON PULL REQUESTS AS MUCH AS TIME ALLOWS ME**</br>
**I'M VERY BUSY ATM.**

# Welcome
I hope to see some of you guys return and new contributors are always welcome!
Welcome to GamePulse, your go-to platform for discovering, exploring, and engaging with a curated collection of games! Whether you're an avid gamer or a casual player, GamePulse offers a user-friendly experience to help you stay connected with the pulse of gaming excitement. Let the gaming adventure begin! ๐ป๐
star โญ this repository (top right) so that you can keep up to date with recent contribution activity via your github feed
## Table of Contents
- [Introduction](#introduction)
- [Features](#features)
- [Short-Term Goals](#short-term-goals)
- [Long-Term Goals](#long-term-goals)
- [Contributing](#contributing)
- [Our Contributors](#our-contributors)
- [License](#license)
## Introduction
GamePulse is a web-based application that aims to provide gamers with an organized and comprehensive platform to discover and explore games based on various criteria such as categories, release dates, and sales numbers. Our goal is to create an inclusive community of gaming enthusiasts who can engage with their favorite games and share their experiences.
## Features
- **Game Categories**: Easily browse through games sorted by genres and categories, including action, adventure, RPG, puzzle, simulation, and more.
- **Release Date Sorting**: Stay up-to-date with the latest game releases or explore classic titles by sorting games based on their release dates.
- **Sales Numbers**: Get insights into the popularity of games with approximate sales numbers as of a specific date.
- **User-Friendly Interface**: The intuitive and user-friendly interface makes it simple to navigate and find your favorite games.
- **Search Functionality**: Quickly find specific games using the search bar.
- **Game Details**: Each game comes with detailed information, including descriptions, gameplay features, trailers, and user reviews.
- **Community Interaction**: Engage with fellow gamers through discussions, recommendations, and game reviews.
- **Short-Term and Long-Term Goals**: Our project has defined short-term and long-term goals to continuously improve the platform.
## Short-Term Goals
Our short-term goals for GamePulse include:
- Creating a simple list of games with essential details, such as categories, release dates, and sales numbers.
- Implementing a search functionality to enable users to find specific games easily.
- Designing an intuitive user interface for seamless navigation and discovery.
- Setting up basic community interaction features for users to share their thoughts on games.
## Long-Term Goals
Our long-term goals for GamePulse include:
- Introducing user accounts, enabling users to create profiles and save their favorite games.
- Implementing a user review system to gather valuable feedback and ratings for games.
- Expanding the game database to include a wider range of titles from different platforms and genres.
- Enhancing the community features, such as forums and social sharing, to foster a vibrant and active user community.
- Introducing multilingual support to make GamePulse accessible to users from various regions.
## Contributing
We really appreciate any contribution from the gaming community, and we warmly welcome everyone, including beginners. Whether you're an experienced developer or just starting your coding journey, there are various ways you can contribute to our project. If you can't code, don't worry; you can still make valuable contributions, such as fixing typos, adding comments to code, or suggesting new features. Your involvement helps make GamePulse a thriving hub for gaming enthusiasts.
To contribute, please follow these steps:
1. Fork the repository to your GitHub account.
2. Create a new branch with a descriptive name related to your contribution.
3. Make your changes and improvements.
4. Test your changes thoroughly to ensure they don't introduce any new issues.
5. Commit your changes with clear and concise commit messages.
6. Push your changes to your branch in your forked repository.
7. Create a pull request to the `main` branch of the GamePulse repository.
For more details, please refer to our [contribution guidelines](CONTRIBUTING.md).
## Our Contributors
Contribute to get on the list!
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/DoonOnthon">
<img src="https://github.com/DoonOnthon.png" width="100px;" alt="DoonOnthon"/><br />
<sub><b>DoonOnthon</b></sub>
</a>
<br />
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/harrydemorgan">
<img src="https://github.com/harrydemorgan.png" width="100px;" alt="harrydemorgan"/><br />
<sub><b>harrydemorgan</b></sub>
</a>
<br />
</td>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/doromi22">
<img src="https://github.com/doromi22.png" width="100px;" alt="doromi22"/><br />
<sub><b>doromi22</b></sub>
</a>
<br />
</td>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/AlexWolak">
<img src="https://github.com/AlexWolak.png" width="100px;" alt="AlexWolak"/><br />
<sub><b>AlexWolak</b></sub>
</a>
<br />
</td>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/tetawiah">
<img src="https://github.com/tetawiah.png" width="100px;" alt="tetawiah"/><br />
<sub><b>tetawiah</b></sub>
</a>
<br />
</td>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/AlandisAyupov">
<img src="https://github.com/AlandisAyupov.png" width="100px;" alt="AlandisAyupov"/><br />
<sub><b>AlandisAyupov</b></sub>
</a>
<br />
</td>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/IamSudhir-Kumar">
<img src="https://github.com/IamSudhir-Kumar.png" width="100px;" alt="AlandisAyupov"/><br />
<sub><b>IamSudhir-Kumar</b></sub>
</a>
<br />
</td>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/Omanshu209">
<img src="https://github.com/Omanshu209.png" width="100px;" alt="Omanshu209"/><br />
<sub><b>Omanshu209</b></sub>
</a>
<br />
</td>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/Legen32">
<img src="https://github.com/Legen32.png" width="100px;" alt="Legen32"/><br />
<sub><b>Legen32</b></sub>
</a>
<br />
</td>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/LilMaddy">
<img src="https://github.com/LilMaddy.png" width="100px;" alt="LilMaddy"/><br />
<sub><b>LilMaddy</b></sub>
</a>
<br />
</td>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/dalek63">
<img src="https://github.com/dalek63.png" width="100px;" alt="dalek63"/><br />
<sub><b>dalek63</b></sub>
</a>
<br />
</td>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/andre-franciosi">
<img src="https://github.com/andre-franciosi.png" width="100px;" alt="andre-franciosi"/><br />
<sub><b>andre-franciosi</b></sub>
</a>
<br />
</td>
<!-- Add more <td> elements for other contributors if needed -->
</tr>
<!-- Add more <tr> elements for additional rows if needed -->
</tbody>
</table>
**Note:** After contributing, if you wish to be featured on the GitHub README as a contributor, please add yourself to the list in the following format:
```html
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/YourGithubName">
<img src="https://github.com/YourGithubName.png" width="100px;" alt="YourGithubName"/><br />
<sub><b>YourGithubName</b></sub>
</a>
<br />
</td>
```
Replace YourGithubName in both the URL (https://github.com/YourGithubName) and image (https://github.com/YourGithubName.png) with your GitHub username. This ensures your inclusion as a contributor on our GitHub README. Thank you for your contributions to GamePulse! ๐ฎ๐
We appreciate the contributions of all developers who have helped make GamePulse a reality. If you're interested in contributing to this project, feel free to explore our [Contribution Guidelines](CONTRIBUTING.md) to get started.
## License
GamePulse is released under the [MIT License](LICENSE). Feel free to use, modify, and distribute the project in accordance with the terms specified in the license.
---
Join us on this exciting journey as we build a comprehensive gaming platform that fuels your passion for gaming and brings the gaming community together. Let's pulse with the heartbeat of gaming! ๐ฎ๐
#hashtags #goodfirstissue #beginnerfriendly #gaming #indiegames #gamersunite #gamecommunity
---
| GamePulse: Your gaming universe awaits! ๐ฎ๐ Browse, explore, and engage with games based on categories, release dates, and sales numbers. Join the gaming community at GamePulse and stay connected with the pulse of gaming excitement! ๐ป๐ | beginner-friendly,first-issue,gaming,good-first-issue,indie-games,javascript,jquery,php,game-discovery,contributions-welcome | 2023-08-01T11:33:42Z | 2024-03-26T15:55:33Z | null | 18 | 35 | 236 | 12 | 26 | 21 | null | MIT | PHP |
dmagda/pg-compute-node | main | [](https://twitter.com/DenisMagda)
# PgCompute: a Client-Side PostgreSQL Extension for Database Functions
PgCompute is a client-side PostgreSQL extension that lets you execute JavaScript functions on the database directly from the application logic.
This means you can create, optimize, and maintain database functions similarly to the rest of the application logic by using your preferred IDE and programming language.
## Quick Example
Imagine you have the following function in your Node.js app:
```javascript
function sum(a, b) {
let c = a + b;
return c;
}
```
Now, suppose you want this function to run on PostgreSQL. Simply pass it to the `PgCompute` API like this:
```javascript
const dbClient = // an instance of the node-postgres module's Client or Pool.
// Create and configure a PgCompute instance
let compute = new PgCompute();
await compute.init(dbClient);
// Execute the `sum` function on the database
let result = await compute.run(dbClient, sum, 1, 2);
console.log(result); // prints `3`
```
By default, PgCompute operates in `DeploymentMode.AUTO` mode. This mode ensures a JavaScript function is automatically deployed to the database if it doesn't exist. Additionally, if you modify the function's implementation in your source code, PgCompute will handle the redeployment.
**Note**: PgCompute relies on [plv8 extension](https://github.com/plv8/plv8) of PostgreSQL. This extension enables JavaScript support within the database and must be installed prior to using PgCompute.
## Getting Started
Follow this guide to create a functional example from scratch.
First, start a PostgreSQL instance with the plv8 extensions. Let's use Docker:
1. Start a Postgres instance with plv8:
```shell
mkdir ~/postgresql_data/
docker run --name postgresql \
-e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password \
-p 5432:5432 \
-v ~/postgresql_data/:/var/lib/postgresql/data -d sibedge/postgres-plv8
```
2. Connect to the database and enable the plv8 extension:
```shell
psql -h 127.0.0.1 -U postgres
create extension plv8;
```
Next, create a Node.js project:
1. Initialize the project:
```shell
npm init
```
2. Install the `pg` and `pg-compute` modules:
```shell
npm install pg
npm install pg-compute
```
Next, create the `index.js` file with the following logic:
1. Import node-postgres with PgCompute modules and create a database client configuration:
```javascript
const { Client, ClientConfig } = require("pg");
const { PgCompute } = require("pg-compute");
const dbEndpoint = {
host: "localhost",
port: 5432,
database: "postgres",
user: "postgres",
password: "password"
}
```
2. Add a function that needs to be executed on the Postgres side:
```javascript
function sum(a, b) {
let c = a + b;
return c;
}
```
3. Add the following snippet to instantiate `Client` and `PgCompute` objects and to execute the `sum` function on Postgres:
```javascript
(async () => {
// Open a database connection
const dbClient = new Client(dbEndpoint);
await dbClient.connect();
// Create and configure a PgCompute instance
let compute = new PgCompute();
await compute.init(dbClient);
let result = await compute.run(dbClient, sum, 1, 2);
console.log("Result:" + result);
await dbClient.end();
})();
```
4. Run the sample:
```shell
node index.js
// Result:3
```
Finally, give a try to the auto-redeployment feature:
1. Change the `sum` implementation as follows:
```javascript
function sum(a, b) {
return (a + b) * 10;
}
```
2. Restart the app, the function will be redeployed and a new result will be printed out to the terminal:
```shell
node index.js
// Result:30
```
## More Examples
Explore the `examples` folder for more code samples:
* `basic_samples.js` - comes with various small samples that show PgCompute capabilities.
* `savings_interest_sample.js` - calculates the monthly compound interest rate on the database end for all savings accounts. This is one of real-world scenarious when you should prefer using database functions.
* `manual_deployment_sample.js` - shows how to use the `DeploymentMode.MANUAL` mode. With that mode, the functions are pre-created manually on the database side but still can be invoked seamlessly from the application logic using PgCompute.
To start any example:
1. Import all required packages:
```shell
npm i
```
2. Start an example:
```shell
node {example_name.js}
```
**Note**, the examples include the PgCompute module from sources. If you'd like to run the examples as part of your own project, then import the module form the npm registry:
```javascript
const { PgCompute, DeploymentMode } = require("pg-compute");
```
## Testing
PgCompute uses Jest and Testcontainers for testing.
So, if you decide to contribute to the project:
* Make sure to put new tests under the `test` folder
* Do a test run after introducing any changes: `npm test`
[](https://twitter.com/DenisMagda)
| A client-side PostgreSQL extension that lets you execute JavaScript functions on the database directly from the application logic. | database,javascript,nodejs,postgresql | 2023-08-04T13:44:26Z | 2023-09-01T15:29:55Z | null | 1 | 0 | 30 | 5 | 1 | 21 | null | Apache-2.0 | JavaScript |
numandev1/github-emoji-extension | main | <div align="center">
<img src="media/readmeLogo.png" width="400"/>
</div>
<div align="center">
[](https://chrome.google.com/webstore/detail/ecldoejhjmekemajgjjalfgkhgmfjgcl)
[](https://github.com/numandev1/github-emoji-extension/stargazers)

</div>
<h3 align="center">Chrome extension for writing emojis in Github Issues/PR.</h3>
<p align="center">By this extension we can see emoji button on Githun <b>Markdown editor</b> where we can write emoji easily by this extension.</p>
<div align="center">
<img src="media/media.gif" />
</div>
## Made with
- <img src="https://img.icons8.com/?size=2x&id=t5K2CR8feVdX&format=png" width="18" height="18"/> Made with **[React 18](https://reactjs.org)**
- <img src="https://img.icons8.com/?size=2x&id=uJM6fQYqDaZK&format=png" width="18" height="18"/> Made with [TypeScript](https://www.typescriptlang.org/) Support!
- ๐ ๏ธ [Devtools](https://developer.chrome.com/docs/extensions/mv3/devtools/) supported
- <img src="https://img.icons8.com/?size=2x&id=nvw4LO3DfcyI&format=png" width="18" height="18"/> Using **[Webpack](https://webpack.js.org/)**
## โณ Installation
##### Install from Chrome Web Store
[](https://chrome.google.com/webstore/detail/ecldoejhjmekemajgjjalfgkhgmfjgcl)
#### Manual/Development
1. Check if your [Node.js](https://nodejs.org/) version is >= **16**.
2. Clone this repository.
3. Run `npm install` to install the dependencies.
4. Start the server by `yarn start` or `npm run start`
5. Load your extension on Chrome following:
1. Access `chrome://extensions/`
2. Check `Developer mode`
3. Click on `Load unpacked extension`
4. Select the `build` folder.
## Shortcut key
Macbook: `Cmd + '` or `ctrl + '`
Window: `ctrl + '`
### Would you like to support me?
<div align="center">
<a href="https://github.com/numandev1?tab=followers">
<img src="https://img.shields.io/github/followers/numandev1?label=Follow%20%40numandev1&style=social" height="36" />
</a>
</br>
<a href="https://twitter.com/numandev1/">
<img src="https://img.shields.io/twitter/follow/numandev1?label=Follow%20%40numandev1&style=social" height="36" />
</a>
</br>
<a href="https://www.youtube.com/@numandev?sub_confirmation=1"><img src="https://img.shields.io/youtube/channel/subscribers/UCYCUspfN7ZevgCj3W5GlFAw?style=social" height="36" /><a/>
</br>
<a href="https://www.buymeacoffee.com/numan.dev" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
</div>
#### Consider supporting with a โญ๏ธ [Star on GitHub](https://github.com/numandev1/github-emojis-extension/stargazers)
## Contribution Guide
1. Follow [Manual/Development](#manualdevelopment) steps
2. Install [Extensions Reloader](https://chrome.google.com/webstore/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid) extension
3. As the main code lives in `src/pages/Content` so whenever we change in this directory, we have to press [Extensions Reloader](https://chrome.google.com/webstore/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid)
4. After pressing [Extensions Reloader](https://chrome.google.com/webstore/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid), we have to reload GitHub page for reflecting changes
5. Make changes and make PR ๐
## Meta
Created by [Github@NumanDev1](https://github.com/numandev1?tab=followers)
| Github Emoji Chrome Extension ๐๐๐๐๐โค๐๐ | emoji,emojis,extension,extension-chrome,github,google-chrome-extension,react,reactjs,chrome,webstore | 2023-08-05T21:30:38Z | 2023-09-27T19:10:35Z | 2023-09-27T19:10:35Z | 1 | 5 | 57 | 0 | 0 | 20 | null | MIT | TypeScript |
devmahmud/react-frontend-dev-portfolio | main | <img width="80%" align="center" src="https://github.com/devmahmud/react-frontend-dev-portfolio/blob/main/demo/portfolio_mockup.png" alt="portfolio template mockup" /> <br/>
<img height="350px" align="right" src="https://github.com/devmahmud/react-frontend-dev-portfolio/blob/main/demo/mobile-demo.gif" alt="portfolio mobile demo gif"/>
<img align="left" src="https://github.com/leungwensen/svg-icon/blob/master/dist/svg/logos/react.svg" height="50" alt="react icon"/>
<h2>React Tailwind Portfolio Template</h2>
<pre>
โญ Easy to adapt and deploy portfolio project covering most important
sections(about, exp, skills, projects), inspired with solutions found
at GitHub. Check live preview(link below).
</pre>
<strong>:crown: advantages</strong>
<img src="https://img.shields.io/badge/-multilingual-blue" alt="multilingual"/> <img src="https://img.shields.io/badge/-mobile friendly-blue" alt="mobile friendly"/> <img src="https://img.shields.io/badge/-light/dark mode-blue" alt="light/dark mode"/> <img src="https://img.shields.io/badge/-json fetched data-blue" alt="json fetched data"/> <img src="https://img.shields.io/badge/-minimalistic-blue" alt="minimalistic"/> <img src="https://img.shields.io/badge/-expandable-blue" alt="expandable"/>
<br/>
<h3>:eye_speech_bubble: Live demo</h3>
Check live demonstration <a href="https://devmahmud.github.io/react-frontend-dev-portfolio/"><strong>here</strong></a>
<img width="100%" src="https://github.com/devmahmud/react-frontend-dev-portfolio/blob/main/demo/react_portfolio_about.png" alt="react frontend dev portfolio preview"/>
<h3>:books: Getting started</h3>
1. Clone or fork project.
2. Install required dependencies with `yarn install`.
3. Remove `homepage` entirely from `package.json` or set it to single dot.
```json
// package.json
{
"name": "react-frontend-dev-portfolio",
"homepage": "https://devmahmud.github.io/react-frontend-dev-portfolio/", <-- remove/edit this
"version": "0.1.0",
"private": true,
"dependencies": {
...
}
```
4. `yarn dev` project and customize it.
5. Deploy on github-pages using `yarn deploy` command.
<pre>
โ ๏ธ Note that:
- if you want to have portfolio on different repository than `{username}.github.io`,
set `homepage` in `package.json` to `https://{username}.github.io/{repository-name}/`
before deploying portfolio.
- You also need to change the `base` inside `vite.config.ts`
- if you want to run it locally with <strong>yarn dev</strong>, make sure that you have edited
homepage property or json data won't load.
</pre>
<h3>:star: Inspirations</h3>
<a href="https://github.com/tailwindlabs/tailwindcss">Tailwindcss</a> <br/>
<a href="https://github.com/stephane-monnot/react-vertical-timeline">React Vertical Timeline</a> <br/>
<a href="https://github.com/rcaferati/react-awesome-slider">React Awesome Slider</a> <br/>
<a href="https://github.com/markusenglund/react-switch">React Switch</a> <br/>
<a href="https://github.com/maxeth/react-type-animation">React Type Animation</a> <br/>
<a href="https://iconify.design/icon-sets/?query=angular">Iconify Design</a> <br/>
<h3>:gear: Contribution</h3>
If you have any suggestions on what to improve in <em>react-frontend-dev-portfolio</em> and would like to share them, feel free to leave an issue or fork project to implement your own ideas :slightly_smiling_face:
<h3>:gear: Credits(Source Code)</h3>
This project is complete rewrite of [Dorota1997/react-frontend-dev-portfolio](https://github.com/Dorota1997/react-frontend-dev-portfolio)
<h3>:camera: Credits(images)</h3>
<a href="https://pixabay.com/photos/people-woman-girl-clothing-eye-2563491/">p1</a>, <a href="https://pixabay.com/photos/dog-puppy-sharpei-petit-animal-1865712/">p2</a>, <a href="https://pixabay.com/photos/night-camera-photographer-photo-1927265/">p3</a>, <a href="https://pixabay.com/photos/road-forest-season-autumn-fall-1072823/">p4</a>, <a href="https://pixabay.com/photos/neuschwanstein-castle-bavaria-701732/">p5</a>, <a href="https://pixabay.com/photos/hohenschwangau-alps-alpsee-bavaria-532864/">p6</a>
| Easy to adapt and deploy React portfolio inspired with solutions found at GitHub. | dev-portfolio,frontend-portfolio,github-portfolio,html5,javascript,portfolio,portfolio-page,portfolio-template,react,react-portfolio-template | 2023-08-08T15:11:32Z | 2024-04-12T02:03:15Z | null | 1 | 4 | 26 | 0 | 6 | 19 | null | null | TypeScript |
prazivi/Real_State_FullStack | master | @author:- Pranav Gupta
# Homzy - A Real Estate Website

## Overview
Homzy is a real estate website that simplifies the process of buying and selling properties. It provides a user-friendly interface for property owners to list their properties and for potential buyers to search and view available properties. The website allows users to search for properties in any location and view surrounding areas to get a better understanding of the neighborhood. Additionally, users can like and add properties to their favorites list for future reference. To enhance security and provide a seamless authentication experience, Auth0 is used for both client-side and server-side authentication. The UI components are developed with Mantine to ensure a polished and responsive user interface.
## Key Features
- Property Search: Users can search for properties in any location using the search functionality. The website also provides the ability to view areas around a property on a map.
- Favorites List: Logged-in users can like properties and add them to their favorites list for easy access and comparison.
- User Authentication: Auth0 is integrated into the website to handle user authentication securely.
- Login and Signup: Users can create an account and log in to access additional features and save their preferences.
## Tech Stack
The project is built using the following technologies:
- React: A popular JavaScript library for building user interfaces.
- Node.js: A server-side JavaScript runtime environment.
- Express: A web application framework for Node.js, simplifying server-side development.
- MongoDB: A NoSQL database used for storing property and user data.
- Auth0: A third-party authentication service that handles user authentication for both the client-side and server-side.
- Mantine: A React component library providing UI components for a polished user interface.
## How to Run
To run Homzy on your computer, follow these steps:
1. Clone this repository to your local machine:
git clone https://github.com/prazivi/Homzy-Real-Estate.git
2. Navigate to the project directory:
cd Homzy-Real-Estate
3. Install the required dependencies for both the client and server sides:
cd client
npm install
cd ../server
npm install
4. Set up environment variables:
- For the server, create a `.env` file in the `server` directory and set the required variables for MongoDB connection and Auth0 credentials.
5. Start the development server for both the client and server sides:
cd client
npm start
cd ../server
npm start
6. Open your web browser and visit `http://localhost:3000` to access the Homzy website.
## Contributing
Contributions to this project are welcome. If you wish to contribute, please follow the standard GitHub workflow by creating pull requests and discussing any proposed changes via issues.
## Reporting Issues
If you encounter any issues while using the Homzy website or have any suggestions for improvement, please open an issue on the GitHub repository. Your feedback is valuable to us, and we will address any reported issues promptly.
| null | javascript,mongodb,react,webapp | 2023-07-29T08:37:59Z | 2023-09-06T17:26:48Z | null | 1 | 0 | 6 | 0 | 8 | 19 | null | null | JavaScript |
ThomasLeconte/vuetify3-dialog | master | # Vuetify 3 Dialog   
Lite Vue plugin working with Vuetify, allowing you to show dialogs or snackbars programatically.
> Inspired by [vuetify-dialog](https://www.npmjs.com/package/vuetify-dialog) (@yariksav)
## Summary
- [Installation](#install-it)
- [Usage](#usage)
- [Dialogs](#dialogs)
- [Snackbars](#snackbars)
- [Bottom sheets](#bottom-sheets)
- [SFC compatibility](#sfc-compatibility)
- [Developers](#developers)
## Install it
First, run `npm install vuetify3-dialog`.
**โ ๏ธYou must have Vuetify installed on your project. If you don't have installed yet, please follow this link : [Install Vuetify](https://vuetifyjs.com/en/getting-started/installation/)**
Then, install this plugin in your app entry point (main.js or main.ts) like following :
```js
//main.js
import { createApp } from 'vue'
import App from './App.vue'
import vuetifyInstance from './plugins/vuetify' //Or wherever you have your vuetify instance
import {Vuetify3Dialog} from 'vuetify3-dialog'
const app = createApp(App)
app.use(Vuetify3Dialog, {
vuetify: vuetifyInstance, //You must pass your vuetify instance as an option
defaults: {
//You can pass default options for dialogs, dialog's card, snackbars or bottom-sheets here
}
})
app.mount('#app')
```
## Usage
You can now use the plugin in your components. There is two main variable available in all your project : `$dialog` and `$notify`. Each of them have methods to create full personalized dialogs or snackbars, and other ones to create simple dialogs or snackbars with a message and a title, by precizing level of severity. Let's see how to use them.
### Dialogs
You can create a fully personalized dialog with the following method :
```js
this.$dialog.create({
title: "My title",
text: "My dialog message",
buttons: [
{ title: 'My first button', key: 'button1', /* any v-btn api option */ },
...
],
cardOptions: {
//any v-card api options
},
dialogOptions: {
//any v-dialog api options
}
}).then((anwser) => {
//Do something with the anwser corresponding to the key of the clicked button
})
```
<br>
<hr>
#### **NEW (V1.4.0)**
You can pass a custom component to render inside the dialog, with it props binded! Here's how to do it :
```js
this.$dialog.create({
..., //other options
customComponent: {
component: MyCustomComponent,
props: { myComponentProp: 'Hello world!' }
},
}).then(() => {
})
```
> [!WARNING]
> โ If you declare a persistent dialog option, take care that your component emit a `closeDialog` event when you want to close it.
<hr>
<br>
`this.$dialog` also have a `confirm` method, which is a shortcut for the previous method with only two buttons : "Yes" and "No".
```js
this.$dialog.confirm({title: "My title", text: "My dialog message", cancelText: "No", confirmationText: "Yes", cancelButtonOptions: ..., confirmationButtonOptions: ...})
.then((anwser) => {
//Do something with the boolean anwser
})
```
You can also create a simple dialog with a message and a title, by precizing level of severity :
```js
this.$dialog.info({
title: "My title",
text: "My dialog message",
cardOptions: ...,
buttonOptions: ...
}).then(() => {
//Do something when the user close the dialog
})
```
There is 4 levels of severity : `info`, `success`, `warning` and `error`.
__Usefull links:__
- [v-card api](https://vuetifyjs.com/en/api/v-card/)
- [v-dialog api](https://vuetifyjs.com/en/api/v-dialog/)
### Snackbars
You can create a fully personalized snackbar with the following method :
```js
//message, timeout, level, variant, rounded, position
this.$notify.create({
text: "My snackbar message",
level: 'success',
location: 'top right',
notifyOptions: {
//any v-snackbar api options
}
})
.then(() => {
//Do something with the anwser corresponding to the key of the clicked button
})
```
You can also create a simple snackbar with a message and a title, by precizing level of severity :
```js
this.$notify.info(
"My snackbar message",
{ variant: 'outlined' } // any v-snackbar api options
).then(() => {
//Do something when the user close the snackbar
})
```
There is 4 levels of severity : `info`, `success`, `warning` and `error`.
__Usefull links:__
- [v-snackbar api](https://vuetifyjs.com/en/api/v-snackbar/)
### Bottom sheets
> [!WARNING]
> โ This feature requires Vuetify 3.4.0 or higher
You can create a fully personalized bottom sheet with a contained list or a card dialog. **To stay consistent, these two features cannot be used at same time.**
Here is an example with a list :
```js
this.$bottomSheet.create({
title: "My title",
text: "My bottom sheet message",
bottomSheetOptions: {
// any v-bottom-sheet api options
},
items: [
{ title: "Item 1", value: "item1", ... /* any v-list-item api option */ },
{ title: "Item 2", value: "item2" },
{ title: "Item 3", value: "item3" }
]
}).then((anwser) => {
//Do something with the anwser corresponding to the value of the clicked item
})
```
Here is an example with a card :
```js
this.$bottomSheet.create({
bottomSheetOptions: {
// any v-bottom-sheet api options
},
dialogOptions: {
//same arguments as $dialog.create()
title: "My bottom-sheet card dialog",
text: "Hello world!",
buttons: [
{ title: 'My first button', key: 'button1', /* any v-btn api option */ },
...
]
}
}).then((anwser) => {
//Do something with the anwser corresponding to the key of the clicked button
})
```
### SFC compatibility
If you want to use this plugin in an SFC component, some methods are available. Working principe is the same as previous methods, and arguments are the same.
```html
<script setup>
import { createDialog, warnDialog, confirmDialog } from 'vuetify3-dialog'
import { createNotification, notifySuccess } from 'vuetify3-dialog'
import { createBottomSheet } from 'vuetify3-dialog'
if(true){
createDialog({ title: "My title", text: "My dialog message" })
.then((anwser) => {
//Do something with the anwser corresponding to the key of the clicked button
})
notifySuccess("My snackbar message").then(() => {})
createBottomSheet({ title: "My bottomsheet title", text: "My bottomsheet message" })
.then(() => {})
}
</script>
```
## Developers
If you want to contribute to this project, you can clone it and run `npm install` to install dependencies.
Then, you need to test your changes. A demo project is located at `cypress/test-server` of this repository. You can launch it with `npm run test-server`.
If you have the following error : <span style="color: #e74c3c">[vite] Internal server error: Failed to resolve entry for package "vuetify3-dialog". The package may have incorrect main/module/exports specified in its package.json.</span>, make sure you have run `npm run build` before to build the plugin and make it available for the demo project.
Finally, when you will have finish your changes, make sure all tests are passing with `npm run test`, thanks in advance !
| Vue 3 & Vuetify 3 plugin to create dialogs (confirm, warn, error), toasts or bottom-sheets with Promises anwsers. | dialogs,javascript,notify,toasts,vuejs,vuetify | 2023-08-02T19:05:31Z | 2024-05-15T09:44:29Z | 2023-10-26T12:32:32Z | 3 | 8 | 80 | 2 | 4 | 19 | null | MIT | TypeScript |
uthsobcb/ongkon | main | # Ongkon
## Paint App but in Web
### Ongkon means Drawing in Bangla
It's yet another Paint app but in Web. You can draw freehanded. You can choose or pick planty of colour and draw with it, save your drawing.

## Features
- **Canvas Drawing:** The app offers a canvas where users can draw using various tools, such as a pen, brush, and eraser.
- **Color Selection:** Users can choose from a wide range of colors to use in their drawings.

- **Brush Size:** The app allows users to adjust the brush size, enabling them to create intricate details or broader strokes.
- **Clear Canvas:** A "Clear" button is available to clear the canvas and start fresh.
- **Save Canvas:** A "Save" button is available for save youur creation.
## Upcoming
- ~~Mobile/ Touch screen Support~~
- Real time Colaborative
- ~~Shape Support~~
## Technologies Used
The Drawing Web App is built using the following technologies:
- **HTML:** For creating the basic structure of the web app.
- **CSS:** To style the user interface and make it visually appealing.
- **JavaScript:** To implement the drawing functionalities and handle user interactions.
## How to Use
1. Visit the web app's URL ([Live Link](https://uthsobcb.github.io/ongkon/)) using a web browser.
2. You will be presented with a canvas area and a toolbar with drawing options.
3. Select a color from the color palette.
4. Choose a brush size using the provided slider.
5. Start drawing on the canvas using your mouse or touch input (for touch-enabled devices).
6. If you want to start over, click the "Clear" button to erase everything on the canvas.
7. Save your masterpiece by site inbuilt function for save known as: "Save" button.
## Limitations
It's not complete yet. Still shape is under development and strokes are not perfect. I'm working on it. Feel free to contribute and help me to make it happen.
## Installation
As the Drawing Web App is a client-side application, there is no installation required. Simply access the web app using a modern web browser that supports HTML5, CSS3, and JavaScript.
## Development
If you are interested in contributing to the development of the Drawing Web App or extending its features, follow these steps:
1. Clone the repository: `git clone https://github.com/uthsobcb/ongkon.git`
2. Navigate to the project directory: `cd ongkon`
3. Make changes and improvements as needed.
4. Test your changes locally by opening `index.html` in a web browser.
5. Commit your changes: `git commit -m "Your commit message"`
6. Push to your repository: `git push origin main`
7. Create a pull request to the main repository for review.
---
Live Demo Video: https://youtu.be/d5ZIL4PH6X8
Happy drawing! The Project name picked from Bangla word Ongkon. It means drawing. Let your creativity flow, and have fun creating amazing artworks with the Ongkon! If you encounter any issues or have suggestions for improvements, please feel free to open an issue on the project repository.
| Whiteboard Painting App | canvas,hacktoberfest,javascript,paint-application,whiteboard,hacktoberfest-accepted | 2023-07-26T10:11:58Z | 2024-01-21T17:04:35Z | null | 4 | 3 | 33 | 6 | 3 | 18 | null | null | JavaScript |
ab-noori/Data-Structures-and-Algorithms | main | # Data-Structures-and-Algorithms
This repository features daily solutions for Algorithm and Data Structure problems, employing various programming languages and presenting diverse approaches to problem-solving.
## Algorithms & Data Structures:
### ๐ Ruby
- ๐น Practice
- 1
- 2
- ๐ Problem solving
- [Graph](./problem-solving-rb/graph.rb)
- [Hash Table](./problem-solving-rb/hash_table)
- [Is it a binary tree](./problem-solving-rb/is-it-a-binary-search-tree.rb)
- [Compare Triplets](./problem-solving-rb/compare_triplets)
- [Array of Array Products](./problem-solving-rb/array_of_array_products.rb)
### ๐ JavaScript
- ๐น Practice
- [Linked List](practice-js/linked-list/LinkedList.js)
- ๐ Problem solving
- [Graph](./problem-solving-js/graph.js)
- [Hash Table](./problem-solving-js/hashTable.js)
- [Is it a binary tree](./problem-solving-js/is-it-a-binary-search-tree.js)
- [Compare Triplets](./problem-solving-js/compareTriplets.js)
- [Array of Array Products](./problem-solving-js/arrayOfArrayProducts.js)
- <details>
<summary>Longest Common Prefix</summary>
<a href="./problem-solving-js/longestCommonPrefix.js">Solution</a>
<details>
<summary>Description</summary>
<img alt="Longest Common Prefix" src="./problem-solving-js/Longest Common Prefix.PNG" width="auto"/>
</details>
</details>
- <details>
<summary>Unique Number of Occurrences</summary>
<a href="./problem-solving-js/uniqueOccurrences.js">Solution</a>
<details>
<summary>Description</summary>
<img alt="Longest Common Prefix" src="./problem-solving-js/Unique Number of Occurrences.PNG" width="auto"/>
</details>
</details>
| This repository features daily solutions for Algorithm and Data Structure problems, employing various programming languages and presenting diverse approaches to problem-solving. | algorithms,data-structures,data-structures-and-algorithms,javascript,ruby | 2023-07-24T19:38:56Z | 2023-11-28T20:26:00Z | null | 1 | 0 | 98 | 0 | 0 | 18 | null | MIT | JavaScript |
Omar95-A/Website-Project-3 | main | # Website Project 3
> A Website Called `AK Website` Is A Platform to Sell Digital Products Online But It Is More Advanced And Bigger Than Website Project 2. I used HTML, CSS, Icon library from Font Awesome and normalize.css v8.0.1 its A modern, HTML5-ready alternative to CSS resets. Normalize.css makes browsers render all elements more consistently and in line with modern standards.
### Project In Progress
#### To try the website: [Demo](https://omar95-a.github.io/Website-Project-3/).
---
#### To be clear, the photos on this website are of people do not exist. They are not real, it's from a site that offers photos of fake people AI generated. The names are also fake names.
#### Special Thanks To [Osama Elzero](https://elzero.org/category/courses/html-and-css-practice/).
| A Website Called 'AK Website' Is A Platform to Sell Digital Products Online But It Is More Advanced And Bigger Than Website Project 2. To be clear, the images in this website are of people that do not exist. They are not real, they are from a site that offers images of fake people AI generated. The names are also fake names. | css,css3,html,html5,javascript,jquery,platform,responsive-web-design,sass,website | 2023-07-21T08:50:53Z | 2023-09-21T13:45:26Z | null | 1 | 0 | 90 | 0 | 4 | 18 | null | null | CSS |
JenilGajjar20/Competitive-Programming_problems | master | # Competitive Programming Problems
Welcome To Competitive Programming Problems Repository! It Contains A Collection Of Problems From Platforms Like **CodeChef**, **LeetCode** and **HackerRank**, Which Are Solved By Our Contributors ! This Repository Was A Part Of **Hacktoberfest 2023**.
## Hacktoberfest Contribution ๐
This repository participated in [**Hacktoberfest 2023**](https://hacktoberfest.com/), a month-long celebration of open-source software!
Hacktoberfest was an excellent opportunity for developers to contribute to open-source projects.
To all our contributors, a big thank you! Your contributions have made this repository a valuable resource for programmers around the world. ๐
As we move forward, we'd like to share our appreciation and encourage everyone to keep the spirit of open source alive. Feel free to explore the problems, provide feedback, and share your insights with the community.
Here Is The Contributing Guidelines: [Contributing Guidelines](https://github.com/JenilGajjar20/Competitive-Programming_problems/blob/master/CONTRIBUTING.md)
Happy Coding! ๐
## Introduction ๐
Competitive Programming Is A Great Way To Improve **Problem-Solving Skills** And **Algorithmic Thinking**. This Repository Serves As Both A Personal Log Of My Problem-Solving Journey And A Resource For Others Who Are Interested In Learning From My Solutions.
Feel Free To Explore The Different Problem Categories And Check Out The Solutions Provided. I Hope You Find Them Helpful And Educational.
## Problem Categories ๐
The Problems In This Repository Are Categorized Based On The Following Programming Language :-
| Sr. No. | Languages Added |
| ------- | --------------- |
| 1 | C++ |
| 2 | Java |
| 3 | Python |
| 4 | JavaScript |
## Solutions ๐
In This Section, You Can Find Solutions To The Problems Organized By The Problem's Name. Each Problem's Folder Contains The Following Files:-
[Suppose You Are Working In C++ Language]
- `problem.md`: A Description Of The Problem Statement.
- `solution.cpp`: My Solution To The Problem In A Well-Commented Code.
**You Should Create A Folder By The Name Of The Programming Language You Are Using.**
**Note**: Feel Free To Open Issues Or Pull Requests If You Spot Any Mistakes Or Have Better Solutions To The Problems. Constructive Feedback Is Always Welcome!
## Contributors โจ
<p align="center">
<a href="https://github.com/JenilGajjar20/Competitive-Programming_problems/graphs/contributors">
<img src="https://contrib.rocks/image?repo=JenilGajjar20/Competitive-Programming_problems" />
</a>
</p>
| This repository contains a collection of problems from platforms like CodeChef, LeetCode, HackerRank, etc, which are solved by our contributors. | cpp,hacktoberfest,hacktoberfest-2023,competitive-programming,hackerrank,leetcode,python,hacktoberfest-accepted,java,javascript | 2023-08-01T14:02:11Z | 2024-01-20T10:30:27Z | null | 47 | 147 | 480 | 1 | 60 | 18 | null | null | C++ |
Aryainguz/Euphoria-Check-PERMA-Meter-Express | main | ๐ EuphoriaCheck - A Modern PERMA Meter ๐
A powerful tool to help you assess and improve your well-being! This web application, built using Express and Node.js, measures your happiness and life satisfaction based on the PERMA model of well-being by psychologist Dr Martin Seligman.
With personalized insights, users gain a comprehensive breakdown of their PERMA scores, identifying areas for personal growth and well-being enhancement.
Users recieves a personalized note on email that helps them set their targets and improve on specific score so they keep on evolving
## Key Features:
๐ Happiness Assessment
๐ Personalized Insights
๐ฏ Goal Setting
Feel free to contribute! ๐โจ
View Web App here : https://euphoria-check-perma-meter-express.vercel.app/
## Getting Started
To run this application on your local machine, follow the steps below:
### 1. Fork the Repository
Fork the repository on GitHub by clicking the "Fork" button on the top right of the repository page. This creates a copy of the repository under your GitHub account.
### 2. Clone the Forked Repository
Clone your forked repository to your local machine using the following command:
```bash
git clone git@github.com:your-username/Euphoria-Check-PERMA-Meter-Express.git
```
### 3. Navigate to the Project Directory
Change into the project directory using the following command:
```bash
cd Euphoria-Check-PERMA-Meter-Express
```
### 4. Install Dependencies
Install the project dependencies by running the following command:
```bash
npm install
```
### 5. Run the Application
```bash
npm start
```
### That's it application will start on localhost:3000
# โจ Contributors
<a href="https://github.com/Aryainguz/Euphoria-Check-PERMA-Meter-Express/graphs/contributors">
<img src="https://contrib.rocks/image?repo=Aryainguz/Euphoria-Check-PERMA-Meter-Express" />
</a>
| ๐ EuphoriaCheck - A Modern PERMA Meter. This web application, built using Express and Node.js, measures your happiness and life satisfaction based on the PERMA model of well-being by psychologist Dr Martin Seligman. | expressjs,nodejs,sendgrid,sendgrid-api,vercel,javascript | 2023-07-30T20:33:13Z | 2024-02-22T04:21:15Z | null | 15 | 25 | 101 | 23 | 22 | 18 | null | MIT | EJS |
sylv/atlas | main | <p align="center">
<img src="./assets/alternatives/pride_transparent_500x500_lq.png" height="256" width="256" />
</p>
<p align="center">
<img src="https://skillicons.dev/icons?i=next,tailwind,nest,rust,typescript,docker,kubernetes,graphql" />
<br/>
<a href="https://atlas.bot/support"><kbd>๐ต discord</kbd></a> <a href="https://atlas.bot"><kbd>๐ฃ website</kbd></a>
</p>
# atlas
> [!NOTE]
> Atlas is not and will never be self-hostable. If that's what you're here for, you're out of luck.
> [!WARNING]
> This repo is missing some parts of the bot, but over time most will be added.
A Discord bot to unlock your creativity and unify your community.
## how
`pandora` connects to Discord and caches data from events, then dumps them into a nats queue. `bot` consumes those events and processes them. When the worker needs cached info, it talks to `pandora` over gRPC, in production through `eridium` so it can talk to the right `pandora` instance. When the worker needs to send data to Discord, it uses the `elpis` library which goes through a proxy service handling ratelimiting aross the whole bot.
The GraphQL API `api` for the dashboard `web` both talk to `pandora` over gRPC for cached data and in the future, some realtime capabiltiies.
libraries or services with links are open source. the rest are *currently* closed source, but may be open sourced in the future.
### services
- `api` - the GraphQL API for the dashboard
- `bot` - the worker service that consumes events from `pandora` and processes them using `elpis`
- `eridium` - a grpc proxy that takes requests from `bot` and sends them to the `pandora` instance that has the relevant cache
- `pandora` - the gateway service that connects to Discord and caches data
- `web` - the dashboard
### libraries
- [colour](./packages/colour) - colour utilities and presets
- [configs](./packages/configs) - eslint and tsconfig files
- [core](./packages/core) - reusable generic utilities used in many places, including the web
- [discord-utilities](./packages/discord-utilities) - utilities for Discord, closely tied to elpis but can run in browsers
- [emoji](./packages/emoji) - emoji sheets and utilities for dealing with ~~an abomination~~ emojis
- [parsers](./packages/parsers) - does this need an explanation? numbers, booleans, time - dealing with humans is hard.
- [razorback](./packages/razorback) - an experimental reimplementation of our scripting language `pella`
- `common` - [core](./packages/core) but specific to server-side code.
- `elpis` - wraps discords API and pulls from pandora for cached data instead of having its own cache. also handles ratelimiting through a proxy.
- `pella` - our custom scripting language.
- `logging` - wraps pino and makes it easier to reuse.
| A Discord bot to unlock your creativity. | atlas,discord,discord-bot,docker,hacktoberfest,javascript,nodejs,rust,typescript,atlas-bot | 2023-08-05T13:33:54Z | 2024-05-22T23:18:05Z | null | 4 | 13 | 56 | 0 | 2 | 18 | null | AGPL-3.0 | TypeScript |
markschellhas/chic.js | master | # About Chic.js
Chic.js is a rapid prototyping tool for Sveltekit. Use the CLI to scaffold your app quickly, and focus on the fun stuff.
๐บ Watch a walkthrough video by [Svelte Safari](https://www.youtube.com/@SvelteSafari) here: https://www.youtube.com/watch?v=AZdUtR4GYtE
# Getting started
## Installation
`npm install -g chic.js`
## Usage
1. Create a new Sveltekit app with `chic new MyApp`
2. Change into your app directory with `cd MyApp`
3. Use the `chic make` command to scaffold views, models, routes & API endpoints for a new resource. For example: `chic make Book title:string author:string about:text`, will create a Book resource with all the views, model and controllers need for CRUD operations on your resource.
4. Run the development server with `chic s`
5. And voila! You have a working app with a Book resource.
## Routes
Chic.js adds a `/routes` endpoint to your app, which shows all the routes in your app - for example API endpoints for your resources created by Chic.js. This is useful for debugging and development. To hide the `/routes` endpoint in production, set `CHIC_DEBUG=OFF` in your `.env` file.
## Chic commands
| Command | Description |
| --- | --- |
| `chic --help` | Displays help information about Chic.js commands |
| `chic --version` | Displays the current version of Chic.js |
| `chic new GuitarStore` | Creates a new Sveltekit app, called `GuitarStore` |
| `chic new GuitarStore styled with tailwind` | Creates a new Sveltekit app, called `GuitarStore`, with Tailwind CSS styling framework. Options currently available: `bootstrap`, `tailwind` and `bulma` |
| `chic make Guitar name:string type:string description:text` | Creates pages, API routes, model and form components for CRUD operations on the `Guitar` resource |
| `chic add /about` | Creates an "About" page in the `src/routes` directory |
| `chic add ContactForm` | Creates a `ContactForm.svelte` component in the `src/lib/components` directory |
| `chic sitemap [domain name]` | Creates a sitemap (note: build your project locally first before running this command) |
| `chic s` | Runs the development server |
| `chic debug status` | Shows the status of `CHIC_DEBUG` in your `.env` file |
| `chic debug ON` | Sets `CHIC_DEBUG` value to `ON`. When `ON`, the routes endpoint will be active |
| `chic debug OFF` | Sets `CHIC_DEBUG` value to `OFF`. When `OFF`, the routes endpoint will be inactive | | Rapid prototyping CLI tool for Sveltekit apps. | cli,scaffolding-tool,sveltekit,javascript | 2023-07-27T11:43:55Z | 2024-03-04T18:06:19Z | 2024-03-04T18:06:19Z | 1 | 4 | 55 | 0 | 0 | 17 | null | MIT | JavaScript |
ItzNesbroDev/netflyer | main | # NetFlyer: Free + Ad-Free Movie/Series Streaming Platform
NetFlyer is a free and ad-free movie/series streaming platform. Anyone can use the code, but attribution is appreciated.
### NOTE: I'm completely re-working on the site so if you get any bugs/issues please open a issue
### NOTE: This Website's Style is only responsive on small devices, if you are a expert in css please help me by restyling and creating pull requests
## Setup
1. Clone the repository:
```bash
git clone https://github.com/ItzNesbroDev/netflyer.git
```
2. Install dependencies using yarn:
```bash
yarn install
```
Or npm:
```bash
npm install
```
3. Create a `.env` file based on `.env.example` or rename it and fill in your own values. You can obtain Firebase and TMDB API keys by following these steps:
### Firebase Configuration
- Go to the [Firebase Console](https://console.firebase.google.com/).
- Create a new project or select an existing one.
- Navigate to Project Settings > General.
- Under Your apps, click on the Web app (</>) icon to register a new app.
- Copy the config object's values into your `.env` file.
### TMDB API Key
- Go to the [TMDB website](https://www.themoviedb.org/).
- Sign up or log in to your account.
- Navigate to Account Settings > API.
- Request an API key if you don't have one already.
- Copy your API key into your `.env` file.
4. Start the development server:
```bash
yarn dev
```
Or npm:
```bash
npm run dev
```
5. Open your browser and navigate to [http://localhost:5173](http://localhost:5173) to view the application.
## Contribution
Feel free to fork and contribute to this project. If you have any ideas, bug fixes, or feature requests, please open an issue or submit a pull request.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
Happy streaming! ๐ฟ๐ฌ
| Simple Netflix Like Ui Free Movie/Series Streaming Platform. | free,javascript,letterboxd,movies,streaming,watch-movie-free,free-streaming-platform,watch-series,open-source,ad-free | 2023-08-08T15:05:27Z | 2024-05-17T06:47:37Z | null | 1 | 57 | 242 | 1 | 15 | 17 | null | MIT | JavaScript |
Hunt3r0x/zWATCHER | main | # zWATCHER
zWATCHER is a simple bash script that allows you to monitor a sub/domain or a list of sub/domains or java script files for changes in status codes and content length. If any changes are detected, it will notify you.
# [](https://twitter.com/71ntr) [](https://www.linkedin.com/in/71ntr/)
## Features
- Monitor a single sub/domain or a list of sub/domains for changes.
- Monitor a JS "java script" files for changes.
- Compare HTTP status codes and content length to detect changes.
- You can use any [httpx](https://github.com/projectdiscovery/httpx/releases) tool flag in comparing and changes.
- Notify the user when changes are detected.
- Specify the scan interval in seconds.
- Save scan results to an output file.
## Prerequisites
- `httpx`: Make sure you have `httpx` installed. You can install it using `go` or use the pre-built binary from the following link: [httpx](https://github.com/projectdiscovery/httpx/releases).
- `notify`: Make sure you have `notify` installed. You can install it using `go` or use the pre-built binary from the following link: [notify](https://github.com/projectdiscovery/notify).
## Usage
```bash
Usage: zwatcher.sh [OPTIONS]
Options:
-u <domain or URL> Specify a single domain to scan
-l <list of domains> Specify a file containing a list of domains to scan
-s <interval> Specify the scan interval in seconds
-n <notify-id> Specify the notification ID
-o <output file> Specify the output file to save scan results
-h Display this help message
httpx-flags
-sc response status-code
-cl response content-length
-title http title
you can all httpx flags in zwatcher
Example:
./zwatcher.sh -u x.com -s 60 -o out.txt -mc 200 -sc -title -n notifyid
./zwatcher.sh -u x.com/script.js -s 60 -o out.txt -mc 200 -sc -title -n notifyid
```
## Examples
1. Monitor a single domain with a scan interval of 60 seconds and save the results to `scanresults.txt`:
```bash
./zwatcher.sh -u example.com -s 60 -o scanresults.txt
```
1. Monitor a list of domains from a file called `domains.txt` with a scan interval of 120 seconds and save the results to `scanresults.txt`:
```bash
./zwatcher.sh -l domains.txt -s 120 -o scanresults.txt
```
### Examples for javascript files
1. Monitor a list of js files in list called `js-urls.txt` with a scan interval of 120 seconds and save the results to `scanresults.txt`:
```bash
./zwatcher.sh -l js-urls.txt -s 120 -o scanresults.txt
```
1. Monitor one js file `https://hackerone/scripts/admin.js` with a scan interval of 120 seconds and save the results to `scanresults.txt`:
```bash
./zwatcher.sh -u https://hackerone/scripts/admin.js -s 120 -o scanresults.txt
```
## Notifications
zwatcher can notify you when changes are detected. To enable notifications, you need to have the `notify` command installed, which allows sending notifications to the desktop.
The `notify` command can be installed using the following command:
```arduino
go install -v github.com/projectdiscovery/notify/cmd/notify@latest
```
After installing `notify`, you can specify the notification ID "from notify config file" using the `-n` flag:
```bash
./zwatcher.sh -u example.com -s 60 -o scanresults.txt -n mynotifyid
```
When changes are detected, zwatcher will send a notification with notify.
## Notes
- If the output file (`o` flag) does not exist, zwatcher will create it when the first scan is completed.
- If you specify a file containing a list of domains (`l` flag), zwatcher will continuously scan each domain in the list with the specified scan interval.
## Disclaimer
This tool is for educational and monitoring purposes only. Use it responsibly and only on domains you have permission to scan. The author is not responsible for any misuse or damage caused by this script.
| "zwatcher is a lightweight bash script for monitoring sub/domains or a list of sub/domains and javascript files. It compares HTTP status codes and content length to detect changes and notifies the user when any modifications occur. Easily keep track of your domains' health and security with zwatcher." | bugbounty,bugbountytips,bughunting,cybersecurity,hacking,information-gathering,javascript,monitoring,recon,redteaming | 2023-08-02T05:38:22Z | 2024-01-20T19:03:11Z | null | 1 | 0 | 269 | 0 | 2 | 16 | null | null | Shell |
HichemTab-tech/EasyCaptchaJS | master | # EasyCaptchaJS
**EasyCaptchaJS** is a lightweight and user-friendly jQuery/JS library that simplifies the integration of Google reCAPTCHA API into web pages. With EasyCaptchaJS, developers can effortlessly add the security and anti-bot protection of reCAPTCHA to their web applications, enhancing their overall security and user experience.
## Table of Contents
- [EasyCaptchaJS](#easycaptchajs)
- [Table of Contents](#table-of-contents)
- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [npm](#npm)
- [CDN](#cdn)
- [Local Download](#local-download)
- [Usage](#usage)
- [Auto rendering](#auto-rendering)
- [Examples](#examples)
- [Example 1: Auto Rendering with Data Attributes and okbtn Selector](#example-1-auto-rendering-with-data-attributes-and-okbtn-selector)
- [Example 2: Initializing EasyCaptchaJs with Options Object](#example-2-initializing-easycaptchajs-with-options-object)
- [Example 3: Initializing EasyCaptchaJs on Multiple Targets with Customized Messages](#example-3-initializing-easycaptchajs-on-multiple-targets-with-customized-messages)
- [Options](#options)
- [1- Options object](#1--options-object)
- [2- Options attributes](#2--options-attributes)
- [Methods](#methods)
- [Demo](#demo)
- [Contributing](#contributing)
- [Authors](#authors)
- [License](#license)
## Features
- Easy integration of Google reCAPTCHA API into web pages.
- Dynamically imports the required reCAPTCHA API script for seamless usage.
- Provides customizable success, failure, and expired event callbacks for reCAPTCHA submissions.
- Enables simple verification of reCAPTCHA responses and retrieval of reCAPTCHA tokens.
- Automatic initiation of reCAPTCHA when using the data-auto-easycaptcha attribute.
## Requirements
To use the EasyCaptchaJS jQuery Plugin, you need the following dependencies:
- jQuery (minimum version 3.7.0)
- Bootstrap (minimum version 4.x) *optional*
You can include these dependencies in your HTML file via CDN or by downloading the files locally.
## Installation
To use the EasyCaptchaJS Plugin in your project, you can include the necessary files via npm, CDN or by downloading the files locally.
### npm
You can install EasyCaptchaJS via npm:
```bash
npm install easycaptchajs
```
### CDN
You can also include EasyCaptchaJS directly from a CDN by adding the following script tag to your HTML file:
```HTML
<script src="https://cdn.jsdelivr.net/gh/HichemTab-tech/EasyCaptchaJS@1.2.1/dist/easycaptcha.min.js"></script>
```
### Local Download
If you prefer to host the library locally, you can download the latest release from the source code and include it in your project:
```HTML
<script src="path/to/easycaptcha.min.js"></script>
```
## Usage
EasyCaptchaJS can be easily initialized on target elements using jQuery. The library supports two methods of providing options:
- __Using Object Options__:
```HTML
<div id="targetElement"></div>
```
```javascript
const options = {
ReCAPTCHA_API_KEY_CLIENT: 'YOUR_RECAPTCHA_SITE_KEY',
// Add other options here
};
// Initialize EasyCaptchaJS with options
$('YOUR_TARGET_ELEMENT_SELECTOR').EasyCaptcha(options);
```
- __Using Data Attributes__:
```HTML
<div data-recaptcha-apikey="GOOGLE_RECAPTCHA_API_KEY_CLIENT"
data-theme="dark"
data-okbtn-selector="#submitBtn"
data-required-msg-example-selector="#errorMsgExample"
data-loading-msg-example-selector="#loadingMsgExample"
data-error-msg-example-selector="#errorMsgExample"
></div>
```
```javascript
$('YOUR_TARGET_ELEMENT_SELECTOR').EasyCaptcha();
```
#### Auto rendering
you can skip initializing the EasyCaptchaJS by adding the `data-auto-easycaptcha` to the targetElement so the library will render everything automatically after the page load with any js code.
in this case you need to add the GOOGLE_RECAPTCHA_API_KEY_CLIENT in a meta tag in `<head>` like the following example :
```HTML
<head>
<title>EasyCaptchaJs Demo</title>
...
<meta name="ReCAPTCHA_API_KEY_CLIENT" content="GOOGLE_RECAPTCHA_API_KEY_CLIENT">
</head>
```
## Examples
### Example 1: Auto Rendering with Data Attributes and okbtn Selector
- Create an HTML file (index.html):
```HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>EasyCaptchaJs - Example 1</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<meta name="ReCAPTCHA_API_KEY_CLIENT" content="YOUR_RECAPTCHA_SITE_KEY">
</head>
<body>
<form>
<div class="container">
<h1>EasyCaptchaJs</h1>
<label class="label">Hi</label>
<div class="form-group">
<div class="captchaTarget" data-auto-easycaptcha data-okbtn-selector="#ok"></div>
</div>
<div class="form-group">
<button type="button" class="btn btn-primary" id="ok">OK</button>
</div>
</div>
</form>
<script src="https://code.jquery.com/jquery-3.7.0.min.js" integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g=" crossorigin="anonymous"></script>
<script src="dist/easycaptcha.js"></script>
</body>
</html>
```
- Replace 'YOUR_RECAPTCHA_SITE_KEY' with your actual Google reCAPTCHA site key.
- Save the HTML file and open it in your web browser.
- The form will display a Google reCAPTCHA checkbox. When users complete the reCAPTCHA verification, the "OK" button will become enabled, allowing them to proceed with form submission.
This example demonstrates the auto-rendering capability of EasyCaptchaJs using data attributes. By adding the data-auto-easycaptcha attribute to the target element, the library automatically renders the Google reCAPTCHA checkbox without the need for additional JavaScript initialization.
#### Features:
- **Auto Rendering**: The Google reCAPTCHA checkbox is automatically rendered for the element with the class `"captchaTarget"` due to the presence of the `data-auto-easycaptcha` attribute. The library handles the integration of the reCAPTCHA API script and initialization process.
- **okbtn handler**: The "OK" button is *disabled* by default and becomes *enabled* only when users successfully complete the reCAPTCHA verification. The `data-okbtn-selector` attribute is used to associate the "OK" button with EasyCaptchaJs. When the reCAPTCHA is verified, the button becomes clickable, allowing users to proceed with form submission, also when the verification expires or fails the button will be disabled again.
This example showcases the simplicity of adding Google reCAPTCHA to a form with just a few data attributes. It provides a user-friendly approach to ensure that only human interactions are allowed in the form submission process.
### Example 2: Initializing EasyCaptchaJs with Options Object
This example demonstrates how to initialize EasyCaptchaJs using the options object and target a specific element by its ID for reCAPTCHA integration.
```HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>EasyCaptchaJs - Example 2</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<meta name="ReCAPTCHA_API_KEY_CLIENT" content="YOUR_RECAPTCHA_SITE_KEY">
</head>
<body>
<form>
<div class="container">
<h1>EasyCaptchaJs - Example 2</h1>
<label class="label">Hi</label>
<div class="form-group">
<div id="myCaptcha"></div>
</div>
<div class="form-group">
<button type="button" class="btn btn-primary" id="okBtn">OK</button>
</div>
</div>
</form>
<script src="https://code.jquery.com/jquery-3.7.0.min.js" integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g=" crossorigin="anonymous"></script>
<script src="dist/easycaptcha.js"></script>
<script>
// JavaScript
const options = {
ReCAPTCHA_API_KEY_CLIENT: 'YOUR_RECAPTCHA_SITE_KEY',
ReCaptchaSubmit: {
success: () => {
console.log('reCAPTCHA verification successful!');
},
failed: () => {
console.log('reCAPTCHA verification failed!');
},
expired: () => {
console.log('reCAPTCHA verification expired!');
},
},
autoVerification: {
okBtn: "#okBtn",
requiredMsg: "<div class='alert alert-danger'>Please verify that you are not a robot.</div>",
},
apiScriptLoading: {
error: () => {
console.log('Error while loading API script.');
},
},
};
// Initialize EasyCaptchaJs with options object and target element by ID
$('#myCaptcha').EasyCaptcha(options);
</script>
</body>
</html>
```
#### Features:
- **Options Object**: The EasyCaptchaJs instance is initialized using the options object, which allows developers to customize various aspects of the reCAPTCHA and EasyCaptchaJs behavior.
- **ID Selector**: The target element with the ID "myCaptcha" is selected for EasyCaptchaJs initialization.
### Example 3: Initializing EasyCaptchaJs on Multiple Targets with Customized Messages
In this example, we will showcase how to initialize EasyCaptchaJs on multiple targets using the shared class name for initialization. Additionally, we will customize messages in two ways: using the options object and using attributes with predefined elements.
```HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>EasyCaptchaJs - Example 3</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<meta name="ReCAPTCHA_API_KEY_CLIENT" content="YOUR_RECAPTCHA_SITE_KEY">
</head>
<body>
<form>
<div class="container">
<h1>EasyCaptchaJs - Example 3</h1>
<div class="form-group">
<div class="captchaTarget" data-okbtn-selector="#okBtn1"></div>
</div>
<div class="form-group">
<button type="button" class="btn btn-primary" id="okBtn1">OK</button>
</div>
<div class="form-group">
<div class="captchaTarget" data-okbtn-selector="#okBtn2"
data-required-msg-example-selector="#msg2"></div>
</div>
<div class="form-group">
<button type="button" class="btn btn-primary" id="okBtn2">OK</button>
</div>
</div>
<div class='alert alert-danger hidden' id="msg1">Please check the box above!</div>
<div class='alert alert-danger hidden' id="msg2">Don't forget to verify!</div>
</form>
<script src="https://code.jquery.com/jquery-3.7.0.min.js" integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g=" crossorigin="anonymous"></script>
<script src="dist/easycaptcha.js"></script>
</body>
</html>
```
```javascript
// JavaScript
const options = {
ReCAPTCHA_API_KEY_CLIENT: 'YOUR_RECAPTCHA_SITE_KEY',
ReCaptchaSubmit: {
success: () => {
console.log('reCAPTCHA verification successful!');
},
failed: () => {
console.log('reCAPTCHA verification failed!');
},
expired: () => {
console.log('reCAPTCHA verification expired!');
},
},
autoVerification: {
requiredMsg: $("#msg1"),
},
apiScriptLoading: {
loadingMsg: '<div class="spinner-border text-warning" role="status"></div>',
error: () => {
console.log('Error while loading API script.');
},
errorMsg: "<div class='alert alert-danger'>Custom Error while loading API Script. <b class='retry-load-api-script clickable'>retry</b></div>",
},
};
// Initialize EasyCaptchaJs on multiple targets with the shared class name "captchaTarget"
$('.captchaTarget').EasyCaptcha(options);
```
#### Features:
- **Multiple Targets**: EasyCaptchaJs is initialized on multiple targets with the shared class name "captchaTarget."
- **Customized Messages**: We customize the required message and error message using both the options object and attributes. This example demonstrates two methods for customizing messages: directly through the options object and by creating predefined elements and setting their selectors as attributes.
*Note: the attributes data overrider the options object data.*
In this example, two captcha targets are selected using the shared class name "captchaTarget." The first captcha target uses customized messages directly through the options object, while the second captcha target utilizes predefined elements with customized messages using attributes.
The customized messages enhance the user experience and provide developers with flexible options to tailor the EasyCaptchaJs behavior according to their specific requirements.
## Options
### 1- Options object
| **Option** | **Type** | **Default** | **Description** |
|------------------------------------|------------------|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| **`ReCAPTCHA_API_KEY_CLIENT`** | String | `null` | The Google reCAPTCHA site key to be used for verification. Replace `null` with your actual Google reCAPTCHA site key. |
| **`ReCaptchaSubmit.success`** | Function | `() => {}` | The function to be executed when the reCAPTCHA verification is successful. |
| **`ReCaptchaSubmit.failed`** | Function | `(error) => {}` | The function to be executed when the reCAPTCHA verification fails. |
| **`ReCaptchaSubmit.expired`** | Function | `() => {}` | The function to be executed when the reCAPTCHA verification expires. |
| **`autoVerification.okBtn`** | String \| Jquery | `null` | The selector of the "OK" button that should be enabled or disabled based on the reCAPTCHA verification state. Set it to `null` if not required. |
| **`autoVerification.requiredMsg`** | String \| Jquery | `'<div class='alert alert-danger'>Please verify that you are not a robot.</div>'` | The message to be displayed when the user has not completed the reCAPTCHA verification. |
| **`apiScriptLoading.loadingMsg`** | String \| Jquery | `'<div class="spinner-border text-primary" role="status"></div>'` | The loading message displayed while the API script is being loaded. |
| **`apiScriptLoading.error`** | Function | `() => {}` | The function to be executed if an error occurs while loading the API script. |
| **`apiScriptLoading.errorMsg`** | String \| Jquery | `'<div class='alert alert-danger'>Error while loading Api Script. <b class='retry-load-api-script clickable'>retry</b></div>'` | The error message to be displayed when there is an error loading the API script. It includes a "retry" button for users to attempt reloading. |
| **`theme`** | String | `'light'` | The theme to be used for the Google reCAPTCHA widget. Supported values are `'light'` and `'dark'`. |
| **`failure`** | Function | `(error) => { console.error(error); }` | The function to be executed when any failure occurs within EasyCaptchaJs. It is mainly used for error logging and handling. |
Here's a preview of default options :
```javascript
let options = {
ReCAPTCHA_API_KEY_CLIENT: null,
ReCaptchaSubmit: {
success: () => {
},
failed: () => {
},
expired: () => {
},
},
autoVerification: {
okBtn: null,
requiredMsg: "<div class='alert alert-danger'>Please verify that you are not a robot.</div>",
},
apiScriptLoading: {
loadingMsg: '<div class="spinner-border text-primary" role="status"></div>',
error: () => {
},
errorMsg: "<div class='alert alert-danger'>Error while loading Api Script. <b class='retry-load-api-script clickable'>retry</b></div>",
},
theme: 'light',
failure: (error) => {
console.error(error);
}
};
```
### 2- Options attributes
| **Data Attribute** | **Description** | **Example Usage** |
|--------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------|
| `data-okbtn-selector` | The selector of the "OK" button that should be enabled or disabled based on the reCAPTCHA verification state. remove it if not required. | `data-okbtn-selector="#myOKButton"` |
| `data-recaptcha-apikey` | The Google reCAPTCHA site key to be used for verification. | `data-recaptcha-apikey="YOUR_RECAPTCHA_SITE_KEY"` |
| `data-required-msg-example-selector` | The selector of an example element that contains the custom message to be displayed when the user has not completed the reCAPTCHA verification. It should have class 'hidden' initially. | `data-required-msg-example-selector="#msg1"` |
| `data-loading-msg-example-selector` | The selector of an example element that contains the custom loading message to be displayed while the API script is being loaded. It should have class 'hidden' initially. | `data-loading-msg-example-selector="#loadingMsgExample"` |
| `data-error-msg-example-selector` | The selector of an example element that contains the custom error message to be displayed when there is an error loading the API script. It should have class 'hidden' initially. The error message should include a clickable element with class `'retry-load-api-script'`. | `data-error-msg-example-selector="#errorMsgExample"` |
| `data-theme` | The theme to be used for the Google reCAPTCHA widget. Supported values are `'light'` and `'dark'`. | `data-theme="dark"` |
| `data-auto-easycatcha` | If you add this attribute you don't need to initialize the library with js, it will be initialized automatically right after the page loads | `data-auto-easycaptcha` |
## Methods
EasyCaptchaJs provides some methods that can be called on the EasyCaptcha elements using the $().EasyCaptcha('methodName') syntax. Each method performs a specific action and returns the results in a structured format. Here are the available methods and their return types:
- **'verify'** : This method is used to verify the reCAPTCHA checkbox status. It returns an array of verification results containing objects with the following properties:
| **Property** | **Type** | **Description** |
|---------------------|----------|------------------------------------------------------------------------|
| **`parentElement`** | JQuery | The parent element of the EasyCaptcha checkbox. |
| **`verified`** | Boolean | A boolean indicating whether the reCAPTCHA checkbox has been verified. |
- **'response'** : This method is used to get the reCAPTCHA response token. It returns an array of response results containing objects with the following properties:
| **Property** | **Type** | **Description** |
|---------------------|----------|-------------------------------------------------|
| **`parentElement`** | JQuery | The parent element of the EasyCaptcha checkbox. |
| **`token`** | String | The reCAPTCHA response token as a string. |
- **'reset'** : This method is used to reset the reCAPTCHA checkbox. It takes no arguments and does not return anything.
- **'destroy'** : This method is used to destroy the EasyCaptcha elements and remove their associated data. It does not return anything.
*Note:* The library function EasyCaptcha at the end returns either the array of results if there are multiple results, or a single result object if there is only one result. If no results are available, it returns `null`.
## Demo
Here's a Demo example :
[Demo](https://hichemtab-tech.github.io/EasyCaptchaJs)
## Contributing
Contributions are always welcome!
If you have any ideas, improvements, or bug fixes, please [open an issue](https://github.com/HichemTab-tech/EasyCaptchaJs/issues) or [submit a pull request](https://github.com/HichemTab-tech/EasyCaptchaJs/pulls).
## Authors
- [@HichemTab-tech](https://www.github.com/HichemTab-tech)
## License
[MIT](https://github.com/HichemTab-tech/EasyCaptchaJs/blob/master/LICENSE)
| EasyCaptchaJS is a lightweight and user-friendly jQuery/JS library that simplifies the integration of Google reCAPTCHA API into web pages. With EasyCaptchaJS, developers can effortlessly add the security and anti-bot protection of reCAPTCHA to their web applications, enhancing their overall security and user experience. | auto-captcha,captcha,captcha-generator,front-end,google-recaptcha,google-recaptcha-v2,javascript,javascript-library,jquery,jquery-plugin | 2023-07-27T18:05:06Z | 2023-09-01T00:43:25Z | 2023-09-01T00:43:25Z | 1 | 0 | 20 | 0 | 1 | 16 | null | MIT | JavaScript |
fabiospampinato/safex | master | null | A language for writing safe expressions, in a tiny subset of JavaScript. | expression,filter,get,language,read,safe,javascript | 2023-07-23T13:39:50Z | 2024-04-05T00:09:42Z | null | 1 | 0 | 16 | 0 | 0 | 16 | null | MIT | JavaScript |
abhiXsliet/webDevelopment-Bootcamp | main | # Web-Development-Bootcamp

Welcome to the [CodeHelp MERN Stack Web Development Bootcamp!](https://www.thecodehelp.in/course/web-development-bootcamp)
This README.md file provides an overview of the bootcamp and highlights the various about my learning during bootcamp, mini and major projects we've built together.
## About the Bootcamp
The CodeHelp MERN Stack Web Development Bootcamp is an intensive program designed to equip aspiring web developers with the skills and knowledge required to build modern, full-stack web applications. Throughout the bootcamp, we have focused on the MERN (MongoDB, Express.js, React, and Node.js) stack, a popular and powerful combination for developing robust web applications.
## Bootcamp Highlights
### 1. Mini Projects
During the bootcamp, we have undertaken several mini projects to reinforce the concepts and technologies covered in the lectures and workshops. These mini projects allowed us to apply our knowledge and gain hands-on experience with various aspects of web development.
Some of the mini projects we've built include:
- Weather Application
- Dev Detective App
- Blogging Platform
- E-commerce Product Showcase
### 2. Major Projects
The major projects were the pinnacle of our bootcamp journey. These projects challenged us to collaborate, plan, and implement complex web applications that showcased our proficiency in the MERN stack.
- E-Learning Platform: An interactive e-learning platform where students access courses, track progress, and engage with instructors. Instructors have a dedicated dashboard for course management, and the admin oversees platform operations. Join us for a transformative learning experience!
## Bootcamp Resources
Throughout the bootcamp, we were provided with a wealth of resources to enhance our learning experience. These resources included:
- Comprehensive Lecture Materials: Well-structured and detailed lecture notes covering each topic of the MERN stack.
- Code Samples: Sample code for reference and practice.
- External Learning Resources: Suggested readings, tutorials, and articles to deepen our understanding.
## Collaborative Learning
The CodeHelp bootcamp emphasized a collaborative learning environment. We were encouraged to engage in discussions, ask questions, and seek help from both instructors and fellow learners. This collaborative approach fostered a supportive community, enabling us to learn from each other and grow as developers.
## Conclusion
The [CodeHelp MERN Stack Web Development Bootcamp](https://www.thecodehelp.in/course/web-development-bootcamp) has been an incredible journey of learning and growth. We have built a solid foundation in the MERN stack and gained valuable experience working on real-world projects. Our time together in this bootcamp will undoubtedly serve as a stepping stone for our future endeavors in web development.
Thank you to all the instructors, mentors, and fellow learners for making this bootcamp a remarkable experience!
Happy Coding! ๐ | "Explore the CodeHelp MERN Stack Web Development Bootcamp journey, featuring an array of mini and major projects and valuable learning experiences." | css,css-framework,html-css-javascript,html5,javascript,javascript-library,node-js,nodejs,react,react-hooks | 2023-08-04T20:41:59Z | 2023-08-05T19:10:17Z | null | 1 | 1 | 15 | 0 | 1 | 16 | null | MIT | JavaScript |
SinghLokesh02/Javasrcipt | main | # JavaScript Core Concepts Code Repository
<p align="center">
<img src="https://source.unsplash.com/random/?coding,web-development" alt="C Logo" width="400" height="400">
</p>
Welcome to the **JavaScript Core Concepts Code Repository**! This repository serves as your comprehensive guide to learning and mastering the fundamental concepts of JavaScript, the versatile and widely used programming language for building dynamic and interactive web applications.
## Table of Contents
- [Introduction to JavaScript](#introduction-to-javascript)
- [Getting Started](#getting-started)
- [Core Concepts Covered](#core-concepts-covered)
- [Key Code Examples](#key-code-examples)
- [Contributing](#contributing)
## Introduction to JavaScript
JavaScript is a high-level, dynamically typed programming language that allows you to add interactivity, manipulate the DOM, and create dynamic content on websites. It is an essential skill for web developers and enables you to build powerful and engaging web applications.
## Getting Started
To get started with the JavaScript Core Concepts Code Repository, follow these steps:
1. Clone this repository to your local machine using the following command:
```
git clone git@github.com:SinghLokesh02/Javasrcipt.git
```
2. Explore the code files to learn and experiment with core JavaScript concepts.
## Core Concepts Covered
In this repository, you'll find code examples and explanations covering the following core concepts of JavaScript:
- Variables and Data Types
- Operators and Expressions
- Control Flow (if statements, loops)
- Functions and Scope
- Objects and Object-Oriented Programming
- Arrays and Array Methods
- DOM Manipulation and Events
## Key Code Examples
Dive into practical code examples that illustrate how to implement key JavaScript concepts. Some of the examples included in this repository are:
- **Creating a Simple To-Do List**: Learn how to manipulate the DOM and handle user input to create an interactive to-do list.
- **Calculating Fibonacci Series**: Explore a function that generates Fibonacci numbers and learn about recursion.
- **Object-Oriented JavaScript**: Discover how to define classes, create objects, and work with prototypes to implement object-oriented programming principles.
## Contributing
Your contributions to this repository are highly valued! If you have improvements, new examples, or corrections, please consider submitting a pull request. Before you start contributing, please read the [Contributing Guidelines](CONTRIBUTING.md) for a smooth collaboration process.
Happy coding!
| The reposiory Consists of all the basics of the javasrcipt and DOM manipulation. | basic-learning,concept,dom-manipulation,functional-programming,javascript | 2023-07-25T10:11:11Z | 2024-03-11T00:58:12Z | null | 1 | 0 | 54 | 0 | 0 | 16 | null | null | JavaScript |
phrazhola/YourChatGptReactApp | main | # Build Your ChatGPT
Welcome!
YourChatGPT is a versatile AI chatbot solution that harnesses the capabilities of the ChatGPT API. Crafted to simplify your journey, it enables you to create a tailored ChatGPT clone effortlessly.
https://github.com/phrazhola/YourChatGptBackendService/assets/60248040/997e75c4-440c-48ca-bc86-14a773412a52
Feel free to visit our website to explore a comprehensive introduction and experience a demo of the sample Chatbot in action: [Build Your Own ChatGPT](https://build-your-chatgpt.azurewebsites.net)
**Backend package**: https://github.com/phrazhola/YourChatGptBackendService
## Highlights
- **Structured Code:** The codebase is well-organized, making it easy to understand and customize for different styles and use cases.
- **Extensible API:** The API is designed with extensibility in mind, offering flexibility for future enhancements.
- **Scalability:** The architecture supports scalability, with a clear separation between the frontend UI and backend API.
- **Plug-and-Play:** The solution is ready to use, requiring only API key setup.
- **Security First:** The system prioritizes security by ensuring your OpenAI API key remains secure on the client side.
# Setup
There are only two things you need to setup :
- Google Login API onboarding
- Backend application endpoint
## Google Login API
1. **Create a Project in Google Cloud Console**:
- Go to the [Google Cloud Console](https://console.cloud.google.com/).
- Create a new project or select an existing one.
2. **Enable Google APIs**:
- In the Google Cloud Console, navigate to the "APIs & Services" > "Library" section.
- Search for and enable the "Google+ API" or "Google Identity Platform API". This depends on your requirements.
3. **Create OAuth Client ID**:
- In the Google Cloud Console, navigate to "APIs & Services" > "Credentials" section.
- Click on the "Create Credentials" button and select "OAuth client ID".
- Choose "Web application" as the application type.
- Enter authorized JavaScript origins (your website's URLs) and redirect URIs (where Google will redirect after authentication).
4. **Retrieve Client ID and Secret**:
- After creating the OAuth client ID, you will get a client ID and client secret. Keep these secure.
5. **Setup client ID as the environment variable**
- Set up environment variables using the `.env` files or in the environment where you deploy your code and then access it by `process.env.YOUR_KEY`.
## Backend application endpoint
- Build and deploy your backend package by whatever options you want, setup the endpoint and specify it as environment variable or in the `/src/common/constants.ts` file.
| YourChatGPT is a versatile AI chatbot solution that harnesses the capabilities of the ChatGPT API. Crafted to simplify your journey, it enables you to create a tailored ChatGPT clone effortlessly. | aichatbot,aichatgpt,chatbot,chatbotai,chatgpt,chatgpt-app,chatgpt-bot,chatgpt-clone,chatgpt-ui,free | 2023-08-08T03:28:22Z | 2023-08-21T02:46:58Z | null | 1 | 0 | 7 | 0 | 4 | 16 | null | MIT | JavaScript |
peter-kimanzi/Super-Mario | master | # Super-Mario
Super Mario landing page using JavaScript
## Live link
https://peter-kimanzi.github.io/Super-Mario/
## Screenshots


| Super Mario landing page using JavaScript | css3,html-css-javascript,html5,javascript,javascript-library | 2023-07-25T05:42:04Z | 2023-08-11T23:18:47Z | null | 1 | 0 | 32 | 0 | 0 | 15 | null | null | CSS |
symfony/ux-toggle-password | 2.x | # Symfony UX TogglePassword
Symfony UX TogglePassword is a Symfony bundle providing visibility toggle for password inputs
in Symfony Forms. It is part of [the Symfony UX initiative](https://symfony.com/ux).
It allows visitors to switch the type of password field to text and vice versa.
**This repository is a READ-ONLY sub-tree split**. See
https://github.com/symfony/ux to create issues or submit pull requests.
## Sponsor
The Symfony UX packages are [backed][1] by [Mercure.rocks][2].
Create real-time experiences in minutes! Mercure.rocks provides a realtime API service
that is tightly integrated with Symfony: create UIs that update in live with UX Turbo,
send notifications with the Notifier component, expose async APIs with API Platform and
create low level stuffs with the Mercure component. We maintain and scale the complex
infrastructure for you!
Help Symfony by [sponsoring][3] its development!
## Resources
- [Documentation](https://symfony.com/bundles/ux-toggle-password/current/index.html)
- [Report issues](https://github.com/symfony/ux/issues) and
[send Pull Requests](https://github.com/symfony/ux/pulls)
in the [main Symfony UX repository](https://github.com/symfony/ux)
[1]: https://symfony.com/backers
[2]: https://mercure.rocks
[3]: https://symfony.com/sponsor
| Toggle visibility of password inputs for Symfony Forms | javascript,symfony,symfony-ux,ux | 2023-08-01T05:46:59Z | 2024-04-19T06:36:45Z | null | 10 | 0 | 15 | 0 | 1 | 15 | null | MIT | PHP |
junter-dev/junter | main | 
# Junter
[](https://junter.dev)

[](LICENSE)

Where minimal JSON blueprints become maximal HTML masterpieces ๐
---
Junter provides a robust mechanism to convert JSON data directly into structured HTML elements.
Designed for professional developers, it optimizes the workflow for constructing advanced web interfaces.
Table Of Contents:
<!-- TOC -->
* [Introduction](#introduction)
* [Understanding the Problem](#understanding-the-problem)
* [The Junter Solution](#the-junter-solution)
* [Comparison](#comparison)
* [Documentation](#documentation)
* [Overview](#overview)
* [Installation](#installation)
* [Initialization](#initialization)
* [Transformation](#transformation)
* [JSON to HTML](#json-to-html)
* [Conceptions](#conceptions)
* [Props](#props)
* [Content](#content)
* [Multiple content](#multiple-content)
* [Components](#components)
* [Aliases](#aliases)
* [Slots](#slots)
* [Locale](#locale)
* [Props](#props-1)
* [Style](#style)
* [Alias](#alias)
* [Best practices](#best-practices)
* [Structure Your Components](#structure-your-components)
* [Leverage Junter's Features](#leverage-junters-features)
* [Be Mindful of Performance](#be-mindful-of-performance)
* [Future Directions and Research Opportunities](#future-directions-and-research-opportunities)
* [Server-side Rendering (SSR)](#server-side-rendering-ssr)
* [Integration with Other Libraries](#integration-with-other-libraries)
* [SSR](#ssr)
* [Features](#features)
* [gRPC interface](#grpc-interface)
* [Component Registration](#component-registration)
* [API Methods](#api-methods)
* [Database Flexibility](#database-flexibility)
* [Monitoring with Prometheus](#monitoring-with-prometheus)
* [Kubernetes-ready](#kubernetes-ready)
* [How to run the Service](#how-to-run-the-service)
* [Locally](#locally)
* [Docker](#docker)
* [Configuration](#configuration)
* [Proto contract details](#proto-contract-details)
* [Code of conduct](#code-of-conduct)
* [Filling issues](#filling-issues)
* [FAQ](#faq)
* [Team](#team)
* [License](#license)
<!-- TOC -->
# Introduction
As the internet has evolved, so has the complexity of web applications. We've
shifted from static HTML pages to dynamic, interactive web applications that rival
the complexity and capability of traditional desktop applications. This evolution
has brought about numerous tools, libraries, and frameworks to make this
transition smoother and more efficient.
One standard tool in a web developer's arsenal is JavaScript Object Notation
(JSON). This lightweight data-interchange format is accessible for humans to read
and write and easy for machines to parse and generate. JSON's simplicity and
universality have made it an essential tool in many applications.
However, new challenges arise as we push the boundaries of what web applications
can do. One such challenge is the transformation of JSON data into user interface
elements. This process, which involves mapping JSON objects to HTML elements
and their attributes, can be cumbersome and error-prone.
This is where the Junter library comes in. This innovative library has been
developed to offer a systematic and efficient way of transforming JSON data into
HTML, eliminating much of the manual effort in this process.
# Understanding the Problem
As a starting point, let's understand the specific problem Junter aims to solve.
Imagine you are building a web application that retrieves data from a remote
server. The data is received in JSON format and needs to be rendered as HTML to
be presented to the user.
The traditional approach to this problem would involve parsing the JSON data,
manually creating HTML elements, setting their attributes, and appending them to
the DOM. This process can quickly become complex and messy, particularly for
deeply nested JSON data or applications with many UI elements.
This approach also needs to lend itself better to creating reusable UI components.
In modern web development, the ability to define components once and then use
them throughout an application is incredibly valuable. It promotes maintainability,
reusability, and consistency.
# The Junter Solution
Junter is a library designed specifically for transforming JSON data into HTML. It
provides a clean and straightforward API that renders JSON data as HTML
painless and efficient.
With Junter, you can define a mapping between JSON objects and HTML elements
once and reuse this mapping as often as needed. This way, you can easily create
complex HTML structures from JSON data and ensure consistency across your
application.
Junter supports the creation of reusable components, which can be defined once
and then used throughout an application. This feature brings the powerful concept
of component-based development to rendering JSON as HTML.
# Comparison
Within the web development sector, Junter stands out as a pioneering library. By
addressing the intricate challenge of converting JSON to HTML, and introducing
versatile functionalities such as aliases, slots, props, localization, and embedded styles,
Junter achieves robust compatibility across server and client environments.
This breakthrough positions Junter as a catalyst for industry advancement, setting new
benchmarks for efficiency and innovation.
| Feature | Feature Description | Junter | JSON2HTML | JSONx |
|--------------------------|------------------------------------------------------------------------------|--------|-----------|-------|
| Alias Support (Aliaโs) | Ability to define and use custom aliases in transformations. | โ
| โ | โ |
| Slots | Define placeholders within components to be filled with content. | โ
| โ | โ |
| Localization (Locales) | Support for multiple languages, allowing easy translation of the UI. | โ
| โ | โ |
| Styling Options (Styles) | Embed CSS styles within your JSON data for a more cohesive rendering. | โ
| โ | โ |
| Node & Browser Support | Operate seamlessly in both server (Node) and client (Browser) environments. | โ
| โ | โ |
Legend:
* โ
- Supported
* โ - Not Supported
This table demonstrates that Junter has a significant advantage over its competitors in
several key areas.
# Documentation
## Overview
In this section, we're going to delve into how to use Junter effectively. To do this, we will
first go over how to set up and initialize Junter in your project. Next, we will discuss each
of the primary features of Junter in-depth, explaining how they work, why they are
useful, and how to use them in your applications.
## Installation
Getting started with Junter is simple. The library is available as a JavaScript module and
can be imported directly into your project:
For browser:
```html{4}
<script src="https://cdn.jsdelivr.net/npm/@junter.dev/junter-browser" />
```
or
```html{4}
npm i @junter.dev/junter-browser
```
For Node.js
```shell{4}
npm i @junter.dev/junter-node
```
## Initialization
You then instantiate Junter by creating a new object:
For browser:
```js
const junter = new Junter.Junter();
```
For Node.JS:
```js
import { Junter } from 'junter'
const junter = new Junter();
```
This junter object is the starting point for transforming JSON data into HTML.
Check out the documentation for the [transformation](/transformation).
# Transformation
The core feature of Junter is transforming JSON data into HTML. This is done using the ```.render()``` method. You pass in a JSON object, and Junter returns the corresponding HTML.
## JSON to HTML
For instance, let's say we have a simple JSON object that represents a paragraph:
**Input**
```js{4}
const json = { "p": "Hello, world!" }
// You can transform this JSON into HTML as follows
const html = junter.render(json)
```
**Output**
```html
<p>Hello, world!</p>
```
# Conceptions
Let's get acquainted with the basic concepts
## Props
Props provide a means to specify attributes for your HTML elements.
Through props, you can define things like class names, IDs, and other typical HTML attributes.
```js
const junter = new Junter();
junter.render({ "div": {
"props": {
"class": "block"
}
}})
```
```html
<div class="block"></div>
```
In the example above, a new instance of Junter is created.
We then render a `div` element and specify its `class` attribute using the props key.
## Content
The Content feature allows users to define what's inside the HTML element.
This could be text, other HTML elements, or even a combination of both.
```js
const junter = new Junter();
junter.render({ "div": {
"props": {
"class": "block"
},
"content": 'Block'
}
})
```
```html
<div class="block">Block</div>
```
Here, not only have we defined a 'class' attribute for our 'div' element through props,
but we've also specified its inner content using the content key. If you don't specifically provide
a "content" key for an element, Junter intelligently interprets all non-"props" key-value pairs as potential content.
```js
const junter = new Junter();
junter.render({ "main": {
"props": {
"class": "main"
},
"header": {},
"div": {},
"footer": {}
}})
```
```html
<main class="main">
<header></header>
<div></div>
<footer></footer>
</main>
```
Here, the main tag is provided a class of "main".
The other key-value pairs (header, div, and footer) are not specifically assigned content,
so Junter defaults them as nested elements within the main tag.
For those instances where you need a quick and straightforward rendering without
the complications of properties or attributes, Junter accommodates this with direct value assignment.
```js
junter.render({ "div": 'Block'})
```
```html
<div>Block</div>
```
This is a testament to Junter's intuitive design.
By directly pairing an element (div in this case) with a string,
Junter understands it as the content for that element, rendering it seamlessly without needing further configurations.
## Multiple content
With Junter, seamlessly rendering multiple content items, especially those housed in data arrays,
becomes effortless. The following sections provide insights into the flexibility Junter offers in this context.
If your goal is to render several elements of the same type with different content, Junter can directly interpret arrays:
```js
junter.render({ "div": {
"p": ['Hello!', 'Hi!', 1]
}})
```
```html
<div>
<p>Hello!</p>
<p>Hi!</p>
<p>1</p>
</div>
```
The aforementioned code efficiently instructs Junter to create multiple paragraph elements within a div tag,
each populated with the respective items from the array.
When elements sourced from a data array need specific attributes or properties,
Junter allows you to set these with precision:
```js
junter.render({ "div": {
"p": {
"props": {
"class": "text"
},
"content": ['Hello!', 'Hi!', 1]
}
}})
```
```html
<div>
<p class="text">Hello!</p>
<p class="text">Hi!</p>
<p class="text">1</p>
</div>
```
The addition of the "props" attribute allows each paragraph element to have the class "text",
yet each continues to display unique content.
Junter's design logic ensures that developers can effortlessly nest elements within multiple content structures:
```js
junter.render({ "div": {
"div": {
"props": {
"class": "block"
},
"content": [
{
"div": {
"props": {
"class": "block"
},
"p": "Hello, world!"
}
},
{
"div": {
"props": {
"class": "avatar"
},
"img": {
"props": {
"src": "https://example.com/image.png",
"alt": "avatar"
}
}
}
}
]
}
}})
```
```html
<div>
<div class="block">
<div class="block">
<p>Hello, world!</p>
</div>
<div class="avatar">
<img src="https://example.com/image.png" alt="avatar" />
</div>
</div>
</div>
```
The given example demonstrates Junter's ability to handle nested structures within an array,
showcasing both parallel and hierarchically nested elements.
> **Note**
>
> When you anticipate rendering multiple elements of the same tag type,
> Junter's multiple content approach is the ideal strategy.
> **Warning**
>
> Ensure that the root element does not directly adopt multiple content.
> This practice helps maintain a clear structure and prevents potential rendering issues.
## Components
Junter also supports components, which are reusable pieces of UI that can be defined
once and used throughout your application.
Components are registered using the ```.registerComponent()``` method. This method takes
two arguments: the name of the component and the JSON object that represents it.
To use them, it is necessary:
1. Register a component using the ```.registerComponent()``` function
2. Use a component in a JSON object passed to ```.render()```
For example, let's define a simple Avatar component:
```js
junter.registerComponent('Avatar', { "p": "Hello!" });
junter.render({ "div": {
"Avatar": {}
}})
```
**The resulting HTML is:**
```html
<div>
<p>Hello!</p>
</div>
```
The advantage here is clear: we have encapsulated the complexity of the Avatar
component behind a simple name that we can reuse as often as needed.
### Aliases
Allow you to pass the necessary properties to components and rendering elements.
Name | Goal
------------- | -------------
slot | Used for dropping elements inside components
alias | Used for content substitution instead of alias
prop | It is used for passing props to components
style | Used to insert CSS styles inside elements
locale | Used to localize text in elements for rendering
> **Warning**
>
> slot and prop aliases are used only in components!
### Slots
Component slots in Junter serve the purpose of providing placeholders within the
structure of a component where users can insert custom content.
Here's how you can use slots in Junter:
```js
junter.registerComponent('Card', {
"div": {
"p": "Hello!",
"div": "slot:content"
}
});
const json = {
"div": {
"Card": {
slots: {
"slot:content": {
span: "Just a text"
}
}
}
}
};
junter.render(json);
```
In the 'Card' component above, ```slot:content``` serves as a placeholder for content to be
added later. When rendering the component, you can specify what should replace
```slot:content```
This would generate the following HTML:
```html
<div>
<div>
<p>Hello!</p>
<div>
<span>Just a text</span>
</div>
</div>
</div>
```
### Locale
Junter has built-in localization support. This feature allows you to define
locale-dependent strings within your components.
Here's how you can use localization
```js
const json = {
"div": {
"p": "Hello!",
"div": "locale:greating"
}
}
junter.render(json, { 'locale:greating': 'Bonjour!' });
```
The locale:greeting placeholder will be replaced by the corresponding localized string
during the rendering process, which in this case, is 'Bonjour, monde!'. The resulting
HTML will be:
```html
<div>
<p>Hello!</p>
<div>Bonjour!</div>
</div>
```
### Props
Junter allows passing properties (props) to components. This mechanism helps to
customize a component's appearance or behavior during the rendering process.
Here's an example:
```js
junter.registerComponent('Avatar', {
"div": {
"img": {
"props": {
"alt": "prop:imgAlt",
"src": "prop:avatarSrc"
}
}
}
});
const json = {
"div": {
"Avatar": {
props: {
"prop:imgAlt": "avatar",
"prop:avatarSrc": "https://example.com/user.png"
}
}
}
};
junter.render(json);
```
This will generate the following HTML:
```html
<div>
<div>
<img alt="avatar" src="https://example.com/user.png" />
</div>
</div>
```
### Style
In Junter, you can easily incorporate CSS styles into your components with the style
keyword.
Here's an example:
```js
const json = {
"form": {
"style": "style:mainCSS"
}
}
const css = `
.target { color: red }
`
junter.render(json, { 'locale:text': 'Text', 'style:mainCSS': css });
```
This will render the following HTML:
```html
<form>
<style>.target { color: red }</style>
</form>
```
### Alias
Aliases in Junter are used for content substitution within a component. They enable you
to change the content dynamically based on the context.
Here's how to use aliases:
```js
const json = {
"button": {
props: {
class: "button"
},
content: "alias:text"
}
}
junter.render(json, { 'alias:text': 'Text' });
```
This will render the following HTML:
```html
<button class="button">Text</button>
```
The ```alias:text``` placeholder gets replaced by the string 'Click me' during the rendering
process.
## Best practices
As with any tool or framework, understanding best practices can significantly improve
the development process and the quality of the final product. In this section, we provide
some practical tips for using Junter effectively.
### Structure Your Components
When using components in Junter, a well-structured design can make your application
easier to understand, modify, and debug. It's a good idea to keep your components small
and focused on a single responsibility.
### Leverage Junter's Features
Junter comes with several powerful features, such as component lifecycle management,
event handling, and conditional and list rendering. Make full use of these features to
simplify your code and make it more readable.
### Be Mindful of Performance
Although Junter's performance is generally excellent, it's essential to remember that
rendering large, complex structures can become costly. Be mindful of how much you're
asking Junter to do, and consider breaking down larger components into smaller ones for
more efficient rendering.
### Future Directions and Research Opportunities
The development of Junter does not stop here. There are several areas of possible
research and improvement for future versions of Junter:
### Server-side Rendering (SSR)
As of now, Junter operates on the client-side. Incorporating server-side rendering could
provide performance benefits, especially for larger applications.
### Integration with Other Libraries
While Junter is currently a standalone library, exploring possibilities for integration with
other popular JavaScript libraries and frameworks, like React or Vue, could increase its
versatility and applicability.
## SSR
The Junter Render Service expands the capabilities of the Junter library by introducing a
server interface to the library using the gRPC protocol. This service allows users to
interact with the Junter library as if it were a server, thus enhancing its utility and scope.
The service is written in Typescript and is tailored to fit seamlessly into modern
development environments.
### Features
#### gRPC interface
Treat the Junter library as a server using the gRPC protocol
#### Component Registration
Register components from the Junter library and save them to a database
#### API Methods
#### Database Flexibility
While MongoDB is the default choice, developers can
integrate any database using the internal IRepository interface
#### Monitoring with Prometheus
Monitor service metrics using Prometheus via the HTTP /metrics endpoint.
#### Kubernetes-ready
The service is optimized for deployment in a Kubernetes
environment. It includes a readiness probe available at the HTTP /ready endpoint,
and configurations can be made using environment variables.
### How to run the Service
#### Locally
To run the Junter Render Service locally, follow the steps:
```shell
npm install --omit=dev
export DB_URL=localhost:1234
tsnode .src/service.ts
```
#### Docker
Use the following command
```shell
docker run \
ghrc.io/junter-dev/junter-render-service:v1.0.0 \
--env DB_URL=localhost:1234
```
### Configuration
Service configuration can be achieved using environment variables:
* ```DB_URL```: (Required) Address of MongoDB.
* ```HTTP_HOST```: HTTP host address (default is 127.0.0.1).
* ```HTTP_PORT```: Port for Prometheus metrics (default is 8000).
* ```GRPC_HOST```: gRPC host address (default is 127.0.0.1).
* ```GRPC_PORT```: gRPC port (default is 8001).
* ```COMPONENT_PROCESS_INTRVAL```: Period of synchronization with the database
(default is 2000ms)
### Proto contract details
For developers and integrators interested in interfacing with our rendering service,
a comprehensive Proto Contract provides detailed insights into the APIโs structure and functionality.
### Accessing the Proto Contract
The Proto Contract for Junter's render service can be accessed and reviewed directly on our GitHub repository.
This contract delineates the service methods, message formats, and the expected interaction patterns.
Proto Contract for [Junter Render Service](https://github.com/junter-dev/junter-render-service/blob/main/api/render/v1/render_service.proto)
### Highlights
* Service Definitions: Gain an understanding of available RPC methods and their specifications.
* Message Structures: Delve into the exact message formats for requests and responses, ensuring seamless integration.
* Documentation Comments: Within the Proto Contract, annotations provide additional context and guidance for each defined method and message type.
* Recommendations for Developers: Before integrating or making API calls to the Junter rendering service, we highly advise thoroughly reviewing this Proto Contract. It is a foundational document that can help preempt potential issues and streamline the integration process.
# Code of conduct
[Code of conduct](code-of-conduct.md)
# Filling issues
[Filling issues](docs/issues.md)
# FAQ
[FAQ](docs/faq.md)
# Team
[Team](docs/team.md)
# License
[MIT](LICENSE)
| Craft precise HTML structures from JSON data | html,javascript,js,json,nodejs | 2023-08-08T20:49:16Z | 2024-03-03T22:39:03Z | 2023-08-13T13:25:09Z | 1 | 0 | 21 | 0 | 0 | 15 | null | MIT | TypeScript |
corbado/example-passkeys-react | main | # React Passkey-First Authentication Example with Corbado
This is a sample implementation of the Corbado web component being integrated into a web application built with React.
Please see the [full blog post](https://www.corbado.com/blog/react-passkeys) to understand all the required steps to integrate passkeys into React apps.
## File structure
- `src/App.js`: routing for the React web app
- `src/Home.js`: component for the sign up / login screen
- `src/Profile.js`: :component for the user profile information that is shown after successful authentication
- `.env`: add Corbado project id as environment variables that you can obtain
from [Corbado developer panel](https://app.corbado.com/signin#register)
## Setup
### Prerequisites
Please follow the steps in [Getting started](https://docs.corbado.com/overview/getting-started) to create and configure
a project in the [Corbado developer panel](https://app.corbado.com/signin#register).
You need to have [Node](https://nodejs.org/en/download) and `npm` installed to run it.
## Usage
Run
```bash
npm i
```
to install all dependencies.
Finally, you can run the project locally with
```bash
npm start
```
| This is a sample repository of a React app that offers passkey authentication. | faceid,fido2,javascript,passkey,passkeys,react,touchid,webauthn | 2023-07-31T05:57:28Z | 2024-01-24T21:27:21Z | null | 17 | 3 | 20 | 0 | 3 | 14 | null | MIT | JavaScript |
ali-bouali/spring-boot-video-call-app | main | # Getting Started
### Reference Documentation
For further reference, please consider the following sections:
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/3.1.2/maven-plugin/reference/html/)
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/3.1.2/maven-plugin/reference/html/#build-image)
* [Spring Boot DevTools](https://docs.spring.io/spring-boot/docs/3.1.2/reference/htmlsinge/index.html#using.devtools)
* [Spring Web](https://docs.spring.io/spring-boot/docs/3.1.2/reference/htmlsinge/index.html#web)
### Guides
The following guides illustrate how to use some features concretely:
* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/)
* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/)
* [Building REST services with Spring](https://spring.io/guides/tutorials/rest/)
| Video call App using Spring boot and ZegoCloud | api,java,javascript,sdk,video-streaming,zegocloud | 2023-08-02T17:19:48Z | 2023-08-03T07:52:45Z | null | 1 | 0 | 7 | 0 | 7 | 14 | null | null | HTML |
paxo-phone/paxo-site | main | 
# Paxo site
- [Build the docker image](#build-the-docker-image)
- [Running in a dev environment](#running-in-a-dev-environment)
- [Environment variables](#environment-variables)
- [Contact](#contact)
- [See More](#see-more)
- [Contributors](#contributors)
## Build the docker image
Build everything with this command:
```sh
docker build -t ghcr.io/paxo-phone/paxo-site .
```
Then run it:
```sh
docker exec -d ghcr.io/paxo-phone/paxo-site
```
Don't forget to add all your environment variables !
## Running in a dev environment
> โน๏ธ The project will consider that you have set `NODE_ENV` to `development`.
You must prepare the environement first:
```sh
yarn install
node ace migration:run
cp .env.example .env # Consider editing it before launching
```
Then you can launch the website with a watchman:
```sh
yarn run dev
```
## Environment variables
|Variable name|Description|
|-------------|--------------------------------------------|
|`NODE_ENV`|Set to `developement` or `production`.|
Please complete
# Contact
You can contact us via our [Website](https://www.paxo.fr) or our [Discord](https://discord.com/invite/MpqbWr3pUG) server
# See more
See more on [paxo.fr](https://www.paxo.fr)
# Contributors
<a href="https://github.com/paxo-phone/paxo-site/graphs/contributors">
<img src="https://contrib.rocks/image?repo=paxo-phone/paxo-site" />
</a>
| Code source du site internet paxo.fr | adonisjs,css,html,javascript,js,paxo,website | 2023-08-02T10:18:27Z | 2024-05-18T23:05:38Z | null | 10 | 53 | 286 | 0 | 8 | 14 | null | CC0-1.0 | TypeScript |
ITurres/spacex-travelers-hub | main | <a name="readme-top"></a>
<div align="center">
<img src="src/images/spacex-logo.png" alt="spaceX travelers hub logo" width="400" height="auto" />
<h1><b>SpaceX Travelers Hub</b></h1>
</div>
---
<!-- TABLE OF CONTENTS -->
# ๐ Table of Contents
- [๐ About the Project](#about-project)
- [๐ Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [๐ Live Demo](#live-demo)
- [๐ป Getting Started](#getting-started)
- [Setup](#setup)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Deployment](#deployment)
- [๐ฅ Authors](#authors)
- [๐ญ Future Features](#future-features)
- [๐ค Contributing](#contributing)
- [โญ๏ธ Show your support](#support)
- [๐ Acknowledgements](#acknowledgements)
- [๐ License](#license)
---
<!-- PROJECT DESCRIPTION -->
# ๐ SpaceX Travelers Hub <a name="about-project"></a>
**SpaceX Travelers Hub - React + Redux App** This web application is for a company that provides commercial and scientific space travel services. The application will allow users to book rockets and join selected space missions thanks to the **`SpaceX Web API`**.
---
#### Learning objectives
- Work with GitHub Kanban board
- Use React components
- Use React props
- Use React Router
- Connect React and Redux
- Handle events in a React app
- Write unit tests with React Testing Library
- Use styles in a React app
- Use React hooks
- Apply React best practices and language style guides in code
- Use store, actions and reducers in React
- Perform a code review for a team member
## ๐ Built With <a name="built-with"></a>
### Tech Stack <a name="tech-stack"></a>
<ul>
<li>
<img src="https://skillicons.dev/icons?i=redux"/>
<a href="https://redux.js.org/">Redux</a>
</li>
<li>
<img src="https://skillicons.dev/icons?i=react"/>
<a href="https://react.dev/">React.js</a>
</li>
<li>
<img src="https://skillicons.dev/icons?i=js"/>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">JavaScript</a>
</li>
<li>
<img src="https://skillicons.dev/icons?i=jest"/>
<a href="https://jestjs.io/">Jest</a>
</li>
<li>
<img src="https://skillicons.dev/icons?i=css"/>
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS</a>
</li>
<li>
<img src="https://skillicons.dev/icons?i=bootstrap"/>
<a href="https://react-bootstrap.netlify.app/">React-Bootstrap</a>
</li>
<li>
<img src="https://skillicons.dev/icons?i=html"/>
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML">HTML</a>
</li>
</ul>
---
<!-- Features -->
### Key Features <a name="key-features"></a>
- **Use of Hooks**
- **Use of State**
- **Use of Redux Toolkit**
- **Use of React Router**
- **Use of React Bootstrap**
<p align="right">(<a href="#readme-top">back to top</a>)</p>
---
<!-- LIVE DEMO -->
## ๐ Live Demo <a name="live-demo"></a>
- [Live Demo Link](https://iturres.github.io/spacex-travelers-hub/)
---
<!-- GETTING STARTED -->
## ๐ป Getting Started <a name="getting-started"></a>
To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
### Setup
Clone this repository to your desired folder:
Example commands:
```bash
cd my-folder
git clone git@github.com:ITurres/spacex-travelers-hub.git
```
### Install
Install this project's dependencies with:
- npm install
### Usage
To run the project, execute the following command:
```bash
npm start
```
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
The page will reload when you make changes.\
You may also see any lint errors in the console.
### Run tests
```bash
npm test
```
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
---
<!-- AUTHORS -->
## ๐ฅ Authors <a name="authors"></a>
๐ค **Author1**
- GitHub: [@ITurres](https://github.com/ITurres)
- LinkedIn: [Arthur Emanuel G. Iturres](https://www.linkedin.com/in/arturoemanuelguerraiturres/)
- Angellist / Wellfound: [Arturo (Arthur) Emanuel Guerra Iturres](https://wellfound.com/u/arturo-arthur-emanuel-guerra-iturres)
- Youtube: [Arturo Emanuel Guerra Iturres - Youtube Channel](https://www.youtube.com/channel/UC6GFUFHOtBS9mOuI8EJ6q4g)
๐ค **Author2**
- GitHub: [@ahmedeid6842](https://github.com/ahmedeid6842)
- Twitter: [@ahmedeid2684](https://twitter.com/ahmedeid2684)
- LinkedIn: [ahmed eid](https://www.linkedin.com/in/ahmed-eid-0018571b1/)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
---
<!-- FUTURE FEATURES -->
## ๐ญ Future Features <a name="future-features"></a>
- [x] Use React components
- [x] Use React props
- [x] Use React Router
- [x] Connect React and Redux
- [x] Handle events in a React app
- [x] Write unit tests with React Testing Library
- [x] Use styles in a React app
- [x] Use React hooks
- [x] Apply React best practices and language style guides in code
- [x] Use store, actions and reducers in React
- [x] Perform a code review for a team member
<p align="right">(<a href="#readme-top">back to top</a>)</p>
---
<!-- CONTRIBUTING -->
## ๐ค Contributing <a name="contributing"></a>
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/ITurres/spacex-travelers-hub/issues).
<p align="right">(<a href="#readme-top">back to top</a>)</p>
---
<!-- SUPPORT -->
## โญ๏ธ Show your support <a name="support"></a>
Give a โญ if you liked this project!
<p align="right">(<a href="#readme-top">back to top</a>)</p>
---
<!-- ACKNOWLEDGEMENTS -->
## ๐ Acknowledgments <a name="acknowledgements"></a>
I thank Microverse for this fantastic opportunity, the Code Reviewers and my coding partner [Ahmed Eid](https://github.com/ahmedeid6842) for their advice and time ๐
<p align="right">(<a href="#readme-top">back to top</a>)</p>
---
<!-- LICENSE -->
## ๐ License <a name="license"></a>
This project is [MIT](./LICENSE) licensed.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
---
| โ๏ธReact-Redux-Appโ๏ธ | SpaceX Travelers Hub - A web application for a company that provides commercial and scientific space travel services. The application will allow users to book Rockets and join selected Space Missions. Powered By the ๐SpaceX Web API. ๐งชTested with Jest๐งช. Check it out! ๐ | javascript,react,react-router,redux-thunk,redux-toolkit,spacex,jest,testing-library | 2023-07-24T16:13:23Z | 2023-08-10T02:19:43Z | null | 2 | 19 | 105 | 0 | 0 | 14 | null | MIT | JavaScript |
FelipeSantos92Dev/2tds-projects | main | # Tรฉcnico em Desenvolvimento de Sistemas
## Pรกgina Inicial dos Projetos
Este repositรณrio contรฉm uma pรกgina inicial que lista vรกrios projetos desenvolvidos. Cada projeto รฉ representado por um link para sua respectiva pรกgina.
## Prรฉ-requisitos
Antes de utilizar este projeto, certifique-se de ter os seguintes requisitos atendidos:
- Navegador web moderno compatรญvel com HTML5 e CSS3.
## Como Usar
1. Clone este repositรณrio para o seu ambiente local:
```bash
git clone https://github.com/FelipeSantos92Dev/2tds-projects
```
2. Navegue atรฉ o diretรณrio clonado:
```bash
cd 2tds-projects
```
3. Abra o arquivo `index.html` em seu navegador preferido.
## Projetos Disponรญveis
Aqui estรฃo os projetos listados na pรกgina:
- [Calculadora IMC](pages/imc.html)
- [Posts](pages/posts.html)
- [To Do List](pages/todo.html)
- [Player](pages/player.html)
- [Task List](pages/tasklist.html)
- [Categoria - Produto](pages/category-product.html)
Cada link levarรก vocรช para a pรกgina do respectivo projeto.
## Contribuiรงรฃo
Sinta-se ร vontade para contribuir com novos projetos, correรงรตes ou melhorias. Basta seguir os seguintes passos:
1. Faรงa um fork deste repositรณrio.
2. Crie uma nova branch para sua contribuiรงรฃo:
```bash
git checkout -b nova-branch
```
3. Faรงa suas modificaรงรตes e commit:
```bash
git commit -m "feat: sua atualizaรงรฃo"
```
4. Faรงa o push para o seu fork:
```bash
git push origin nova-branch
```
5. Abra um pull request neste repositรณrio.
<!--
## Licenรงa
Este projeto estรก licenciado sob a [Licenรงa XYZ](LICENSE).
### - IMC
### - Posts
### - Tasks List
- #### HTML
- Criar estrutura de pastas
- Versionar projeto
- Criar formulรกrio e estilizar
- Criar lista com exemplos fictรญcios e estilizar
- Lรณgica JavaScript para adicionar itens na lista
- Criar funรงรฃo para adicionar itens na lista
- Criar funรงรฃo para exibir itens na lista
<!-- - Criar funรงรฃo para remover itens da lista
- Criar funรงรฃo para marcar itens como concluรญdos
<!-- - Criar funรงรฃo para desmarcar itens como concluรญdos
<!-- - Criar funรงรฃo para editar itens da lista
<!-- - Criar funรงรฃo para salvar itens editados
<!-- - Criar funรงรฃo para cancelar ediรงรฃo de itens
<!-- - Criar funรงรฃo para limpar lista
- #### CSS
- background-color: #181818;
- background-color: #2a2a2a;
- background-color: #3f3f3f;
-->
| HTML, CSS and JS project for SENAI course | css,html,javascript | 2023-08-03T11:45:29Z | 2023-09-26T20:06:06Z | null | 2 | 0 | 70 | 0 | 0 | 14 | null | null | JavaScript |
ched-dev/directus-init | main | # Directus Init
> A preconfigured Directus install with PostgreSQL - intended for extension development or self-hosting
by [ched.dev](https://ched.dev)
Features:
- Default [Directus.io](https://directus.io) ^10.6.0 installation with PostgreSQL
- Install SQL command to support location data in PostgreSQL
- Bash script to save database backups (run `npm run backup-db`)
- Directus schema snapshots npm commands (run `npm run snapshot`)
- Example [extension bundle](https://docs.directus.io/extensions/bundles.html) to add extensions to (includes example hooks for authentication & user creation)
- [API Viewer Module](https://github.com/u12206050/directus-extension-api-viewer-module/releases/tag/1.1.1) included in extensions
- [Generate Types Module](https://github.com/maltejur/directus-extension-generate-types/releases/tag/0.5.1) included in extensions
- [Additional Directus extensions documentation](./extension_docs/) included in this repo
## Install
Steps:
- [Download a zip](https://github.com/ched-dev/directus-init/archive/refs/heads/main.zip) of this repo, extract it, and rename the folder to your project name and change into the new folder
- Create a `.env` with contents from `.env.sample` and [update config options](https://docs.directus.io/self-hosted/config-options.html) as desired
- Create your PostgreSQL DB wherever you plan to host or locally in CLI run `createdb directus`, then add connection options to `.env`
- (Optional) Run the `tasks/pg_install_postgis.sql` in your database if you want to support location data
- Run `npm run build` (installs packages & builds extensions)
- Run `npx directus bootstrap` (creates local folders and runs initial db one-time setup)
- Create an `uploads` directory if you are storing files locally, alternatively set the S3 config options in `.env`
- Run `npm start` (use this each time to boot up server)
## Directus Studio Setup
After you've installed everything and are running the Directus Studio, you should update a few things.
**In Settings > Project Settings**
- Update Project Name as this will be used for email sender name
- Update branding and style (color) to make this instance yours
- Turn on the API Viewer Module & Generate Types Module in the sidebar (Modules > check to enable)
- Set a requirement for strong passwords (Security > Auth Password Policy) & login attempts
**In Settings > Roles & Permissions**
- Create a role for non-admin users (if needed)
- Require 2FA on any roles you think should have it
## Extensions
We've created a bundle which can hold all of your custom extensions. This approach allows you to add it's own dependencies in one place, as well as integrate into the build process easily.
See the `extensions/directus-extension-app-bundle/README.md` file to learn more about adding extensions.
If you are developing extensions, open a second terminal to watch and rebuild with `npm run extensions`.
## Upgrading
If this repos Directus version is behind the latest, you can upgrade it following the [Directus Upgrades & Migrations Guide](https://docs.directus.io/self-hosted/upgrades-migrations.html).
We've created a [UPGRADE_NOTES.md](./UPGRADE_NOTES.md) file which outlines all the new features and breaking changes since Directus v9.5.2. This will help you decide what fixes might be required before and after you update.
# License
Directus is covered under [BSL-1.1 License](https://github.com/directus/directus/blob/main/license). Any additional code in this repo is covered under MIT license. | Directus Init is a preconfigured Directus install with PostgreSQL - intended for extension development or self-hosting | directus,directus-extension,headless-cms,javascript,nodejs,postgresql,template-project | 2023-08-01T21:34:52Z | 2024-02-12T19:13:11Z | null | 1 | 0 | 18 | 0 | 14 | 14 | null | MIT | HTML |
Coder-Spirit/beautiful-tree | main | # Beautiful-Tree
<p align="center">
<img
src="https://raw.githubusercontent.com/Coder-Spirit/beautiful-tree/main/docs/example1.svg"
style="height:300px;width:300px;"
alt="Tree rendered with BeautifulTree"
/>
</p>
Beautiful-Tree is a lightweight & flexible library to draw trees as SVG images.
Some of its hightlights:
- It is compatible with ESM, CJS, UMD and IIFE
- Very lightweight (3.9Kb in its minimised ESM form, and 4.2Kb in its UMD form)
- The generated trees can be styled with CSS
For now there is only a React variant, but we'll extend the support for other
technologies such as Vue.
## Packages in this repository:
- [@beautiful-tree/algorithms](@beautiful-tree/algorithms/README.md)
- [@beautiful-tree/react](@beautiful-tree/react/README.md)
- [@beautiful-tree/types](@beautiful-tree/types/README.md)
## Community
- For slow-paced discussions, debates, ideas, etc. that don't fit into specific
issues or PRs, we have a
[discussions section](https://github.com/Coder-Spirit/beautiful-tree/discussions).
- For more unstructured and "real time" conversations, we have a
[Discord space](https://discord.gg/3a8RSRdEv2).
- [How to Contribute](CONTRIBUTING.md)
## Related articles
- [How to create a React components dual library (ESM+CJS)](https://blog.coderspirit.xyz/blog/2023/09/15/create-a-react-component-lib/):
It covers some of the technical decisions behind this library to offer CJS &
ESM support at the same time.
| A library to generate beautiful trees in your website | javascript,react,tree,typescript,web,hacktoberfest,hacktoberfest2023 | 2023-07-25T16:18:11Z | 2023-10-14T11:26:01Z | 2023-09-24T21:48:45Z | 2 | 55 | 132 | 16 | 4 | 13 | null | MIT | TypeScript |
iyarivky/sing-ribet-web | main | # sing-ribet-web
sing-ribet web converter
## To-Do
- add warn error if v2ray url is invalid
- add subs link for remote config
- fix README
- idk, my head is empty
pm me [@iya_rivvikyn](https://t.me/iya_rivvikyn) if you wanna ask something or maybe you wanna be my friend :3
<p align="left"><img src="https://github.com/iyarivky/sing-ribet-web/assets/101973571/e73e43c2-5de1-4f50-91f8-d490ac8289de" alt="ayo what?" width=300px></p>
| sing-ribet web converter | converter,javascript,sing-box | 2023-07-24T12:57:14Z | 2023-09-05T01:23:44Z | null | 1 | 1 | 49 | 0 | 15 | 13 | null | null | JavaScript |
brainbarett/yerin | master | # Yerin
๐ก Real Estate CMS for agencies to manage their property listings. It's currently in its early stages; not production ready.
> ๐ NOTE: Incremental migrations will start when v1.0.0 is released. Until then migration files will be modified.
| Screenshots |
| ------------------------------------------------------------------- |
| <img src="./public/github/creating a property.png" alt="drawing" /> |
## Table of contents
- [Requirements](#requirements)
- [Installation](#installation)
- [Tests](#tests)
- [Roadmap](#roadmap)
## Requirements
- php >= 8.1
- mysql >= 5.7
- composer (see http://getcomposer.org/download)
## Installation
1. Clone the repo
```
> git clone https://github.com/brainbarett/yerin
```
2. Install the project's dependencies(make sure you're in the project's directory when running the command)
```
> composer install
```
3. Modify the auto-generated `.env` file to reflect your environment(mostly the database credentials)
4. Run the database migrations and seeds
> โ ๏ธ WARNING: running this command will drop all tables from the specified database
```
> php artisan migrate:fresh --seed --seeder=DemoSeeder
```
5. Run the server
```
> php artisan serve
```
You can log in with email `admin@test.com` and password `password`
## Tests
Update your `phpunit.xml` file and set the `DB_DATABASE` value to your testing database
You can then run all the tests with
```
> vendor\bin\phpunit
```
## Roadmap
- v1.0.0
- โ
Account management
- โ
Create and modify accounts
- โ
Authentication
- โ
Manage and assign roles & permissions
- โ
Property management
- โ
Create and modify properties
- โ
Manage and assign property amenities
- โ
Images
- โ
Geographical locations
- โ
UI translations
- โฌ๏ธ Live demo
- Backlog
- โฌ๏ธ Account management
- โฌ๏ธ Manage and assign tasks
- โฌ๏ธ Property management
- โฌ๏ธ Manage and use dynamic property types
- Manage and use dynamic property fields
- โฌ๏ธ Manage and schedule tours
- โฌ๏ธ Make use of the tasks system
- โฌ๏ธ Manage and add notes
- โฌ๏ธ Manage and upload attachments
| ๐ก Real Estate CMS for agencies to manage their property listings. | laravel,real-estate,tdd-laravel,vuejs2,typescript,typescript-vue,real-estate-management,cms,php,javascript | 2023-08-05T23:00:38Z | 2024-01-15T02:43:34Z | null | 1 | 0 | 203 | 0 | 1 | 13 | null | MIT | PHP |
krishnaacharyaa/nextjs-13-power-snippets | main | # **Next.js 13+ Power Snippets | TypeScript/JavaScript**
Supercharge your Next.js development with a collection of powerful and time-saving code snippets specifically tailored both in TypeScript and JavaScript
<img src="https://github.com/krishnaacharyaa/nextjs-13-power-snippets/assets/116620586/ddb24f71-f3ca-4a14-9d69-250606e44785" width="800" />
# Overview
This extension offers a comprehensive collection of code snippets that cover a wide range of scenarios, allowing you to effortlessly enhance your productivity and build stunning Next.js applications.
# Features
- **Effortless Usage:** Each snippet comes with an intuitive and memorable prefix, ensuring you can quickly insert the desired code.
- **Organized Sections:** Snippets are thoughtfully grouped into categories for quick access.
- **JavaScript & TypeScript:** Enjoy seamless compatibility with both JavaScript and TypeScript, catering to your coding preferences.
- **Next.js 13+ Optimized:** These snippets are tailored for Next.js 13+, ensuring you have the latest and most efficient tools at your fingertips.
# Snippet Categories
| Category | Prefix Group | Description |
| -------------- | :----------: | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Pages | **`np`** | Quickly generate dynamic, statically fetched, or revalidated pages with various data fetching methods (`axios`/`fetch`) and parameter options |
| Route Handlers | **`nr`** | Create route handler functions for different HTTP methods (`GET`, `POST`, `PUT`, `DELETE`) with built-in error handling |
| Actions | **`na`** | Utilize prebuilt action templates to seamlessly interact with API routes using either `axios` or `fetch` |
| Functions | **`nf`** | Leverage templates for generating Image, Static, and Dynamic Metadata, as well as static params functions |
| Components | **`nc`** | Get the component templates for loading, notfound, error, image, and many more |
| Imports | **`ni`** | Import a wide range of Next.js modules and utilities with ease |
| Declarations | **`nd`** | Quickly declare variables with available templates |
# Usage
1. Install the Next.js Code Snippets Extension in your code editor.
2. Open a `.js|.jsx` or `.ts|.tsx` file in your Next.js project.
3. Start typing the snippet prefix to trigger auto-suggestions.
4. Select the desired snippet and press `Enter` to insert the code.
# Kindly find All Snippets [**HERE**](./documentation/snippets.md)
# Handy Snippets
## **Next.js Page - `np`**
### **`np`** - Next.js Page: Default
```tsx
export default function Page() {
return <main>{/* Your content here */}</main>;
}
```
### **`npasync`** - Next.js Page: Async Function
```tsx
async function customFunction() {
/* Your code here */
}
export default async function Page() {
const data = await customFunction();
return <main>{/* Your content here */}</main>;
}
```
### **`npfetchStatic`** - Next.js Page: Fetch default (staticData)
```jsx
async function getData() {
const res = await fetch("https://...");
if (!res.ok) {
throw new Error("Failed to fetch data");
}
return res.json();
}
export default async function Page() {
const data = await getData();
return <main>{/* Your content here */}</main>;
}
```
## **Next.js Route Handler - `nr`**
### **`nrpost`** - Next.js Route Handler: Default POST Method
```tsx
import { NextRequest, NextResponse } from "next/server";
export async function POST(request: NextRequest) {
const body = await request.json();
try {
const result = await saveData(body);
return NextResponse.json({ message: "OK", result }, { status: 201 });
} catch (error) {
return NextResponse.json({ message: "Error", error }, { status: 500 });
}
}
```
### **`nrgetSearchParams`** - Next.js Route Handler: GET() with searchParams
```tsx
import { NextRequest, NextResponse } from "next/server";
export async function GET(request: NextRequest) {
const id = request.nextUrl.searchParams.get("id");
try {
const result = await fetchData(id);
return NextResponse.json({ message: "OK", result }, { status: 200 });
} catch (error) {
return NextResponse.json({ message: "Error", error }, { status: 500 });
}
}
```
## **Next.js Action - `na`**
### **`nafetchGet`** - Next.js Action: Fetch GET Request
```tsx
export async function fetchGetFunction() {
try {
const response = await fetch("https://...", {
method: "GET",
headers: {
"Content-Type": "application/json",
},
});
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
return response.json();
} catch (error) {
console.error("Fetch GET error:", error);
throw error;
}
}
```
### **`naaxiosGet`** - Next.js Action: Axios GET request
```tsx
import axios from "axios";
export async function axiosGetFunction() {
try {
const response = await axios.get("https://...");
const { result } = response.data;
return result;
} catch (error: any) {
throw new Error("Axios Get Error :(");
}
}
```
## **Next.js Function - `nf`**
### **`nf`** - Next.js Function: Basic
```tsx
export function ${1:functionName}() {
/* Your code here */
}
```
### **`nfdefaultExport`** - Next.js Function: Default Export
```tsx
export default function ${1:functionName}() {
/* Your code here */
}
```
### **`nfgstaticParams`** - Next.js Function: generateStaticParams
```tsx
export async function generateStaticParams() {
const dataList = await fetch("https://...").then((res) => res.json());
return dataList.map((data: Object) => ({
param: data.param,
}));
}
```
## **Next.js Component - `nc`**
### **`ncloading`** - Next.js Component: Loading
```tsx
export default function Loading() {
return <p>Loading...</p>;
}
```
## Kindly find all the supported snippets [**HERE**](./documentation/snippets.md)
# Feedback and Contributions
We're dedicated to improving this extension and making it even more useful for the Next.js community. If you have found a bug, have suggestions, or want to contribute new snippets, feel free to reach out on [GitHub](https://github.com/krishnaacharyaa/nextjs-13-power-snippets).
---
# Liked the snippets ?
Rate [here](https://marketplace.visualstudio.com/items?itemName=krishnaacharyaa.nextjs-13-power-snippets&ssr=false#review-details), and help us reach more users :)
| Supercharge your Next.js development with a collection of powerful and time-saving code snippets specifically tailored both in TypeScript and JavaScript | nextjs,nextjs13,productivity,vscode,vscode-extension,vscode-snippets,javascript,react,reactjs,typescript | 2023-08-07T19:51:51Z | 2024-03-17T03:13:54Z | null | 1 | 0 | 17 | 0 | 3 | 13 | null | MIT | null |
SammyLeths/samis-ecom-admin | master | <h1>Samis Ecom Admin</h1>
A full-stack ecommerce admin dashboard and cms developed to manage multiple ecommerce vendors / store with their own uniquely generated API. This project cuts across many aspect of ecommerce application such as product categorization, product attributes creation like color and sizes, product image gallery, store billboard ect. Some of the features built into this project include:
<ul>
<li>Clerk User Authentication</li>
<li>Third party login</li>
<li>Search and Filter</li>
<li>Cloudinary image upload</li>
<li>Stripe payment integration</li>
<li>Store creation</li>
<li>Product quick view</li>
<li>Light and Dark mode</li>
<li>Order creation and overview</li>
<li>Revenue graphs</li>
<li>CRUD Operations on: Products, Categories, Billboards, Attributes suchh as: Colors, Sizes</li>
</ul>
This project was developed using React, NextJS, TypeScript, Tailwind CSS, Prisma, MySql, RadixUI, Axios, NPM.
<h2>Screenshots</h2>

<h2>Links</h2>
<ul>
<li>Demo: <a href="https://samis-ecom-admin.vercel.app/" target="_blank">https://samis-ecom-admin.vercel.app/</a></li>
</ul>
<h2>Tech Stack</h2>
<p align="left">
<img src="https://img.shields.io/badge/react-61DAFB.svg?style=for-the-badge&logo=react&logoColor=white" alt="REACT JS" />
<img src="https://img.shields.io/badge/next.js-000000.svg?style=for-the-badge&logo=nextdotjs&logoColor=white" alt="NEXT JS" />
<img src="https://img.shields.io/badge/typescript-3178C6.svg?style=for-the-badge&logo=typescript&logoColor=white" alt="TYPESCRIPT" />
<img src="https://img.shields.io/badge/tailwindcss-06B6D4.svg?style=for-the-badge&logo=tailwindcss&logoColor=white" alt="TAILWIND CSS" />
<img src="https://img.shields.io/badge/prisma-2D3748.svg?style=for-the-badge&logo=prisma&logoColor=white" alt="PRISMA" />
<img src="https://img.shields.io/badge/mysql-4479A1.svg?style=for-the-badge&logo=mysql&logoColor=white" alt="MYSQL" />
<img src="https://img.shields.io/badge/axios-5A29E4.svg?style=for-the-badge&logo=axios&logoColor=white" alt="AXIOS" />
<img src="https://img.shields.io/badge/npm-CB3837.svg?style=for-the-badge&logo=axios&logoColor=white" alt="NPM" />
<img src="https://img.shields.io/badge/radixui-161618.svg?style=for-the-badge&logo=radixui&logoColor=white" alt="RADIX UI" />
<img src="https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white" alt="HTML" />
<img src="https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white" alt="CSS3" />
<img src="https://img.shields.io/badge/sass-hotpink.svg?style=for-the-badge&logo=sass&logoColor=white" alt="SASS" />
<img src="https://img.shields.io/badge/JavaScript-black?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E" alt="JAVASCRIPT" />
</p>
<h2>Helpful Resources</h2>
<ul>
<li>
<b><a href="https://react.dev/" target="_blank">REACT</a></b>: The library for web and native user interfaces.
</li>
<li>
<b><a href="https://nextjs.org/" target="_blank">NEXTJS</a></b>: The React Framework for the Web
</li>
<li>
<b><a href="https://www.typescriptlang.org/" target="_blank">TYPESCRIPT</a></b>: A strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.
</li>
<li>
<b><a href="https://tailwindcss.com/" target="_blank">TAILWIND CSS</a></b>: A utility-first CSS framework packed with classes that can be composed to build any design, directly in your markup.
</li>
<li>
<b><a href="https://clerk.com/" target="_blank">CLERK AUTHENTICATION</a></b>: Complete user management purpose-built for React, Next.js, and the Modern Web.
</li>
<li>
<b><a href="https://www.prisma.io/" target="_blank">PPRISMA</a></b>: Next-generation Node.js and TypeScript ORM.
</li>
<li>
<b><a href="https://www.radix-ui.com/" target="_blank">RADIX UI</a></b>: An open source component library optimized for fast development, easy maintenance, and accessibility.
</li>
<li>
<b><a href="https://www.mysql.com/" target="_blank">MYSQL</a></b>: Open-source relational database management system.
</li>
<li><b>HTML5:</b>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank">MDN</a>: Mozilla Developer Network - HTML (HyperText Markup Language)</li>
<li><a href="https://www.w3schools.com/html/html_intro.asp" target="_blank">W3SCHOOL</a>: HTML Introduction</li>
</ul>
</li>
<li><b>CSS3:</b>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS" target="_blank">MDN</a>: Mozilla Developer Network - CSS (Cascading Style Sheets)</li>
<li><a href="https://www.w3schools.com/css/css_intro.asp" target="_blank">W3SCHOOL</a>: CSS Introduction</li>
</ul>
</li>
<li><b>JAVASCRIPT:</b>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank">MDN</a>: Mozilla Developer Network - JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions</li>
<li><a href="https://www.w3schools.com/js/js_intro.asp" target="_blank">W3SCHOOL</a>: JavaScript Introduction</li>
</ul>
</li>
<li>
<b><a href="https://axios-http.com/" target="_blank">AXIOS</a></b>: A promise based HTTP client for the browser and node.js
</li>
<li>
<b><a href="https://www.npmjs.com/" target="_blank">NPM</a></b>: A package manager for the JavaScript programming language.
</li>
<li>
<b><a href="https://mugshotbot.com/" target="_blank">MUGSHOTBOT</a></b>: Automatic beautiful link previews
</li>
</ul>
<h2>Author's Links</h2>
<ul>
<li>Portfolio - <a href="https://sammyleths.com" target="_blank">@SammyLeths</a></li>
<li>Linkedin - <a href="https://www.linkedin.com/in/eyiowuawi/" target="_blank">@SammyLeths</a></li>
<li>Twitter - <a href="https://twitter.com/SammyLeths" target="_blank">@SammyLeths</a></li>
</ul>
<br />
<hr />
<br />
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
| A full-stack ecommerce admin dashboard and cms developed to manage multiple ecommerce vendors / store with their own uniquely generated API. | clerkauth,javascript,nextjs,reactjs,tailwindcss,typescript,mysql,npmjs,prisma,radix-ui | 2023-07-22T11:44:24Z | 2023-09-27T10:43:21Z | null | 1 | 0 | 24 | 0 | 0 | 12 | null | MIT | TypeScript |
nandnii/Web-Dev-Course | main | # Web Development Bootcamp
The Complete Web Development Bootcamp course on Udemy, taught by Dr. Angela Yu.
### Course Structure
Since the [course](https://www.udemy.com/course/the-complete-web-development-bootcamp/) is frequently updated so the contents might not be exactly similar, but overall structure is as follows -
1. HTML
2. CSS
3. Bootstrap
4. Javascript & jQuery
5. NodeJS & Express Framework
6. Embedded Javascript Templates (EJS)
7. APIs & Restful APIs
8. Authentication & Security
9. ReactJS | The Complete 2023 Web Development Bootcamp by Dr. Angela Yu | bootstrap,css,express,html,javascript,nodejs | 2023-07-24T18:15:16Z | 2023-08-18T17:05:22Z | null | 1 | 0 | 11 | 0 | 6 | 12 | null | null | JavaScript |
ighoshsubho/NotionAutomation | main | # Notion Automation using Serverless and Notion API
Hey, Subho this side, I created this project. You can freely use this to automate your blog posts to DevTo. More integrations will come soon. And if you want you can defnitely contribute to this. Plan is to automate for all the blogging platforms.
## How to setup Local Environment
### Step 1
Install all dependencies :accessibility:
```
npm install
npm install -g serverless
serverless config credentials --provider aws --key <YOUR_USER_KEY> --secret <YOUR_USER_SECRET>
```
### Step 2
Add Environment Variables. There is only two variables required to make this work. You already have a **.env.local** file in your root directory if you have done the Step 1 properly.
```
NOTION_API_KEY=
DEV_TO_API_KEY=
NOTION_DATABASE_ID=
```
#### Getting the env. ๐
Head to [Notion's Integration Website](https://www.notion.so/my-integrations). Make a new integration and get the secret key from there. That is your NOTION_TOKEN.
Finally it's time to get the NOTION_DATABASE_ID
See the URL of the page. For example https://www.notion.so/XYZ/ContentCurator-cd0db9f8767843ca9563c591a233be5b. Here `cd0db9f8767843ca9563c591a233be5b` is the database id.
### Step 3
Add Environment Variables in `serverless.yml` file. If you want, you can play around with the scheduler and make your lambda function check every `X` minutes whether you are `done` with your blogs or not.
```
NOTION_API_KEY:
DEV_TO_API_KEY:
NOTION_DATABASE_ID:
```
### Step 4 ๐ค
Making Blogs database in notion.
For the next env. Make a new page in Notion and make a new database in that.
Add these three column there
```
Title
Description
Cover Image URL
Tags
Status
ID
```
Here is a screenshot of the table and the propery names. โฌ๏ธ

Make sure to name them exactly this. And `DON'T FORGET` to add a `Published` status. But initally it should have status `Not started` or `In progress`. Once you're done writing the blog, change your status to done. It will automatically get changed to status published and keep track of your post updates every 10 mins.
Now it is time to connect the page to the Developers App you just built.
Go to Shares of the page and scroll down until you find **Connections** . Click on **Add connections** and add your developer app.
Here is a screenshot of where you can find the connections. And then you can add your app you made in this website [Notion's Integration Website](https://www.notion.so/my-integrations) โฌ๏ธ

### Step 5 ๐
When all is set, deploy your lambda and check using...
```bash
npm run deploy
```
And boom!
Now start writing blogs on Notion and it will work magically.
Star this if you find it useful.
<br />
## Want to contribute to the repo to make it better?? ๐ฅ
Yup! Everyone is welcome to cohntribute to this repo and making this better day by day. This could be a small typo fix, design fix to adding some big functionality like adding hashnode and other integrations.
| Notion Automation using Serverless and Notion API | aws,devto,javascript,lambda,nodejs,notion-api,serverless | 2023-07-26T16:07:52Z | 2023-08-11T10:20:01Z | null | 2 | 0 | 16 | 3 | 1 | 12 | null | null | JavaScript |
anirbansharma1996/Interview-Prep-Kit | main | # Full Stack Web Development MERN Interview Preparation - Theoretical Notes & DSA

Welcome to the Full Stack Web Development MERN (MongoDB, Express.js, React, Node.js) Interview Preparation Theoretical Notes repository for freshers! This collection of notes is designed to help you solidify your understanding of the MERN stack concepts and prepare effectively for your upcoming interviews. Whether you're new to web development or looking to refresh your knowledge, these notes will serve as a valuable resource.
## Table of Contents
1. [Introduction to the MERN Stack](#introduction-to-the-mern-stack)
2. [MongoDB](#mongodb)
3. [Express.js](#expressjs)
4. [React](#react)
5. [Node.js](#nodejs)
6. [RESTful APIs](#restful-apis)
7. [Authentication and Authorization](#authentication-and-authorization)
8. [State Management](#state-management)
9. [Deployment](#deployment)
10. [Interview Tips](#interview-tips)
11. [Additional Resources](#additional-resources)
## Introduction to the MERN Stack
In this section, you'll learn about the MERN stack's components and how they work together to build modern web applications.
## MongoDB
MongoDB is a NoSQL database that stores data in a flexible, JSON-like format. It's designed for scalability and handling large amounts of unstructured data.
## Express.js
Express.js is a web application framework for Node.js. It simplifies building robust APIs and handling routes, middleware, and HTTP requests.
## React
React is a JavaScript library for building user interfaces. It utilizes a component-based architecture to create reusable UI components and manage dynamic views.
## Node.js
Node.js is a runtime environment that enables server-side JavaScript execution. It's used to build scalable and efficient network applications.
## RESTful APIs
Learn about designing RESTful APIs that adhere to the principles of Representational State Transfer (REST). Understand HTTP methods, status codes, and API design best practices.
## Authentication and Authorization
Explore techniques for implementing user authentication and authorization in MERN applications. Learn about JWT (JSON Web Tokens), OAuth, and security considerations.
## State Management
Discover various state management approaches in React applications. Compare local state, React's Context API, and third-party libraries like Redux for managing global state.
## Deployment
Learn how to deploy MERN applications to various platforms like Heroku, AWS, or Netlify. Understand the deployment process, environment variables, and scaling considerations.
## Interview Tips
Get valuable tips for your MERN stack interviews, including common interview questions, how to showcase your theoretical knowledge effectively, and demonstrating problem-solving skills.
## Additional Resources
Explore a curated list of books, online courses, tutorials, and websites that provide in-depth insights into MERN stack development and interview preparation.
## Contributing
If you find errors, want to add more content, or suggest improvements, feel free to contribute! Create a pull request, open an issue, or provide feedback via email.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
Remember, interview preparation is not just about memorizing facts but understanding the underlying concepts. Good luck with your MERN stack interview preparation journey! If you have any questions or need further clarification on any topic, don't hesitate to reach out.
Happy coding!
Anirban Sharma
| Welcome to the Full Stack Web Development MERN (MongoDB, Express.js, React, Node.js) Interview Preparation Theoretical Notes repository for freshers! This collection of notes is designed to help you solidify your understanding of the MERN stack concepts and prepare effectively for your upcoming interviews. | css3,expressjs,html5,javascript,mongodb,nodejs,reactjs,redux,algorithms,data-structures | 2023-08-07T06:19:11Z | 2023-08-22T08:51:36Z | null | 1 | 0 | 10 | 0 | 1 | 12 | null | null | JavaScript |
hafiz1379/math-magicians | Develop | <a name="readme-top"></a>
<div align="center">
<br/>
<h3><b>Math Magicians</b></h3>
</div>
<!-- TABLE OF CONTENTS -->
# ๐ Table of Contents
- [๏ฟฝ Table of Contents](#-table-of-contents)
- [๐ Portfolio Desktop Version ](#-portfolio-desktop-version-)
- [๐ Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [๐ Live Demo ](#-live-demo-)
- [๐ป Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Deployment](#deployment)
- [๐ฅ Authors ](#-authors-)
- [๐ญ Future Features ](#-future-features-)
- [๐ค Contributing ](#-contributing-)
- [โญ๏ธ Show your support ](#๏ธ-show-your-support-)
- [๐ Acknowledgments ](#-acknowledgments-)
- [๐ License ](#-license-)
<!-- PROJECT DESCRIPTION -->
# ๐ Math Magicians <a name="about-project"></a>
> This Math Magicians project using HTML, CSS, JavaScript and React.
## ๐ Built With <a name="built-with"></a>
1- HTML
2- CSS
3- JaveScript
4- React
5- Webpack
6- Linters
7- Testing
### Tech Stack <a name="tech-stack"></a>
>
<details>
<summary>Client</summary>
<ul>
<li><a href="https://html.spec.whatwg.org/multipage//">HTML</a></li>
<li><a href="https://www.w3.org/TR/CSS/#css/">CSS</a></li>
</ul>
</details>
<!-- Features -->
### Key Features <a name="key-features"></a>
- **Responsive**
- **GitHub WorkFlow**
- **Grid and Flexbox**
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- GETTING STARTED -->
## ๐ป Getting Started <a name="getting-started"></a>
>
### Prerequisites
In order to run this project you need:
1. Web browser.
2. Code editor.
3. Git-smc.
### Setup
Clone this repository to your desired folder:
Run this command:
```sh
cd my-folder
git clone https://hafiz1379.github.io/math-magicians
### Install
Install this project with:
Run command:
```sh
cd my-project
npm install
```
### Usage
To run the project, execute the following command:
Open index.html using live server extension.
### Run tests
To run tests, run the following command:
> Coming soon
### Deployment
You can deploy this project using:
> Coming soon
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- AUTHORS -->
## ๐ฅ Authors <a name="authors"></a>
๐ค **Hafizullah Rasa**
- GitHub: [@githubhandle](https://github.com/hafiz1379)
- Twitter: [@twitterhandle](https://twitter.com/Hafizrasa1379?s=35)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/hafizullah-rasa-8436a1257/)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- FUTURE FEATURES -->
## ๐ญ Future Features <a name="future-features"></a>
- Creating all the remaining sites
- Adding more functionality
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- CONTRIBUTING -->
## ๐ค Contributing <a name="contributing"></a>
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](../../issues/).
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- SUPPORT -->
## โญ๏ธ Show your support <a name="support"></a>
If you like this project just give it a star.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- ACKNOWLEDGEMENTS -->
## ๐ Acknowledgments <a name="acknowledgements"></a>
I would like to thank Microverse to have this opportunity, and also thank you the code review team.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- LICENSE -->
## ๐ License <a name="license"></a>
This project is [MIT](./LICENSE) licensed.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
| "Math Magicians" is a React-based project that provides an interactive platform for math enthusiasts. Users can perform calculations and explore mathematical concepts with ease, leveraging the dynamic capabilities of React for an engaging experience. | api,css,html,javascript,react,router,testing | 2023-08-07T11:50:38Z | 2023-09-18T12:25:02Z | null | 2 | 8 | 83 | 0 | 0 | 12 | null | MIT | JavaScript |
ikhvorost/ReactBridge | main | # ReactBridge
[](https://developer.apple.com/swift)

[](https://swift.org/package-manager/)
[](https://reactnative.dev/)
[](https://github.com/ikhvorost/ReactBridge/actions/workflows/swift.yml)
[](https://codecov.io/gh/ikhvorost/ReactBridge)
[](https://github.com/ikhvorost/swift-doc-coverage)
[](https://www.paypal.com/donate/?hosted_button_id=TSPDD3ZAAH24C)
`ReactBridge` provides Swift macros for React Native to expose Native Modules and UI Components to JavaScript.
- [Getting Started](#getting-started)
- [Native Module](#native-module)
- [Native UI Component](#native-ui-component)
- [Documentation](#documentation)
- [`@ReactModule`](#reactmodule)
- [`@ReactMethod`](#reactmethod)
- [`@ReactView`](#reactview)
- [`@ReactProperty`](#reactproperty)
- [Requirements](#requirements)
- [Installation](#installation)
- [XCode](#xcode)
- [Swift Package](#swift-package)
- [Licensing](#licensing)
## Getting Started
### Native Module
Attach `@ReactModule` macro to your class definition and it exports and registers the native module class with React Native and that will allow you to access its code from JavaScript:
``` swift
import React
import ReactBridge
@ReactModule
class CalendarModule: NSObject, RCTBridgeModule {
}
```
> **Note**
> `ReactBridge` requires to import `React` library.
> Swift class must be inherited from `NSObject` and must conform to `RCTBridgeModule` protocol.
The `@ReactModule` macro also takes optional `jsName` argument that specifies the name that will be accessible as in your JavaScript code:
``` swift
@ReactModule(jsName: "Calendar")
class CalendarModule: NSObject, RCTBridgeModule {
}
```
> **Note**
> If you do not specify a name, the JavaScript module name will match the Swift class name.
Now the native module can then be accessed in JavaScript like this:
``` js
import { NativeModules } from 'react-native';
const { Calendar } = NativeModules;
```
**Methods**
React Native will not expose any methods in a native module to JavaScript unless explicitly told to. This can be done using the `@ReactMethod` macro:
``` swift
@ReactModule(jsName: "Calendar")
class CalendarModule: NSObject, RCTBridgeModule {
@ReactMethod
@objc func createEvent(title: String, location: String) {
print("Create event '\(title)' at '\(location)'")
}
}
```
> **Note**
> The exported method must be marked with `@objc` attribute.
Now that you have the native module available, you can invoke your native method `createEvent()`:
``` js
Calendar.createEvent('Wedding', 'Las Vegas');
```
**Callbacks**
Methods marked with `@ReactMethod` macro are asynchronous by default but if it's needed to pass data from Swift to JavaScript you can use the callback parameter with `RCTResponseSenderBlock` type:
``` swift
@ReactMethod
@objc func createEvent(title: String, location: String, callback: RCTResponseSenderBlock) {
print("Create event '\(title)' at '\(location)'")
let eventId = 10;
callback([eventId])
}
```
This method could then be accessed in JavaScript using the following:
``` js
Calendar.createEvent('Wedding', 'Las Vegas', eventId => {
console.log(`Created a new event with id ${eventId}`);
});
```
**Promises**
Native modules can also fulfill promises, which can simplify your JavaScript, especially when using async/await syntax:
``` swift
@ReactMethod
@objc func createEvent(title: String, location: String, resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) {
do {
let eventId = try createEvent(title: title, location: location)
resolve(eventId)
}
catch let error as NSError {
reject("\(error.code)", error.localizedDescription, error)
}
}
```
The JavaScript counterpart of this method returns a promise:
``` js
Calendar.createEvent('Wedding', 'Las Vegas')
.then(eventId => {
console.log(`Created a new event with id ${eventId}`);
})
.catch(error => {
console.error(`Error: ${error}`);
});
```
**Inheritance**
It's possible to inherit an other native module (which implements `RCTBridgeModule` protocol) and override existing or append additional functionality. For instance, to signal events to JavaScript you can subclass `RCTEventEmitter`:
``` swift
@ReactModule
class EventEmitter: RCTEventEmitter {
static private(set) var shared: EventEmitter?
override init() {
super.init()
Self.shared = self
}
override func supportedEvents() -> [String]! {
["EventReminder"]
}
func sendReminderEvent(title: String) {
sendEvent(withName: "EventReminder", body: ["title" : title])
}
}
...
EventEmitter.shared?.sendReminderEvent(title: "Dinner Party")
```
Then in JavaScript you can create `NativeEventEmitter` with your module and subscribe to a particular event:
``` js
const { EventEmitter } = NativeModules;
this.eventEmitter = new NativeEventEmitter(EventEmitter);
this.emitterSubscription = this.eventEmitter.addListener('EventReminder', event => {
console.log(event); // Prints: { title: 'Dinner Party' }
});
```
For more details about Native Modules, see: https://reactnative.dev/docs/native-modules-ios.
### Native UI Component
To expose a native view you should attach `@ReactView` macro to a subclass of `RCTViewManager` that is also typically the delegate for the view, sending events back to JavaScript via the bridge.
``` swift
import React
import ReactBridge
import MapKit
@ReactView
class MapView: RCTViewManager {
override func view() -> UIView {
MKMapView()
}
}
```
Then you need a little bit of JavaScript to make this a usable React component:
``` js
import {requireNativeComponent} from 'react-native';
const MapView = requireNativeComponent('MapView');
...
render() {
return <MapView style={{flex: 1}} />;
}
```
**Properties**
To bridge over some native properties of a native view we can declare properties with the same name on our view manager class and mark them with `@ReactProperty` macro. Let's say we want to be able to disable zooming:
``` swift
@ReactView
class MapView: RCTViewManager {
@ReactProperty
var zoomEnabled: Bool?
override func view() -> UIView {
MKMapView()
}
}
```
> **Note**
> The target properties of a view must be visible for Objective-C.
Now to actually disable zooming, we set the property in JavaScript:
``` js
<MapView style={{flex: 1}} zoomEnabled={false} />
```
For more complex properties you can pass `json` from JavaScript directly to native properties of your view (if they are implemented) or use `isCustom` argument to inform React Native that a custom setter is implemented on your view manager:
``` swift
@ReactView
class MapView: RCTViewManager {
@ReactProperty
var zoomEnabled: Bool?
@ReactProperty(isCustom: true)
var region: [String : Double]?
@objc
func set_region(_ json: [String : Double]?, forView: MKMapView?, withDefaultView: MKMapView?) {
guard let latitude = json?["latitude"],
let latitudeDelta = json?["latitudeDelta"],
let longitude = json?["longitude"],
let longitudeDelta = json?["longitudeDelta"]
else {
return
}
let region = MKCoordinateRegion(
center: CLLocationCoordinate2D(latitude: latitude, longitude: longitude),
span: MKCoordinateSpan(latitudeDelta: latitudeDelta, longitudeDelta: longitudeDelta)
)
forView?.setRegion(region, animated: true)
}
override func view() -> UIView {
MKMapView()
}
}
```
> **Note**
> The custom setter must have the following signature: `@objc func set_Name(_ value: Type, forView: ViewType?, withDefaultView: ViewType?)`
JavaScript code with `region` property:
``` js
<MapView
style={{flex: 1}}
zoomEnabled={false}
region={{
latitude: 37.48,
longitude: -122.1,
latitudeDelta: 0.1,
longitudeDelta: 0.1,
}}
/>
```
**Events**
To deal with events from the user like changing the visible region we can map input event handlers from JavaScript to native view properties with `RCTBubblingEventBlock` type.
Lets add new `onRegionChange` property to a subclass of MKMapView:
``` swift
class NativeMapView: MKMapView {
@objc var onRegionChange: RCTBubblingEventBlock?
}
@ReactView
class MapView: RCTViewManager {
@ReactProperty
var onRegionChange: RCTBubblingEventBlock?
override func view() -> UIView {
let mapView = NativeMapView()
mapView.delegate = self
return mapView
}
}
extension MapView: MKMapViewDelegate {
func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool) {
guard let mapView = mapView as? NativeMapView else {
return
}
let region = mapView.region
mapView.onRegionChange?([
"latitude": region.center.latitude,
"longitude": region.center.longitude,
"latitudeDelta": region.span.latitudeDelta,
"longitudeDelta": region.span.longitudeDelta,
])
}
}
```
> **Note**
> All properties with `RCTBubblingEventBlock` must be prefixed with `on` and marked with `@objc`.
Calling the `onRegionChange` event handler property results in calling the same callback property in JavaScript:
``` js
function App(): JSX.Element {
...
this.onRegionChange = event => {
const region = event.nativeEvent;
console.log(region.latitude)
};
return (
<MapView
style={{flex: 1}}
onRegionChange={this.onRegionChange}
/>
);
}
```
For more details about Native UI Components, see: https://reactnative.dev/docs/native-components-ios.
## Documentation
### `@ReactModule`
The macro exports and registers a class as a native module for React Native.
``` swift
@ReactModule(jsName: String? = nil, requiresMainQueueSetup: Bool = false, methodQueue: DispatchQueue? = nil)
```
**Parameters**
- **jsName**: JavaScript module name. If omitted, the JavaScript module name will match the class name.
- **requiresMainQueueSetup**: Let React Native know if your module needs to be initialized on the main queue, before any JavaScript code executes. If value is `false` an class initializer will be called on a global queue. Defaults to `false`.
- **methodQueue**: The queue that will be used to call all exported methods. By default exported methods will call on a global queue.
### `@ReactMethod`
The macro exposes a method of a native module to JavaScript.
``` swift
@ReactMethod(jsName: String? = nil, isSync: Bool = false)
```
**Parameters**
- **jsName**: JavaScript method name. If omitted, the JavaScript method name will match the method name.
- **isSync**: Calling the method asynchronously or synchronously. If value is `true` the method is called from JavaScript synchronously on the JavaScript thread. Defaults to `false`.
> **Note**
> If you choose to use a method synchronously, your app can no longer use the Google Chrome debugger. This is because synchronous methods require the JS VM to share memory with the app. For the Google Chrome debugger, React Native runs inside the JS VM in Google Chrome, and communicates asynchronously with the mobile devices via WebSockets.
### `@ReactView`
The macro exports and registers a class as a native UI component for React Native.
``` swift
@ReactView(jsName: String? = nil)
```
**Parameters**
- **jsName**: JavaScript UI component name. If omitted, the JavaScript UI component name will match the class name.
### `@ReactProperty`
The macro exports a property of a native view to JavaScript.
``` swift
@ReactProperty(keyPath: String? = nil, isCustom: Bool = false)
```
**Parameters**
- **keyPath**: An arbitrary key path in the view to set a value.
- **isCustom**: Handling a property with a custom setter `@objc func set_Name(_ value: Type, forView: ViewType?, withDefaultView: ViewType?)` on a native UI component. Defaults to `false`.
## Requirements
- Xcode 15 or later.
- Swift 5.9 or later.
- React Native 0.60 or later.
## Installation
### XCode
1. Select `File > Add Package Dependencies...`. (Note: The menu options may vary depending on the version of Xcode being used.)
2. Enter the URL for the the package repository: `https://github.com/ikhvorost/ReactBridge.git`
3. Input a specific version or a range of versions for `Dependency Rule` and a need target for `Add to Project`.
4. Import the package in your source files:
```
import React
import ReactBridge
...
```
### Swift Package
For a swift package you can add `ReactBridge` directly to your dependencies in your `Package.swift` file:
```swift
let package = Package(
...
dependencies: [
.package(url: "https://github.com/ikhvorost/ReactBridge.git", from: "1.0.0")
],
targets: [
.target(name: "YourPackage",
dependencies: [
.product(name: "ReactBridge", package: "ReactBridge")
]
),
...
...
)
```
## Licensing
This project is licensed under the MIT License. See [LICENSE](LICENSE) for more information.
[](https://www.paypal.com/donate/?hosted_button_id=TSPDD3ZAAH24C)
| Swift Macros for React Native | react-native,swift,swift-macros,javascript,swift-package-manager,xcode | 2023-07-24T07:04:57Z | 2024-05-02T21:06:18Z | 2024-05-02T21:06:18Z | 2 | 2 | 99 | 0 | 4 | 11 | null | MIT | Swift |
Omar95-A/E-Commerce-Web-App | main | # E-Commerce Web App
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.7.
> Web application called `Famms` Is A Platform to Sell Products Online. In This Project I Created Web Application Using Angular Framework And [Fake Store API](https://fakestoreapi.com/) which is Fake store rest API for e-commerce or shopping website prototype. I created this web application, based on a [Html Design](https://html.design/download/famms-ecommerce-html-template/) website design and distributed by [ThemeWagon](https://themewagon.com).
### Project In Progress โ๏ธ
#### To be clear, the images in this website are of people that do not exist. They are not real, they are from a site that offers images of fake people AI generated. The names are also fake names.
#### To visit the web application: [Live Preview](https://omar95-a.github.io/E-Commerce-Web-App/).
<img alt="Night Coding" src="https://github.com/Omar95-A/E-Commerce-Web-App/blob/main/src/assets/imgs/20240225174603-ezgif.com-crop.gif" width="600" align="center"/>
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
| Web application called Famms Is A Platform to Sell Products Online. In This Project I Created Web Application Using Angular Framework And Fake Store API. | angular,api,css3,e2e-testing,html5,javascript,jquery,typescript,unit-testing,webpack | 2023-08-07T18:17:18Z | 2024-02-25T16:02:03Z | null | 1 | 0 | 96 | 0 | 0 | 11 | null | null | TypeScript |
midasit-dev/moaui | main | <!-- markdownlint-disable-next-line -->
<br />
<p align="center">
<a href="https://midasit.com/" rel="noopener" target="_blank"><img width="150" src="https://raw.githubusercontent.com/midasit-dev/moaui-fixed-repo/main/svg/logo_circle_30p.svg" alt="moaui logo"></a>
</p>
<h1 align="center">moaui</h1>
<p align="center">
<b>moaui</b> contains foundational React UI component libraries for shipping new features faster.
</p>
<div align="center">
[](https://www.github.com/midasit-dev/moaui)
[](https://www.github.com/midasit-dev/moaui)
[](https://www.github.com/midasit-dev/moaui)
[](https://www.github.com/midasit-dev/moaui)
[](https://www.github.com/midasit-dev/moaui)
[](https://www.npmjs.com/package/@midasit-dev/moaui)
[](https://www.npmjs.com/package/@midasit-dev/moaui)
[](https://www.npmjs.com/package/@midasit-dev/moaui)
</div>
## Installation
moaui is available as an [npm package](https://www.npmjs.com/package/@midasit-dev/moaui).
**npm:**
```bash
npm install @midasit-dev/moaui
```
**yarn:**
```bash
yarn add @midasit-dev/moaui
```
<br />
## Getting started with moaui
Here is an example of a basic app using moaui's `Button` component:
```jsx
import * as React from 'react';
import { Button } from '@midasit-dev/moaui';
function App() {
return <Button>Hello World</Button>;
}
```
<br />
## License
This project is licensed under the terms of the
[MIT license](/LICENSE).
| React UI component libraries for Midas Open API | javascript,react,react-components,typescript,moa-design,moa-ui | 2023-07-21T04:36:52Z | 2024-05-21T04:58:19Z | 2024-02-26T07:54:37Z | 10 | 47 | 858 | 3 | 1 | 11 | null | null | TypeScript |
ShahandFahad/IBM-full-stack-software-developer | main | # IBM Full Stack Software Developer
Prepare for a rewarding career in software development with the IBM Full Stack Software Developer program. In less than 4 months, you'll acquire the in-demand skills and tools used by industry professionals for front-end, back-end, and cloud-native application development, all without needing prior experience.
## Program Overview
- **Full Stack Development:** Learn end-to-end computer system application development, covering both front-end and back-end coding.
- **Cloud Native Development:** Explore the development of programs designed to work on cloud architecture, enhancing flexibility and adaptability.
## Key Technologies Covered
- Cloud foundations
- GitHub
- Node.js
- React
- CI/CD
- Containers
- Docker
- Kubernetes
- OpenShift
- Istio
- Databases
- NoSQL
- Django ORM
- Bootstrap
- Application Security
- Microservices
- Serverless computing
- And more.
## Program Outcome
Upon program completion, you will have developed several applications using front-end and back-end technologies, deploying them on a cloud platform using Cloud Native methodologies. Showcase your projects through your GitHub repository to share your portfolio with peers and prospective employers.
This program is ACEยฎ recommended, allowing you to earn up to 18 college credits upon completion.
## Certificates
1. [Introduction to Cloud Computing](https://coursera.org/share/8f69700f71b8798e0f21ccba220069fb)
2. [Introduction to Web Development with HTML, CSS, JavaScript](https://coursera.org/share/20492cac6fc0dab8c96fa15c44044f87)
3. [Getting Started with Git and GitHub](https://coursera.org/share/04199c3db7909895a15239aa5eb618e0)
4. [Developing Front-End Apps with React](https://coursera.org/share/c09b0904aa9d406099b5d83344d1edf6)
5. [Developing Back-End Apps with Node.js and Express](https://www.coursera.org/account/accomplishments/verify/LF6XA5LWXEQX?utm_source=link&utm_medium=certificate&utm_content=cert_image&utm_campaign=sharing_cta&utm_product=course)
6. [Python for Data Science, AI & Development](https://coursera.org/share/b8ac938b04dce9c486ddf28d3d206e63)
7. [Developing AI Applications with Python and Flask](https://coursera.org/share/5bb92f27b7def88c137ccb3e5ca31909)
8. [Django Application Development with SQL and Databases](https://coursera.org/share/aec559f89a2e032ccfec757b1804b20a)
9. [Introduction to Containers w/ Docker, Kubernetes & OpenShift](https://coursera.org/share/f3488f93ee3f08eac4e75fe1df172d33)
10. [Application Development using Microservices and Serverless](https://coursera.org/share/95e70b74979cccd7b96f3b248186a0f6)
11. [Full Stack Cloud Development Capstone Project](https://coursera.org/share/980c36d60cbb0ce797a35636e930fb04)
12. [Full Stack Software Developer Assessment](https://coursera.org/share/717e5fdcf261779282157039e7668703)
[Visit: Final Capstone Project](https://github.com/ShahandFahad/agfzb-CloudAppDevelopment_Capstone.git)
## Specialization Certificate
### IBM Full Stack Software Developer
[IBM Full Stack Software Developer](https://coursera.org/share/dddc8036dc8fa3765e6253fa1d9716c7)

## Other Courses
### Meta Front End Developer
[Meta Front End Developer](https://github.com/ShahandFahad/Meta-Front-End-Developer.git)
### Meta Front End Developer Capstone
[LittleLemon Using React](https://github.com/ShahandFahad/Little-Lemon.git)
### Meta Back End Developer
[LittleLemon Using React](https://github.com/ShahandFahad/Little-Lemon.git)
### Meta Back End Developer
[Meta Back End Developer](https://github.com/ShahandFahad/Meta-Back-End-Developer.git)
### IBM Full Stack Software Developer Capstone
[Visit: Final Capstone Project](https://github.com/ShahandFahad/agfzb-CloudAppDevelopment_Capstone.git)
| ๐ Pursuing excellence in software development with the IBM Full Stack Software Developer program. ๐ Master the art of end-to-end application development, cloud-native technologies, and earn ACEยฎ recommended college credits. | backend,frontend,fullstack-development,database,django,fullstack-developer,javascript,nodejs,python,react | 2023-07-28T11:29:48Z | 2023-12-27T13:17:41Z | null | 1 | 28 | 113 | 0 | 9 | 11 | null | null | Jupyter Notebook |
Victorola-coder/VickyJay | main | # VickyJay - Personal Portfolio Website

Welcome to my personal portfolio! This project showcases my frontend development skills and projects I've worked on. Feel free to explore the different sections to learn more about me and my work.
## Technologies Used
- React.js: A popular JavaScript library for building user interfaces.
- Tailwind CSS: A utility-first CSS framework for rapidly styling web applications.
- React Router: A library for managing routing and navigation in a React application.
- Framer Motion: A motion library for creating smooth animations and transitions.
- React Icons: A library providing a wide range of icons for your projects.
## Features
- Responsive design: The portfolio is fully responsive to ensure a seamless experience on different devices.
- Smooth animations: Framer Motion is used to add elegant animations and transitions.
- Easy navigation: React Router allows for smooth navigation between different sections of the portfolio.
- Project showcase: A dedicated section to showcase my projects with descriptions and links.
- Contact information: Users can easily get in touch with me through provided contact details.
## Installation and Setup
1. Clone this repository to your local machine using `git clone`.
2. Navigate to the project directory: `cd vickyjay`.
3. Install project dependencies using `npm install`.
4. Start the development server: `npm run dev`.
5. Open your web browser and navigate to `http://localhost:5173` to view the portfolio.
## Usage
Feel free to customize this portfolio to showcase your own projects and skills. Update the project descriptions, images, and links to match your work.
## Contact
If you have any questions or would like to get in touch, you can reach me at:
- Email: victoluolatunji@gmail.com
- GitHub: [Vitorola-coder](https://github.com/Victorla-coder)
- Portfolio: [preview](https://vickyjay.vercel.app)
Thank you for visiting my portfolio!
## Todos
- add few sleazy animation.
- change the experience section into an array and map it.
- change the services section into an array and map it.
- 404 page - done โโ
- more features yet to come.
| personal portfolio website i guesss, it can always get better | framer-motion,javascript,portfolio,react-reveal,reactjs,tailwindcss | 2023-08-04T12:45:04Z | 2024-05-06T09:36:48Z | null | 1 | 2 | 169 | 1 | 2 | 11 | null | MIT | JavaScript |
skiff26/dragdrop | main | # Drag And Drop Components for Vue.js
Improve Your Web App with Seamless Drag and Drop Integration.
[Video Tutorial](https://youtu.be/NfteKvQ943s)
## Advantages
1. **Library essence** - Vue.js Drag and Drop is a simple, ready-to-use solution for adding drag-and-drop functionality to your web application. You can easily integrate it by simply copying and pasting our pre-built components.
2. **User-friendly experience** - Add dragging functionality to your Vue.js project with just a few lines of code. Our Drag and Drop feature is straightforward and intuitive. Our components are built using Vue 3 with the Composition API.
3. **No extra installations** - With Vue.js Drag and Drop, there's no hassle of additional dependencies. Easily integrate our components into your project and enjoy seamless element dragging.
## Documentation
- [Introduction](https://skiff26.github.io/dragdrop/#/docs/introduction)
- [Quick Start](https://skiff26.github.io/dragdrop/#/docs/start)
- [Tutorial](https://skiff26.github.io/dragdrop/#/docs/tutorial)
- [Props and Emits](https://skiff26.github.io/dragdrop/#/docs/props-and-emits)
- [Support](https://skiff26.github.io/dragdrop/#/docs/support)
- [FAQ](https://skiff26.github.io/dragdrop/#/docs/faq)
## Components
- [Simple](https://skiff26.github.io/dragdrop/#/examples/simple)
- [Trello](https://skiff26.github.io/dragdrop/#/examples/trello)
- [Handle](https://skiff26.github.io/dragdrop/#/examples/handle)
- [Clone](https://skiff26.github.io/dragdrop/#/examples/clone)
- [Clone on control](https://skiff26.github.io/dragdrop/#/examples/controlclone)
- [Trash](https://skiff26.github.io/dragdrop/#/examples/trash)
- [Avatar](https://skiff26.github.io/dragdrop/#/examples/avatar)
- [File Upload](https://skiff26.github.io/dragdrop/#/examples/upload)
## License
[MIT](https://github.com/skiff26/dragdrop/blob/main/LICENSE.md)
Copyright ยฉ2023 - present, Artem Kulchytskyi
| ๐ Vue 3: Ready to use Drag and Drop components | drag-and-drop,drag-drop,vue3,vuecomponents,vuejs,javascript | 2023-07-31T14:24:52Z | 2024-03-31T06:56:07Z | 2023-09-07T06:21:10Z | 1 | 0 | 80 | 0 | 0 | 11 | null | MIT | Vue |
endpointservices/mps3 | main | <p align="center" width="100%">
<img width="80%" src="docs/diagrams/vendorless_db_over_s3.svg">
</p>
# MPS3
โ ๏ธ Under development
## Vendorless Multiplayer Database over *any* s3-compatible storage API.
- Avoid vendor lock-in, your data stays with you.
- Built for operational simplicity
- no infra to setup and manage apart from the storage bucket.
- Designed for correctness
- [sync protocol](docs/sync_protocol.md) is [causally consistent](docs/causal_consistency_checking.md) under concurrent writes.
- Web optimized, 10x smaller than the AWS S3 browser client.
- Offline-first, fast page loads and no lost writes.
Tested with S3, Backblaze, R2 and self-hosted solutions like Minio. Interactive demo available on [Observable](https://observablehq.com/@tomlarkworthy/mps3-vendor-examples)
## Concepts
MPS3 is a key-value document store. A manifest lists all keys in the DB as references to files hosted on s3. Setting a key first writes the content to storage, then updates the manifest. To enable subscriptions, the client polls the manifest for changes. To enable causally consistent concurrent writes, the manifest is represented as a time indexed log of patches and checkpoints which is resolved on read.
### Read more
MPS3 is built on strong theoretical foundations. Technical articles are written in [/docs](docs/), some highlights:-
- [Randomized, Efficient, Causal consistency checking](docs/causal_consistency_checking.md)
- [JSON Merge Patch: Algebra and Applications](docs/JSON_merge_patch.md)
- [The sync protocol for a client-side, causally consistent, multiplayer DB over the S3 API.md](docs/sync_protocol.md))
## API
To use this library you construct an MP3S class.
[mps3 class](docs/api/classes/MPS3.md)
### Quick start ([Codepen](https://codepen.io/tomlarkworthy/pen/QWzybxd))
```js
import {MPS3} from 'https://cdn.skypack.dev/mps3@0.0.58?min';
const mps3 = new MPS3({
defaultBucket: "<BUCKET>",
s3Config: {
region: "<REGION>",
credentials: {
accessKeyId: "<ACCESS_KEY>",
secretAccessKey: "<SECRET_KEY>"
}
}
});
mps3.put("key", "myValue"); // can await for confirmation
mps3.subscribe("key", (val) => console.log(val)); // causally consist listeners
const value = await mps3.get("key"); // read-after-write consist
```
### CORS
For the client to work properly some CORS configuration is required on the bucket so the Javascript environment can observe relevant
metadata.
```ini
[{
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET", "PUT", "DELETE"],
"AllowedOrigins": ["*"],
"ExposeHeaders": ["X-Amz-Version-Id", "ETag", "Date"]
}]
```
### Authorization
There is no in-built authorization. Every use-case needs different authorization. A malicious user could sabotage the manifest file if they have unrestricted write permissions to the manifest file, but not all use-cases have malicious users. There are a few options:-
- Share access key only to trusted personal.
- If using S3 and IAM, issue STS tokens that grant access to a subpath of a bucket per user/team
- For public use, use a third-party auth solution and a authenticating proxy. Verify manifest changes are valid during passthrough, there is an example of an proxy configuration [here](mps3-proxy.endpointservices.workers.dev/) that hides credentials from the browser using a CloudFlare worker.
### Advanced Usage
Consult the [API Documentation
](docs/api/classes/MPS3.md) for advanced usage.
- atomic batch operations
- multiple manifests
| Infraless Database over any s3 storage API. | browser,javascript,localfirst,multiplayer,s3 | 2023-07-22T06:11:08Z | 2024-03-23T22:45:51Z | null | 2 | 2 | 285 | 13 | 1 | 10 | null | MIT | TypeScript |
amankushwaha577/WellSpring | main | # ``` WELLSPRING ```
WellSpring is your essential text chat app, offering a streamlined platform for clear and efficient communication. With a user-friendly interface and lightning-fast message delivery, it's the perfect tool for staying connected through the power of words. Say goodbye to distractions and embrace the simplicity of pure text conversations with WELLSPRING.

-  `WellSpring is the ultimate instant messaging app that lets you connect with friends, family, and colleagues in real-time.`
-  `WellSpring is your passport to the world of global communication. Break down language barriers with built-in translation features and chat with people from all corners of the globe. Discover new cultures, make international friends, and broaden your horizons with WellSpring.`
-  `Privacy-focused text chat app that encrypts your messages end-to-end. Keep your conversations secure and have peace of mind knowing your texts are for your eyes only.`
-  `WellSpring is the lightweight option for text chat enthusiasts. It's designed to be fast and efficient, ensuring you can engage in text conversations without slowing down your device.`
<br>
# LANGUAGES, FRAMEWORKS, LIBRARY AND DATABASE
-  `REACT.js`
-  `NODE.js`
-  `EXPRESS.js`
-  `Socket.io`
-  `Java Script`
-  `HTML5, CSS3 and Bootstrap4`
### DataBase
```diff
Mongo DB
```
<br>
# Online Reachability:
TECHNICAL SIDES OF FRIEND'S SPY
```sh
1. Technology Stack: Built on a robust stack, including React for the front-end, Node.js for the server,
Socket.io for real-time functionality,
MongoDB for secure data storage,
and Express for reliable server-client communication.
2. Efficient Message Delivery: Socket.io ensures that messages are delivered instantaneously,
providing a dynamic and immersive chat experience.
3. Data Security: MongoDB is employed to securely store messages,
preserving valuable conversations and shared information.
4. Express Integration: Express is integrated to facilitate a seamless connection between the front-end and back-end,
ensuring a reliable and efficient user experience.
```
License
----
@Copyright WellSpring 2022
| REACT.js + NODE.js + SOCKET.io + MONGODB + EXPRESS.js + JAVASCRIPT + HTML5 + CSS3 + BOOTSTRAP | chat-application,javascript,moongo,nodejs,react,reactjs,socket-io,html-css-javascript,javascipt | 2023-07-30T13:08:14Z | 2024-04-14T16:49:45Z | null | 1 | 0 | 34 | 3 | 0 | 10 | null | null | JavaScript |
sudokar/cdk-appsync-typescript-resolver | main | # cdk-appsync-typescript-resolver
[](https://www.npmjs.com/package/cdk-appsync-typescript-resolver)
[](https://app.codacy.com/gh/sudokar/cdk-appsync-typescript-resolver/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[](https://github.com/sudokar/cdk-appsync-typescript-resolver/actions/workflows/release.yml)
[](https://github.com/sudokar/cdk-appsync-typescript-resolver/releases)
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/sudokar/nx-serverless)

[](https://gitpod.io/#https://github.com/sudokar/cdk-appsync-typescript-resolver)
Constructs to transpile and bundle Typescript to valid AWS Appsync's JS resolvers
[](https://constructs.dev/packages/cdk-appsync-typescript-resolver)
# โจ Constructs
- [AppsyncTypescriptFunction](src%2Flib%2FAppsyncTypescriptFunction.ts) - To transpile and bundle Typescript
- [TSExpressPipelineResolver](src%2Flib%2FJSExpressPipelineResolver.ts) - To use AppsyncTypescriptFunction with boilerplate code
# ๐ Usage
- AppsyncTypescriptFunction
```typescript
import { AppsyncTypescriptFunction } from 'cdk-appsync-typescript-resolver'
...
const appsyncFunction = new AppsyncTypescriptFunction(stack, "TSDemoFunction", {
name: "TSDemoFunction",
api: new appsync.GraphqlApi(...),
path: path.join(__dirname, "path", "to", "file.ts"),
dataSource: new appsync.DynamoDbDataSource(...),
sourceMap: true,
});
```
- TSExpressPipelineResolver
```typescript
import { TSExpressPipelineResolver } from 'cdk-appsync-typescript-resolver'
...
const resolver = new TSExpressPipelineResolver(testStack, "DemoResolver", {
api: new appsync.GraphqlApi(...),
typeName: "Query",
fieldName: "hello",
tsFunction: new AppsyncTypescriptFunction(...),
});
```
> Tip: Use [GraphQL Code Generator](https://the-guild.dev/graphql/codegen) to generate Typescript types from GraphQL schema(s) to use in resolvers
Checkout the demo project for examples [cdk-appsync-typescript-resolver-demo](https://github.com/sudokar/cdk-appsync-typescript-resolver-demo)
# References
[JavaScript resolvers overview](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html)
[Bundling, TypeScript, and source maps](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html#additional-utilities)
[GraphQL Code Generator](https://the-guild.dev/graphql/codegen)
| AWS CDK construct to build AppSync JS resolvers using Typescript | appsync,aws-appsync,aws-cdk,cdk,javascript,resolver,typescript | 2023-07-29T16:04:51Z | 2024-03-13T09:28:11Z | 2024-03-13T09:28:11Z | 1 | 25 | 29 | 0 | 2 | 10 | null | Apache-2.0 | TypeScript |
MastooraTurkmen/Tindog-project | main | # About Tindog Project
https://tindog-best-dogs.netlify.app/
> Tindogs which they can do many things, and they have several skills
1. By clicking **_X_** icon you will vote it *Nope*
2. By clicking **_Heart_** icon you will vote it *Like*
### Teddy, 30

### Rex, 25
+ Art. Literature. Natural wine. Yoga


### Bella, 43


### Tinder, 20

-----
## Cloning the project ๐ช๐จ
```
# Clone this repository
$ git clone https://github.com/MastooraTurkmen/Tindog-project.git
# Go inside the repository
$ cd Tindog-project
```
-----
## Languages and Tools are used ๐ฃ๏ธ ๐ง
1. **Languages** ๐ฃ๏ธ
+ [HTML](https://github.com/topics/html)
+ [HTML5](https://github.com/topics/html5)
+ [CSS](https://github.com/topics/css)
+ [CSS3](https://github.com/topics/css3)
+ [JavaScript](https://github.com/topics/javascript)
2. **Tools** ๐ง
+ [Chrome](https://github.com/topics/chrome)
+ [VSCode](https://github.com/topics/vscode)
+ [Figma](https://github.com/topics/figma)
+ [Netlify](https://github.com/topics/netlify)
-----
## Deployment๐ฅ
1. How to deploy our project to the Netlify site?
2. I use [Netlify App](https://app.netlify.com/) for deploying my projects.
3. Go to the Netlify site and select Add a new site.
4. From there select **_Deploy with Github_**.
5. Then write your project name and select it.
6. After selecting here you can see that the project **_Review configuration for Tindog-project_** and then select the **_Deploy Tindog-project_** Button.
7. Now your project is Live.
-----
## Author ๐ฉ๐ปโ๐ป
**Mastoora Turkmen**
[LinkedIn](https://www.linkedin.com/in/mastoora-turkmen/)
<br>
[Github](https://github.com/MastooraTurkmen/)
<br>
[Twitter](https://twitter.com/MastooraJ22)
------
# Codes that are used
1. ***Index HTML***
2. ***Index CSS***
3. ***Index JS***
+ ***Dog JS***
+ ***Data JS***
## Index HTML
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/svg+xml" href="./images/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css">
<link rel="stylesheet" href="index.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
<title>TinDogs</title>
</head>
<body>
<header>
<div class="icons">
<img src="images/icon-profile.png" class="small-icon">
<img src="images/logo.png" class="small-icon logo-icon">
<img src="images/icon-chat.png" class="small-icon">
</div>
</header>
<section>
<div class="main" id="main">
</div>
</section>
<section class="button">
<button class="liked-btn" id="liked-btn"><img src="images/icon-cross.png"></button>
<button class="Nope-btn" id="Nope-btn"><img src="images/icon-heart.png"></button>
</section>
<script src="/index.js" type="module"></script>
</body>
</html>
```
## Index CSS
```css
html,
body{
font-family: 'Poppins', sans-serif;
color: #ffff;
}
/* //////////////////
Typography
////////////////// */
h2{
color: white;
padding-top: 630px;
margin-bottom: 7px;
}
p{
color: #B7B7B7;
margin-bottom: 30px;
}
h2, p{
margin-left: 20px;
}
img{
max-width: 100%;
}
/* /////////////
Buttons
/////////////// */
button{
border: none;
border-radius: 50%;
padding: 16px;
margin: 16px;
background: #ffff;
}
.button{
display: flex;
justify-content: center;
}
#Nope-btn:hover,
#Nope-btn:focus{
background: #DBFFF4;
}
#liked-btn:hover,
#liked-btn:focus{
background: #FFE7EF;
}
/* ///////////////
icons and logs
///////////////// */
.icons{
display: flex;
justify-content: space-between;
margin-top: 20px;
margin-bottom: 20px;
}
.small-icon{
width: 40px;
height: 40px;
}
.logo-icon{
width: 70px;
}
.main, header {
max-width: 95%;
margin: 0 auto;
}
@media (min-width: 550px){
header {
max-width: 500px;
}
}
/* ///////////////
main-section
///////////////// */
.main{
display: flex;
justify-content: center;
background-size: cover;
object-fit: cover;
position: relative;
border-radius: 16px;
height: 745px;
width: 500px;
}
.information{
height: 700px;
width: 500px;
}
.Badge-images{
display: flex;
position: absolute;
width: 40%;
top: 9%;
left: 5%;
rotate: -35deg;
}
.bio{
margin-top: 0px;
padding-top: 0px;
margin-bottom: 30px;
}
```
## Index JS
```js
import Dog from './Dog.js'
import dogs from './data.js'
const newgetDogs = () => {
const freshDog = dogs.shift()
dogs.push(freshDog)
return freshDog
}
document.getElementById('liked-btn').addEventListener('click', (e) => {
dog.hasBeenLiked = true
anotherDog()
})
document.getElementById('Nope-btn').addEventListener('click', (e) =>{
anotherDog()
})
function anotherDog(){
dog.hasBeenSwiped = true
renderDog()
dog = new Dog(newgetDogs())
setTimeout(()=>{
renderDog()
}, 2000)
}
function renderDog(){
document.getElementById('main').innerHTML = dog.getDogHtml()
document.getElementById('main').style.background = `url(${dog.avatar})`
document.getElementById('main').style.backgroundSize = "cover"
}
let dog = new Dog(newgetDogs())
renderDog()
```
### Dog JS
```js
class Dog{
constructor(data){
Object.assign(this, data)
}
getDog(){
const {name, age, bio} = this
return `
<div class="information">
<h2>${name}, ${age}</h2>
<p class="bio">${bio}</p>
</div>
`
}
setBadgeHtml(){
if(this.hasBeenSwiped){
if(this.hasBeenLiked){
return `<img src="https://i.postimg.cc/HnwJQr54/badge-nope.png">`
} else {
return `<img src="https://i.postimg.cc/NML77kf8/badge-like.png">`
}
} else{
return ""
}
}
getDogHtml(){
return `
<div class ="dog-card" id="dog-card">
${this.getDog()}
</div>
<div class="Badge-images">
${this.setBadgeHtml()}
</div>
`
}
}
export default Dog
```
### Data JS
```js
const dogs = [
{
name: "Rex",
avatar: "https://i.postimg.cc/T1HzN1fB/dog-rex.jpg",
age: 25,
bio: "Art. Literature. Natural wine. Yoga.",
hasBeenSwiped: false,
hasBeenLiked: false
},{
name: "Bella",
avatar: "https://i.postimg.cc/hjYsHdQ8/dog-bella.jpg",
age: 43,
bio: "Yup, that's my owner. U can meet him if you want",
hasBeenSwiped: false,
hasBeenLiked: false
},
{
name: "Teddy",
avatar: "https://i.postimg.cc/zGKzFrV3/dog-teddy.jpg",
age: 30,
bio: "How you doin?",
hasBeenSwiped: false,
hasBeenLiked: false
}
]
export default dogs
```
-------
## Updating the images to the direct links ๐ ๐
I updated image data to direct links because when I uploaded to Netlify, my images didn't show,
so I used the ***"PostImages"*** https://postimages.org/
| Tindogs which they can do many things, and they have several skills | css,html,javascript | 2023-07-27T11:27:06Z | 2023-12-21T12:28:10Z | null | 1 | 0 | 148 | 0 | 0 | 10 | null | null | JavaScript |
NitBravoA92/space-travelers-hub | dev | <a name="readme-top"></a>
<div align="center">
<img src=".\src\assets\images\logo.png" alt="Space Travelers Hub" width="70" height="auto" />
<br/>
<h1><b>Space Travelers' Hub</b></h1>
</div>
# ๐ Table of Contents
- [๐ Table of Contents](#-table-of-contents)
- [Space Travelers' Hub](#space-travelers-hub)
- [๐ Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [๐ Live Demo ](#-live-demo-)
- [๐ป Getting Started ](#-getting-started-)
- [Setup](#setup)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Usage](#usage)
- [Build](#build)
- [๐ฅ Authors ](#-authors-)
- [๐ญ Future Features ](#-future-features-)
- [๐ค Contributing ](#-contributing-)
- [โญ๏ธ Show your support ](#๏ธ-show-your-support-)
- [๐ Acknowledgments ](#-acknowledgments-)
- [๐ License ](#-license-)
# Space Travelers' Hub<a name="about-project"></a>
**Space Travelers' Hub** is a web application of a company that offers space travel services. The application is made with ReactJS and Redux to manage the global state of the application, the spaceX API is used to query and show users the list of available Missions and Rockets.
## ๐ Built With <a name="built-with"></a>
### Tech Stack <a name="tech-stack"></a>
<details>
<summary>Client</summary>
<ul>
<li><a href="https://es.react.dev">React Library</a></li>
<li><a href="https://reactrouter.com/en/main">React Router</a></li>
<li><a href="https://nodejs.org">Node.js</a></li>
<li><a href="https://create-react-app.dev">Create React App</a></li>
<li><a href="https://stylelint.io/">Stylelint.io</a></li>
<li><a href="https://eslint.org/">ESlint.org</a></li>
<li><a href="https://redux-toolkit.js.org/">Redux Toolkit</a></li>
</ul>
</details>
### Key Features <a name="key-features"></a>
- **Using the ReactJS library**
- **Using the ReactJS Router library**
- **Using JSX syntax**
- **Using semantic HTML**
- **SPA Approach**
- **Responsive Design**
- **Using Redux Toolkit for a global state management**
<p align="right">(<a href="#readme-top">back to top</a>)</p>
### ๐ Live Demo <a name="live-demo"></a>
To see the application working live, you can click on the following link that contains the demo version:
- [Space Travelers' Hub - Live Demo](https://space-travelers-hub-l1ba.onrender.com/)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## ๐ป Getting Started <a name="getting-started"></a>
To get a local copy up and running, follow these steps.
### Setup
Clone this repository to your desired folder:
```sh
cd my-folder-name
git clone git@github.com:NitBravoA92/space-travelers-hub.git
```
### Prerequisites
In order to install, modify and run this project, it is necessary to have the following applications installed:
- **Git:** to manage the project versions of source code. [You can Download Git here](https://git-scm.com/)
- **Nodejs and NPM:** to install and manage the project dependencies. [Nodejs and NPM installation guide](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
- **A code editor** like Visual Studio Code (Recommended) or any other of your preference. It is necessary to open the project and add or modify the source code. [You can Download Visual Studio Code here](https://code.visualstudio.com/)
It is also important to have at least basic knowledge about ReactJS, JSX, HTML, CSS and Javascript languages so you will be able to understand and work with the code of the project.
- [Learn the basics of HTML](https://developer.mozilla.org/en-US/docs/Web/HTML)
- [Learn the basics of CSS](https://developer.mozilla.org/en-US/docs/Web/CSS)
- [JavaScript basics](https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics)
- [Javascript Arrays](https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Array)
- [Javascript Objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
- [JavaScript modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
- [ReactJS](https://react.dev/learn)
- [JSX](https://react.dev/learn/writing-markup-with-jsx)
- [Create React App](https://github.com/facebook/create-react-app)
### Install
Install this project by running the next command into your project folder:
```sh
npm install
```
All the packages and libraries necessary for the project to work will be installed in a folder called /node_module. After this installation, the project will be ready to use.
### Usage
In the project directory, you can run:
- `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
The page will reload when you make changes.
You may also see any CSS and JS linters errors in the console running the following commands:
CSS Linter
```sh
npx stylelint "**/*.{css,scss}"
```
Javascript Linter
```sh
npx eslint "**/*.{js,jsx}"
```
### Build
- `npm run build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
**Note**: Please only modify the components files and the CSS files. Do not modify configurations files of the project.
## ๐ฅ Authors <a name="authors"></a>
๐ค **Nitcelis Bravo**
- GitHub: [Nitcelis Bravo](https://github.com/NitBravoA92)
- Twitter: [@softwareDevOne](https://twitter.com/softwareDevOne)
- LinkedIn: [Nitcelis Bravo Alcala](https://www.linkedin.com/in/nitcelis-bravo-alcala-b65340158)
๐ค **Lawrence Kioko**
- GitHub: [Lawrence Muema Kioko](https://github.com/Kidd254)
- Twitter: [@twitterhandle](https://twitter.com/lawrenc98789206)
- LinkedIn: [Lawrence Muema Kioko](https://www.linkedin.com/in/lawrence-muema-kioko-972035240/)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## ๐ญ Future Features <a name="future-features"></a>
- [x] **Create My Profile view**
- [x] **Create Missions view**
- [x] **Create Rockets view**
- [x] **Use Redux to manage the states of rockets, missions**
- [x] **Fetch data using the spaceX API**
- [x] **Add CSS styles to the UI following the mobile first approach**
- [x] **Add actions and other functionality to Reserve Rocket**
- [x] **Add actions and other functionality to Cancel Reservation**
- [x] **Add actions and other functionality to Join Missions**
- [x] **Add actions and other functionality to Leave Missions**
- [x] **Display the list of Missions Joined in the My Profile view**
- [x] **Display the list of Rockets reserved in the My Profile view**
- [x] **Create Unit tests using Jest and React testing library**
- [ ] **Deploy the final version of the project and share Link Demo in the documentation**
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## ๐ค Contributing <a name="contributing"></a>
Contributions, issues, suggestions and feature requests are welcome!
Feel free to check the [issues page](../../issues/).
To do Contributions, please fork this repository, create a new branch and then create a Pull Request from your branch. You can find detailed description of this process in: [A Step by Step Guide to Making Your First GitHub Contribution by Brandon Morelli](https://codeburst.io/a-step-by-step-guide-to-making-your-first-github-contribution-5302260a2940)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## โญ๏ธ Show your support <a name="support"></a>
If you liked this project, give me a "Star" (clicking the star button at the beginning of this page), share this repo with your developer community or make your contributions.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## ๐ Acknowledgments <a name="acknowledgements"></a>
I would like to thank my Microverse teammates for their support. They have supported me a lot in carrying out this project, giving me suggestions, good advice and solving my code doubts.
## ๐ License <a name="license"></a>
This project is [MIT](./LICENSE) licensed.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
| Webapp of a company that offers space travel services. It's built with React and Redux, using spaceX API to get the data | createasyncthunk,css3,html5,javascript,reactjs,redux,redux-toolkit,spacex-api | 2023-07-23T16:09:49Z | 2023-07-27T13:46:47Z | null | 2 | 19 | 111 | 0 | 1 | 10 | null | MIT | JavaScript |
arjuncvinod/Data-Structures-and-Algorithms | main | ## โญ Introduction
Data structures & Algorithms are an essential part of programming. It comes under the fundamentals of computer science. It gives us the advantage of writing better and efficient code in less time. It is a key topic when it comes to Software Engineering interview questions so as developers, we must have knowledge of Data Structure and Algorithms
## โญ Data Structure
In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification.
Data structure is a way or a format how your data is stored in memory for effecient usage and retrieval.
## โญ Algorithms
An algorithm is a set of instructions that are used to accomplish a task, such as finding the largest number in a list, removing all the red cards from a deck of playing cards, sorting a collection of names, figuring out an average movie rating from just your friend's opinion
Algorithms are not limited to computers. They are like a set of step-by-step instructions or an even a recipe, containing things you need, steps to do, the order to do them, conditions to look for, and expected results.
## โญ Languages
- C
- C++
- C#
- Java
- Python
- Javascript
- Swift
- Go
| Data Structures and Algorithms implemented in different languages | c,cpp,csharp,go,java,javascript,python,swift | 2023-07-22T17:17:51Z | 2023-07-24T17:10:35Z | null | 1 | 2 | 11 | 0 | 1 | 10 | null | null | JavaScript |
dhruvabhat24/GPS-NAVIGATOR | main | # GPS Navigator
GPS Navigator is a web application designed to provide efficient navigation solutions using HTML, CSS, and JavaScript. The core functionality of this project is based on Dijkstra's algorithm, which enables the determination of the shortest distance between two locations on a map. Whether you're planning a road trip, a daily commute, or simply exploring new places, GPS Navigator has got you covered.
## Features
- **User-Friendly Interface:** The web application offers an intuitive and user-friendly interface, making it easy for users to input their starting and destination points.
- **Interactive Map:** The interactive map displays the available routes between the selected locations, highlighting the shortest path using Dijkstra's algorithm.
- **Shortest Distance Calculation:** GPS Navigator utilizes Dijkstra's algorithm to calculate and display the shortest distance between the chosen locations, ensuring efficient route planning.
- **Visual Representation:** The application visually represents the recommended route, making it convenient for users to follow the path and reach their destination.
## How It Works
1. **Input Locations:** Enter your starting point and destination in the provided fields on the web application.
2. **Algorithm Processing:** The application processes your input using Dijkstra's algorithm to determine the shortest route between the two locations.
3. **Route Visualization:** The recommended route is then displayed on the interactive map, showing each step of the journey.
4. **Distance Calculation:** GPS Navigator calculates and presents the exact distance between the chosen locations, helping you plan your travel time accurately.
## Technologies Used
- HTML: Provides the structure and layout of the web page.
- CSS: Enhances the visual appeal and styling of the application.
- JavaScript: Implements the Dijkstra's algorithm for route calculation and map interaction.
## Installation and Usage
1. Clone the repository to your local machine using the following command:
```
git clone https://github.com/Shivaprada-upadya/GPS-NAVIGATOR.git
```
2. Navigate to the project directory and open the `index.html` file in your web browser.
3. Input your starting and destination locations to calculate the shortest route using Dijkstra's algorithm.
## Contribution
Contributions to GPS Navigator are welcome! If you'd like to improve the application, fix bugs, or add new features, please follow these steps:
1. Fork the repository.
2. Create a new branch for your feature or bug fix:
```
git checkout -b feature/your-feature-name
```
3. Make your modifications and commit changes:
```
git commit -m "Add your commit message here"
```
4. Push your changes to your forked repository:
```
git push origin feature/your-feature-name
```
5. Create a pull request on the main repository's `main` branch.
## Visit The webpage
https://dhruvabhat24.github.io/GPS-NAVIGATOR/
##
Navigate efficiently with GPS Navigator, your go-to solution for finding the shortest distance between two locations. Plan your trips with confidence using Dijkstra's algorithm and enjoy hassle-free navigation.
https://github.com/Dhruvabhat24/GPS-NAVIGATOR/assets/122305929/1bf2fada-8543-43b0-913c-38ab87671a39
| "GPS Navigator: Your efficient travel companion! Utilize Dijkstra's algorithm for shortest routes, making travel planning a breeze with HTML, CSS, and JavaScript. Easy, accurate, hassle-free navigation." | algorithms,css,dijkstra-algorithm,github-pages,html5,javascript,mini-project | 2023-08-06T09:06:34Z | 2023-08-26T12:24:02Z | null | 3 | 4 | 31 | 0 | 3 | 10 | null | MIT | HTML |
intrepidbird/gauss | main | # Gauss Mathematics
## A Discord Bot for Mathematical Calculations

๐ค Gauss is a powerful math bot developed by [`IntrepidBird`](https://github.com/intrepidbird) & [`IntrepidMaths`](github.com/intrepidmaths).
๐ป It offers a wide range of advanced calculators, including matrix, eigenvalues, graphing, scientific, and factorial calculators. This bot also integrates with AI services such as Wolfram Alpha and OpenAI for enhanced functionality.
๐ค Some calculators are available [here](https://intrepidbird.github.io/intrepidbot/), if you don't have or cannot access Discord.
โญ **Remember to star our Repository!**
๐ - [**Gauss Website**](https://intrepidbird.github.io/gauss/)
๐ป - [**Gauss Source Code (Python)**](https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/main.py)
๐ป - [**Gauss Source Code (Javascript)**](https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/javascript-translation.js)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
## Table of Contents
- [Features](#features)
- [Supported Languages](#supported-languages)
- [Getting Started](#getting-started)
- [How to Use the Bot](#how-to-use-the-bot)
- [How to Contribute](#how-to-contribute)
- [License](#license)
- [Credits](#credits)
- [Twin Project](#twin-project)
- [Future Releases](#future-releases)
## Features
๐ป Multiple advanced calculators
๐ค AI integration with [`!ask`](https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/wolfram.py) (Wolfram Alpha API) and [`!ai`](https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/openai.py) (OpenAI API)
๐จโ๐ป 24/7 online with a `keep alive` function
๐ป Available for testing purposes
๐ป Translated to `Java`, `C++`, `Javascript`, `C`, and `C#` from `Python` ๐ฅณ
## Supported Languages
<p align="left"> <a href=https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/main.py target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg" alt="python" width="40" height="40"/> </a> <a href="https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/factorial-translation.c" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/c/c-original.svg" alt="c" width="40" height="40"/> </a> <a href="https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/cpp-translation.cpp" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/cplusplus/cplusplus-original.svg" alt="cplusplus" width="40" height="40"/> </a> <a href="https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/cs-translation.cs" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg" alt="csharp" width="40" height="40"/> </a> <a href="https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/java-translation.java" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/java/java-original.svg" alt="java" width="40" height="40"/> </a> <a href="https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/javascript-translation.js" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="javascript" width="40" height="40"/> </a> <a href="https://github.com/intrepidbird/intrepidbot/blob/main/mathbot/typescript-translation.ts" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/typescript/typescript-original.svg" alt="typescript" width="40" height="40"/> </a> </p>
</p>
## Getting Started
๐จโ๐ป To use Gauss, you can either join the `IntrepidMaths` Discord Server or follow these steps:
1. Clone the repository.
2. Run `python3 main.py` (Don't forget to change the bot token and Wolfram Alpha ID to use Gauss).
3. Invite the bot using `https://discord.com/oauth2/authorize?client_id={applicationid}&scope=bot%20applications.commands&permissions=105227086912`
## How to Use the Bot
๐ป IntrepidBot offers a variety of mathematical commands. Here are some examples:
* `!calculate [expression]`: Evaluate mathematical expressions.
* `!graph [expression]`: Plot mathematical functions.
* `!factorial [number]`: Calculate factorials.
* `!sin [number]`, `!cos [number]`, `!tan [number]`: Compute trigonometric functions.
* `!ask [question]`: Ask mathematical questions using Wolfram Alpha.
Refer to the bot's help command (`!help`) for a full list of available commands and usage instructions.
## How to Contribute
๐ฅณ We welcome contributions to Gauss! If you'd like to contribute, please follow these steps:
1. Fork the repository.
2. Clone the forked repository to your local machine.
3. Make your changes.
4. Test your changes thoroughly.
5. Commit your changes with clear commit messages.
6. Push your changes to your fork.
7. Create a pull request to the main repository.
Please review our [Code of Conduct](https://github.com/intrepidbird/intrepidbot/blob/main/CODE-OF-CONDUCT.md) and [Security Policy](https://github.com/intrepidbird/intrepidbot/blob/main/SECURITY.md) before contributing.
## License
* Gauss is licensed under the [MIT License](https://en.wikipedia.org/wiki/MIT_License) which allows other developers to use, modify, and distribute the code.
* Please refer to the [LICENSE](https://github.com/intrepidbird/intrepidbot/blob/main/LICENSE) file for more details on permissions and limitations.
## Credits
* [`IntrepidBird`](https://github.com/intrepidbird)
* [`IntrepidMaths`](https://sites.google.com/view/IntrepidMaths)
## Twin Project
Check out our twin project, [`Psyduck AI`](https://github.com/intrepidbird/psyduck).
## Future Releases
IntrepidBot will be available in [`Javascript`](https://github.com/intrepidbird/intrepidbot/tree/main/javascript) in the future!
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks for checking out **Gauss**!
Here's a CTF flag: `intrepidbird{g4u5s_i5_7h3_g0A7_1337}`
| Discord bot written in Python with mathematical functions and applications that can be applied to the real world or competitions | discord-bot,mathematics,maths,python,javascript,hacktoberfest,artificial-intelligence,openai,wolfram-alpha,aops | 2023-07-31T19:13:22Z | 2024-04-13T00:16:09Z | 2023-10-29T20:10:12Z | 9 | 14 | 221 | 0 | 12 | 10 | null | MIT | Python |
sglkc/moegi | master | <div align="center">
<h1>Moegi</h1>
<video src="https://github.com/sglkc/moegi/assets/31957516/811b1143-d51f-4084-84ff-39da63b99c47" width="360" autoplay="false" ></video>
<br />
[](LICENSE)
[](https://github.com/sglkc/moegi/issues)
[](https://github.com/sglkc/moegi/pulls)
[](https://github.com/sglkc/moegi/releases/latest)
<strong>An extension for Chromium browsers to customize lyrics in Spotify Web Player.</strong>
<a href="https://github.com/sglkc/moegi/issues">Report a Bug</a>
<strong>ยท</strong>
<a href="https://github.com/sglkc/moegi/issues">Request a Feature</a>
Features lyrics translation for over 100 languages powered by Google Translate and \
romanization for Chinese, Korean, Japanese, Cyrillic, and many more non-latin scripts! \
*Tested on Google Chrome (122.0.6261.111) and Brave Browser (123.1.64.113) on Linux*
<br />
</div>
## Getting Started
Chromium browsers doesn't support installing extensions directly outside of Chrome Web Store, so follow these steps carefully:
1. Download the **latest release (moegi-x.x.x.zip)** archive from https://github.com/sglkc/moegi/releases/latest
2. **Extract and remember the location** of the extracted folder (moegi-x.x.x)
3. Open Chrome extensions page at ***chrome://extensions***
4. Toggle **developer mode** at the topmost bar
5. Click on the new **Load unpacked** button
6. Find and **select the folder** you extracted earlier (moegi-x.x.x)
7. Moegi should be added to the list and switched on, pin the extension for easy access
- Click on the puzzle piece icon on the top-right
- Find Moegi and click on the pin icon
8. Open Spotify Web Player (https://open.spotify.com)
9. Play any song and open the lyrics page by clicking the microphone icon on bottom-right
10. If you click on Moegi, it should now display a popup, nice!
<details>
<summary>Steps screenshot</summary>
<img src="docs/extensions.png" alt="Moegi installation" />
<img src="docs/loaded.png" alt="Moegi loaded" />
</details>
## Features
<details>
<summary>Show full extension features screenshot</summary>
<img src="https://github.com/sglkc/moegi/assets/31957516/a53cb8cb-3162-49f0-973d-e9558edcaa83" alt="Moegi all features" width="320" />
</details>
### Lyrics Styling
The most basic feature to customize your Spotify lyrics screen:
- **Text Align**: Where the lyrics should align. *Default: Left, Options: Left, Center, Right.*
- **Font Size**: Set the lyrics relative font size including translation and romanization if active. *Default: 1em, Options: 0.5-2.5em.*
- **Spacing**: How much space between lyric lines. *Default: 0px, Options: 0-64px.*
- **Colors**: Set background and lyrics colors using a color picker. \
*Default: Background (blueish), Active (white), Inactive (black), Passed (white with opacity)*
> There is an integration issue with the colors, so if you want to reset the colors, use the Reset to defaults button
### Translation
Library used: [google-translate-api-x](https://github.com/AidanWelch/google-translate-api)
Translate lyrics line-by-line using Google Translate, successful translations are cached temporarily in storage to avoid Google Translate limit.
Note that translations are not accurate and should not be used literally! [Read about privacy policy.](#privacy-policy)
- **Font Size**: Set the translation line relative to lyrics font size. *Default: 1em, Options: 0.5-1.5em.*
- **Language Target**: Translation language target. *Default: auto, Options: [Over 100 languages](https://cloud.google.com/translate/docs/languages).*
### Romanization
Mainly supported languages:
1. [Japanese](#japanese)
2. [Korean](#korean)
3. [Chinese](#chinese)
4. [Cyrillic](#cyrillic)
Other than that, use [Anything else](#any).
Romanize lyrics that has the selected language's characters, if none then it will skip to the next line.
- **Language**: Language to romanize. *Default: Korean, Options: Korean, Japanese.*
- **Font Size**: Set the romanization line relative to lyrics font size. *Default: 1em, Options: 0.5-1.5em.*
#### Japanese
Libraries used: [@sglkc/kuroshiro](https://github.com/sglkc/kuroshiro-ts),
[@sglkc/kuroshiro-analyzer-kuromoji](https://github.com/sglkc/kuroshiro-analyzer-kuromoji-ts)
Note that Japanese romanization may not be accurate, particularly on kanji!
- **To**: Romanization target for Japanese lyrics. *Default: Romaji, Options: Romaji, Hiragana, Katakana.*
- **Mode**: How generated romanization should be written. *Default: Spaced, Options: Normal, Spaced, Okurigana, Furigana.*
- **Romaji System**: What romanization system to use for romaji. *Default: Hepburn, Options: Nippon, Passport, Hepburn.*
- **Okurigana Delimiter**: What should okurigana starts and ends with. *Default: ( ).*
<details>
<summary>Differences between each mode in hiragana</summary>
<br />
**Original Text: ๆใๅใใใๆใ็นใใใ้ใชใใฎใฏไบบ็ใฎใฉใคใณ and ใฌใใชใขๆ้ซ๏ผ**
1. Normal: \
ใใใใจใใใใฆใใคใชใใใใใใชใใฎใฏใใใใใฎใฉใคใณ and ใฌใใชใขใใใใ๏ผ
2. Spaced: \
ใใใใจใ ใใ ใฆ ใ ใคใชใ ใ ใ ใใใชใ ใฎ ใฏ ใใใใ ใฎ ใฉใคใณ and ใฌใ ใชใข ใใใใ ๏ผ
3. Okurigana: \
ๆ(ใใ)ใๅ(ใจ)ใใใๆ(ใฆ)ใ็น(ใคใช)ใใใ้(ใใ)ใชใใฎใฏไบบ็(ใใใใ)ใฎใฉใคใณ and ใฌใใชใขๆ้ซ(ใใใใ)๏ผ
4. Furigana: \
<ruby>ๆ<rp>(</rp><rt>ใใ</rt><rp>)</rp></ruby>ใ<ruby>ๅ<rp>(</rp><rt>ใจ</rt><rp>)</rp></ruby>ใใใ<ruby>ๆ<rp>(</rp><rt>ใฆ</rt><rp>)</rp></ruby>ใ<ruby>็น<rp>(</rp><rt>ใคใช</rt><rp>)</rp></ruby>ใใใ<ruby>้<rp>(</rp><rt>ใใ</rt><rp>)</rp></ruby>ใชใใฎใฏ<ruby>ไบบ็<rp>(</rp><rt>ใใใใ</rt><rp>)</rp></ruby>ใฎใฉใคใณ and ใฌใใชใข<ruby>ๆ้ซ<rp>(</rp><rt>ใใใใ</rt><rp>)</rp></ruby>๏ผ
</details>
> [Read about romaji romanization systems (for nerds).](https://github.com/sglkc/kuroshiro-ts#romanization-system)
### Korean
Library used: [@romanize/korean](https://www.npmjs.com/package/@romanize/korean)
- **Hangul System**: Romanization system used. *Default: Revised, Options: Revised, McCune, Yale.*
<details>
<summary>Differences between each romanization system</summary>
<br />
**Original Text: ์ฐ๋์ปค๋ ๊ทธ ์๋ฆฌ์ ์์ ๊ธฐ๋ค๋ฆฌ๋ ค๋ ๋ด**
1. Revised ([Revised Romanization of Korean](https://en.wikipedia.org/wiki/Revised_Romanization_of_Korean)): \
udukeoni geu jarie seoseo gidariryeona bwa
2. McCune ([McCuneโReischauer romanization](https://en.wikipedia.org/wiki/McCune%E2%80%93Reischauer)): \
utuk'ลni kลญ carie sลsล kitariryลna pwa
3. Yale ([Yale romanization of Korean](https://en.wikipedia.org/wiki/Yale_romanization_of_Korean)): \
utukheni ku caliey sese kitalilyena pwa
</details>
### Cyrillic
Library used: [cyrillic-to-translit-js](https://www.npmjs.com/package/cyrillic-to-translit-js)
- **Language**: Cyrillic language. *Default: Russian, Options: Russian, Ukrainian.*
### Chinese
Library used: [pinyin-pro](https://www.npmjs.com/package/pinyin-pro)
- **Ruby text**: Show romanization on top of original characters. *Default: OFF.*
<details>
<summary>Ruby text ON/OFF</summary>
<br />
**Original Text: ไฝ ไธ็ฅ้ไฝ ๆๅคๅฏๆ**
1. OFF \
nว bรน zhฤซ dร o nว yวu duล kฤ ร i
2. ON \
<ruby>ไฝ <rp>(</rp><rt>nว</rt><rp>)</rp></ruby><ruby>ไธ<rp>(</rp><rt>bรน</rt><rp>)</rp></ruby><ruby>็ฅ<rp>(</rp><rt>zhฤซ</rt><rp>)</rp></ruby><ruby>้<rp>(</rp><rt>dร o</rt><rp>)</rp></ruby><ruby>ไฝ <rp>(</rp><rt>nว</rt><rp>)</rp></ruby><ruby>ๆ<rp>(</rp><rt>yวu</rt><rp>)</rp><ruby>ๅค<rp>(</rp><rt>duล</rt><rp>)</rp></ruby><ruby>ๅฏ<rp>(</rp><rt>kฤ</rt><rp>)</rp></ruby><ruby>ๆ<rp>(</rp><rt>ร i</rt><rp>)</rp></ruby>
</details>
### Any
Library used: [any-ascii](https://github.com/anyascii/anyascii)
Provides a lot of conversions at the cost of accuracy, read more from the package repository.
## Development
### Prerequisites
- Node ^18
- pnpm ^8 (https://pnpm.io/installation)
```sh
npm install -g pnpm
```
### Steps
If you wish to make modifications or just want to build the extension yourself:
1. Clone the repository
```sh
git clone https://github.com/sglkc/moegi.git
cd moegi
```
2. Install dependencies using pnpm
```sh
pnpm install
```
3. Start extension development with hot reload
```sh
pnpm dev
```
3. Build extension
```sh
pnpm build
```
## Contributing
Any kind of contributions are **greatly appreciated**! You can start by forking this repository then create a pull request.
1. [Fork](https://github.com/sglkc/moegi/fork) the repository
2. Clone the forked repository to your machine
3. Create your branch (`git checkout -b feat/new-feature`)
4. Commit your changes (`git commit -m 'feat: add new command'`)
5. Push to the branch (`git push origin feat/new-feature`)
6. Open a [pull request](https://github.com/sglkc/moegi/pulls)
## Disclaimer
Moegi is not affiliated with Spotify in any way.
Moegi is for educational purposes only and should not be used to violate Spotify's terms of service.
## Privacy Policy
1. Moegi does not track your listening habits, your IP address, or any other personal information.
Everything is done locally in the web browser, except for the translation feature.
2. The translation feature uses Google Translate, which is a third-party service.
Google may collect some data about your use of the translation feature, such as the text you translate and the language you translate it to.
For more information about Google's privacy policy, please see https://policies.google.com/privacy.
3. Moegi uses a small amount of storage space on your computer to store the options that you have customized and lyrics you have translated.
It is not used to store any other personal information.
## License
Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
| ๐ต A Spotify web extension for Chromium browsers to style, translate, and romanize lyrics! | chrome-extension,javascript,lyrics,romanization,spotify,translation,typescript,chrome,chromium,chromium-extension | 2023-07-30T01:57:45Z | 2024-04-04T07:58:41Z | 2024-04-04T08:00:15Z | 2 | 4 | 67 | 1 | 0 | 10 | null | MIT | TypeScript |
MastooraTurkmen/Color-Scheme | main | # Color Scheme Generator ๐๐
Hello there,
This is the best project which is about color scheme. In this site you can get different types of color and change them.
Live: [Color-Scheme-Generator](https://color-scheme-generator-site.netlify.app/)
------
## Different Colors
+ Monochrome
+ Monochrome-dark
+ Monochrome-light
+ Analogic
+ Complement
+ Analogic-complement
+ Triad
### Monochrome

### Monochrome-dark

### Monochrome-light

### Analogic

### Complement

### Analogic-complement

### Triad

-----
## Languages and Tools are used ๐ฃ๏ธ๐ง
1. **Languages** ๐ฃ๏ธ
+ [HTML](https://github.com/topics/html)
+ [HTML5](https://github.com/topics/html5)
+ [CSS](https://github.com/topics/css)
+ [CSS3](https://github.com/topics/css3)
+ [JavaScript](https://github.com/topics/javascript)
2. **Tools** ๐ง
+ [Chrome](https://github.com/topics/chrome)
+ [VSCode](https://github.com/topics/vscode)
+ [Figma](https://github.com/topics/figma)
+ [Netlify](https://github.com/topics/netlify)
-----
## Cloning the project ๐ช๐จ
```
# Clone this repository
$ git clone https://github.com/MastooraTurkmen/Color-Scheme.git
# Go inside the repository
$ cd Color-Scheme
```
## Deployment๐ฅ
1. How to deploy our project to the Netlify site?
2. I use [Netlify App](https://app.netlify.com/) for deploying my projects.
3. Go to the Netlify site and select Add a new site.
4. From there select **_Deploy with Github_**.
5. Then write your project name and select it.
6. After selecting here you can see that the project **_Review configuration for Color-Scheme_** and then select the **_Deploy Color-Scheme_** Button.
7. Now your project is Live.
------
## Authors ๐ฉ๐ปโ๐ป ๐ฉ๐ปโ๐ป
**Mastoora Turkmen**
<br>
[LinkedIn](https://www.linkedin.com/in/mastoora-turkmen/)
<br>
[Github](https://github.com/MastooraTurkmen/)
<br>
[Twitter](https://twitter.com/MastooraJ22)
<br>
[Linktr.ee](https://linktr.ee/MastooraTurkmen)
<br>
<br>
<br>
**Juned Khan**
<br>
[LinkedIn](https://www.linkedin.com/in/developedbyjk/)
<br>
[Github](https://github.com/developedbyjk/)
<br>
[Twitter](https://twitter.com/developedbyjk)
<br>
[Linktr.ee](https://linktr.ee/developedbyjk)
| Wonderful Color Scheme Generator | css,css3,figma,html,html5,javascript,vscode | 2023-08-02T11:34:50Z | 2024-02-10T16:31:30Z | null | 2 | 4 | 80 | 0 | 0 | 9 | null | null | CSS |
wajik45/wajik-anime-api | main | # wajik-anime-api
Streaming dan download Anime subtitle Indonesia
# Sumber:
MOHON IZIN ABANG SUMBER, sumber bisa bertambah, bisa dm rekomendasi situs yang bagus
- https://otakudesu.cloud
domain sering berubah 2 jangan lupa pantau terus
# Installasi
- Jalankan perintah di terminal
```sh
# clone repo
git clone https://github.com/wajik45/wajik-anime-api.git
# masuk folder
cd wajik-anime-api
# install dependensi
npm install
# jalankan server
npm start
```
- Server akan berjalan di http://localhost:3001
# Routes
| Endpoint | Params | Description |
| --------- | ------ | ----------------------------------------------------------- |
| /{source} | | Deskripsi rute ada di response jangan lupa pake JSON viewer |
### Contoh request
```js
(async () => {
const response = await fetch("http://localhost:3001/otakudesu/ongoing");
const result = await response.json();
console.log(result);
})();
```
### Contoh response
```json
{
"statusCode": 200,
"message": "Ok",
"data": [
{
"judul": "Dr. Stone Season 3 Part 2",
"slug": "drstn-s3-p2-sub-indo",
"poster": "https://otakudesu.cloud/wp-content/uploads/2024/01/Dr.-Stone-Season-3-Part-2-Sub-Indo.jpg",
"episodeTerbaru": "11",
"hariRilis": "Jum'at",
"tanggalRilisTerbaru": "05 Jan",
"otakudesuUrl": "https://otakudesu.cloud/anime/drstn-s3-p2-sub-indo/"
}
],
"pagination": {
"prevPage": false,
"currentPage": 1,
"nextPage": 2,
"totalPages": 4
},
"error": false
}
```
| Api streaming dan download Anime subtitle Indonesia | sub Indo | anime,anime-downloader,anime-scraper,anime-sub-indo,express,otakudesu,scraper,scraping,javascript | 2023-07-24T10:18:19Z | 2024-03-21T10:19:55Z | null | 1 | 0 | 20 | 0 | 7 | 9 | null | MIT | TypeScript |
SAP-samples/cloud-cap-with-javascript-basics | main | # SAP Cloud Application Programming Model with JavaScript Basics
[](https://api.reuse.software/info/github.com/SAP-samples/cloud-cap-with-javascript-basics)
## Description
This is an SAP Cloud Application Programming Model project that demonstrates how to integrate and use standard JavaScript within your CAP application. It also teaches basic JavaScript techniques and language elements that will be helpful in CAP development. We also see how to add new Express middleware and routes to a single CAP service endpoint.
## Requirements
This sample is based upon the SAP Cloud Application Programming version 7.x and higher.
## Download and Installation
Project can be cloned, install dependencies via `npm install`, and then ran using `npm start` from the root of the project. The default CAP test page will be accessible but also contain links to the applications and testing endpoints of this project.
## Known Issues
No known issues
## How to obtain support
[Create an issue](https://github.com/SAP-samples/cloud-cap-with-javascript-basics/issues) in this repository if you find a bug or have questions about the content.
For additional support, [ask a question in SAP Community](https://answers.sap.com/questions/ask.html).
## Contributing
If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses [the standard DCO text of the Linux Foundation](https://developercertificate.org/).
## License
Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the [LICENSE](LICENSE) file.
| This is an SAP Cloud Application Programming Model project that demonstrates how to integrate and use standard JavaScript within your CAP application. It also teaches basic JavaScript techniques and language elements that will be helpful in CAP development. | javascript,nodejs,sample,sample-code,sap-btp,sap-cap | 2023-08-03T20:15:55Z | 2024-01-18T22:06:58Z | null | 107 | 0 | 9 | 0 | 3 | 9 | null | Apache-2.0 | JavaScript |
kanugurajesh/Django-Blog | main |
## Django News
The demo link := [Django News Demo](http://rajeshgowd.pythonanywhere.com/)
## Setup
1. Setup the python environment with command <code>python -m venv env</code>
2. Switch to the python environment with the command <code>source env/bin/activate</code>
3. Install all the python modules with the command <code>pip install -r requirements.txt</code>
4. Run the server with the command <code>python manage.py runserver</code>
## Sign-Up Page

## Sign-In Page

## Logged-In Page

## Posts

## Creating, Editing And Deleting Posts

## Root User
1. username:=<code>kanugu</code>
2. password:=<code>vikram@108</code>
## News Section

## News Section When Click On A News

## Working Of News Section

## KeyFeatures Of The Blog
1. Only the superuser has the permission to give users permissions whether they can add blogs or view them<br>
2. The SuperUser Can delete any blogs and can edit any blogs
| A blog application to share and read news and control access permissions | css3,django,html5,javascript,python,python-anywhere | 2023-07-28T09:39:28Z | 2023-07-28T14:06:43Z | null | 2 | 1 | 13 | 0 | 1 | 9 | null | null | Python |
ankitjha2603/solar-system3D | main | null | Discover the Solar System like never before with 'SolarSystem Explore'! This 3D visualization, created using HTML and Three.js, offers a realistic view of planets, orbits, and the Sun. Interact with intuitive controls to explore and learn fascinating facts about each planet. | 3d-website,canvas,dat-gui,javascript,solar-system,threejs,visulization,css3,html5,physics-simulation | 2023-07-26T16:07:49Z | 2023-11-17T17:28:06Z | null | 1 | 0 | 5 | 0 | 4 | 9 | null | null | JavaScript |
elsoul/skeet-ai | main | <a href="https://skeet.dev">
<img src="https://user-images.githubusercontent.com/20677823/221215449-93a7b5a8-5f33-4da8-9dd4-d0713db0a280.png" alt="Skeet Framework Logo">
</a>
<p align="center">
<a href="https://twitter.com/intent/follow?screen_name=SkeetDev">
<img src="https://img.shields.io/twitter/follow/ELSOUL_LABO2.svg?label=Follow%20@ELSOUL_LABO2" alt="Follow @ELSOUL_LABO2" />
</a>
<br/>
<a aria-label="npm version" href="https://www.npmjs.com/package/@skeet-framework/ai">
<img alt="" src="https://badgen.net/npm/v/@skeet-framework/ai">
</a>
<a aria-label="Downloads Number" href="https://www.npmjs.com/package/@skeet-framework/ai">
<img alt="" src="https://badgen.net/npm/dt/@skeet-framework/ai">
</a>
<a aria-label="License" href="https://github.com/elsoul/skeet-ai/blob/master/LICENSE.txt">
<img alt="" src="https://badgen.net/badge/license/Apache/blue">
</a>
<a aria-label="Code of Conduct" href="https://github.com/elsoul/skeet-ai/blob/master/CODE_OF_CONDUCT.md">
<img alt="" src="https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg">
</a>
</p>
## Skeet Framework Plugin - AI
Skeet AI Plugin for Multile Chat Models.
Build generative AI apps quickly and responsibly with Model API, a simple, secure, and multiple AI models are available.
This plugin wraps the following AI models.
- [Vertex AI(Google Cloud)](https://cloud.google.com/vertex-ai/)
- [Open AI(ChatGPT)](https://openai.com/)
Fast and easy to deploy with Skeet Framework.
## ๐งช Dependency ๐งช
- [TypeScript](https://www.typescriptlang.org/) ^5.0.0
- [Node.js](https://nodejs.org/ja/) ^18.16.0
- [Yarn](https://yarnpkg.com/) ^1.22.19
- [Google Cloud SDK](https://cloud.google.com/sdk/docs/install) ^430.0.0
## Installation
```bash
$ yarn add @skeet-framework/ai
```
with Skeet Framework CLI
```bash
$ skeet yarn add -p @skeet-framework/ai
```
# Initial Setup - Vertex AI (Google Cloud)
Enable API and Permissions on GCP.
if you havent installed Skeet CLI, install it.
```bash
$ gcloud auth application-default
$ npm i -g @skeet-framework/cli
```
and run `skeet iam ai` command.
```bash
$ skeet iam ai
? What's your GCP Project ID your-project-id
? Select Regions to deploy asia-east1
โ Successfully created ./skeet-cloud.config.json ๐
๐ธ === Copy & Paste below command to your terminal === ๐ธ
export GCLOUD_PROJECT=your-project-id
export REGION="us-central1"
๐ธ ========= END ========= ๐ธ
```
And set environment variables following the console's output.
**Note: options overwrite the environment variables**
## Quick Start
VertexAI
```ts
import { SkeetAI } from '@skeet-framework/ai'
const skeetAi = new SkeetAI({
ai: 'VetexAI',
})
const result = await skeetAi.chat('Hello')
console.log(result)
```
OpenAI
**Note: You need finished [Initial Setup - Open AI (ChatGPT)](/README.md#initial-setup---open-ai-chatgpt) to use OpenAI API**
```ts
import { SkeetAI } from '@skeet-framework/ai'
const skeetAi = new SkeetAI({
ai: 'OpenAI',
})
const result = await skeetAi.chat('Hello')
console.log(result)
```
## Vertex AI - Prompt Example
Example `app.ts`
```ts
import { VertexAI, VertexPromptParams } from '@skeet-framework/ai'
const run = async () => {
const context =
'You are a developer familiar with the Skeet framework for building web applications.'
const examples = [
{
input:
'What is the Skeet framework and what benefits does it offer for app development?',
output:
'The Skeet framework is an open-source full-stack app development solution that aims to lower the development and operation cost of applications. It allows developers to focus more on the application logic and worry less about infrastructure. The framework can be assembled with a combination of SQL and NoSQL.',
},
]
const content = 'Tell me about the Skeet framework.'
const prompt = generatePrompt(
context,
examples,
content,
'VertexAI',
) as VertexPromptParams
const vertexAi = new SkeetAI({
ai: 'VertexAI',
})
const response = await vertexAi.prompt(prompt)
console.log('Question:\n', prompt.messages[0].content)
console.log('Answer:\n', response)
const content =
'The Skeet framework is an open-source full-stack app development solution that aims to lower the development and operation cost of applications. It allows developers to focus more on the application logic and worry less about infrastructure. The framework can be assembled with a combination of SQL and NoSQL.'
const promptTitle = await vertexAi.generateTitlePrompt(content)
const title = await vertexAi.prompt(promptTitle)
console.log('\nOriginal content:\n', content)
console.log('\nGenerated title:\n', title)
}
run()
```
Run
```bash
$ npx ts-node app.ts
```
# Initial Setup - Open AI (ChatGPT)
## Create OpenAI API Key
- [https://beta.openai.com/](https://beta.openai.com/)

๐ [OpenAI API Document](https://platform.openai.com/docs/introduction)
# Usage
## OpenAI
set environment variables
```bash
$ export CHAT_GPT_ORG=org-id
$ export CHAT_GPT_KEY=your-api-key
```
Example `app.ts`
```ts
import { OpenAI, OpenAIPromptParams } from '@skeet-framework/ai'
const run = async () => {
const context = 'You are a developer familiar with the Skeet framework for building web applications.'
const examples = [
{
input:
'What is the Skeet framework and what benefits does it offer for app development?',
output:
'The Skeet framework is an open-source full-stack app development solution that aims to lower the development and operation cost of applications. It allows developers to focus more on the application logic and worry less about infrastructure. The framework can be assembled with a combination of SQL and NoSQL.',
},
]
const content = 'Tell me about the Skeet framework.'
const prompt = generatePrompt(
context,
examples,
content,
'OpenAI'
) as OpenAIPromptParams
const openAi = new SkeetAI({
ai: 'OpenAI',
})
const response = await openAi.prompt(prompt)
console.log('Question:\n', prompt.messages[0].content)
console.log('Answer:\n', response)
const content =
'The Skeet framework is an open-source full-stack app development solution that aims to lower the development and operation cost of applications. It allows developers to focus more on the application logic and worry less about infrastructure. The framework can be assembled with a combination of SQL and NoSQL.'
const promptTitle = await openAi.generateTitlePrompt(content)
const title = await openAi.prompt(promptTitle)
console.log('\nOriginal content:\n', content)
console.log('\nGenerated title:\n', title)
```
Run
```bash
$ npx ts-node app.ts
```
## Fine-tuning
Fine-tuning is a technique that allows you to customize the model to your specific use case by providing examples of the desired behavior.
### Fine-tuning - OpenAI
Create a JSONL file with the following format.
_./fine-tuning.jsonl_
```jsonl
{"messages":[{"role":"system","content":"You are a senior engineer specialized in assisting developers."},{"role":"user","content":"Give an example of what the Skeet framework could be used for?"},{"role":"assistant","content":"The Skeet framework can be used for a variety of web applications, such as building a Chatbot"}]}
{"messages":[{"role":"system","content":"You are a senior engineer specialized in assisting developers."},{"role":"user","content":"I got a credentials error while trying to use the Skeet framework. What should I do?"},{"role":"assistant","content":"The Skeet framework uses Google Cloud. You might need to login using `gcloud auth application-default login` to use the framework."}]}
```
Example `tuning.ts`
```ts
import { OpenAI } from '@skeet-framework/ai'
const openAi = new SkeetAI({
ai: 'OpenAI',
})
// Upload JSONL file
const filePath = './fine-tuning.jsonl'
const uploadFile = await openAi.uploadFile(filePath)
// Create Fine-tuning Job
const model = 'gpt-3.5-turbo-0613'
const job = await openAi.createFineTuningJob(uploadFile.id, model)
// Check Fine-tuning Job Status
const jobStatus = await openAi.showFineTuningJob(job.id)
console.log(jobStatus)
```
You can use the fine-tuned model after the job is completed.
## Skeet AI Transration
This method is used to translate .json/.md files from one language to another.
```ts
import { SkeetAI } from '@skeet-framework/ai'
const skeetAi = new SkeetAI()
const translatePaths = {
paths: ['./README.md', './doc.json'],
langFrom: 'en',
langTo: 'ja',
}
await skeetAi.translates(
translatePaths.paths,
translatePaths.langFrom,
translatePaths.langTo,
)
```
This function will generate a translated file in the same directory as the original file.
# Skeet AI Docs
- [Skeet AI TypeDoc](https://elsoul.github.io/skeet-ai/)
## Skeet Framework Document
- [https://skeet.dev](https://skeet.dev)
## Skeet TypeScript Serverless Framework
GraphQL, CloudSQL, Cloud Functions, TypeScript, Jest Test, Google Cloud Load Balancer, Cloud Armor
## What's Skeet?
TypeScript Serverless Framework 'Skeet'.
The Skeet project was launched with the goal of reducing software development, operation, and maintenance costs.
Build Serverless Apps faster.
Powered by TAI, Cloud Functions, Typesaurus, Jest, Prettier, and Google Cloud.
## Dependency
- [TypeScript](https://www.typescriptlang.org/)
- [Node](https://nodejs.org/)
- [Yarn](https://yarnpkg.com/)
- [Google SDK](https://cloud.google.com/sdk/docs)
- [GitHub CLI](https://cli.github.com/)
```bash
$ npm i -g @skeet-framework/cli
$ skeet create web-app
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/elsoul/skeet This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The package is available as open source under the terms of the [Apache-2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
## Code of Conduct
Everyone interacting in the SKEET projectโs codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/elsoul/skeet-cli/blob/master/CODE_OF_CONDUCT.md).
| ๐ Skeet Framework Plugin - AI tools๐ค | ai,chatgpt,cloud,firebase,google,google-cloud,gpt-4,javascript,npm,open-source | 2023-08-04T12:46:01Z | 2024-02-08T08:24:59Z | 2024-02-08T08:24:59Z | 3 | 54 | 188 | 1 | 1 | 9 | null | Apache-2.0 | TypeScript |
Lucas-Erkana/Algorithms | main | # Succeeding at live coding challenges (algorithms & data structures)
## Learning objectives
- Solve simple interview-like coding challenges.
- Demonstrate ability to deal with common issues during the live coding session part of a technical interview.
- Provide feedback to a peer after a mock interview.
### **Estimated time**: 2h
## Description
In this lesson, you will practice your **live coding skills** focusing on one out of the following list of data structures and algorithms per round:
- Data structure: Array
- Data structure: String
- Data structure: Linked List
- Algorithm: Recursion
- Algorithm: Sorting & Searching
## Preparatory work
In order to do this exercise well you need to make sure you:
- Have a good understanding of the fundamental data structures: arrays, strings and linked lists
- Have a good understanding of the most important algorithms: recursion, sorting & searching
- Have [GitHub Copilot](https://github.com/features/copilot) turned off
Take a look at the following resources to refresh your mind!
### Data structures
Data structures are the **building blocks of applications**. They allow us to **most efficiently store data** in order to create fast and cheap algorithms.
- [What is a Data Structure?](https://www.simplilearn.com/tutorials/data-structure-tutorial/what-is-data-structure)
#### Data structure: Array
An `array` is a data structure that **collects elements of the same data type** and **stores them in contiguous** memory locations.
- [Definition of Array](https://www.youtube.com/watch?v=55l-aZ7_F24)
- [Array cheatsheet](https://www.techinterviewhandbook.org/algorithms/array/)
#### Data structure: String
A `string` (or string literal) is an **array of characters** (i.e. any combination of numbers, letters, symbols).
- [Basics of String Literals](https://www.youtube.com/watch?v=IlqiTmcK1Eg)
- [String cheatsheet](https://www.techinterviewhandbook.org/algorithms/string/)
#### Data structure: Linked List
A `Linked List` is a user-defined data structure that consists of **nodes** that point to either in one direction (singly Linked List) or both directions (doubly Linked List).
- [Introduction to Linked List](https://www.youtube.com/watch?v=R9PTBwOzceo)
- [Linked Lists for Technical Interviews](https://www.youtube.com/watch?v=Hj_rA0dhr2I)
- [Linked list cheatsheet](https://www.techinterviewhandbook.org/algorithms/linked-list/)
### Algorithms
An algorithm is a **set of instructions** that (when executed in order)** solves a computational problem**.
- [What is an Algorithm?](https://www.youtube.com/watch?v=vVYG8TNN7hg)
#### Algorithm technique: Recursion
While technically not an algorithm, recursion is an algorithm technique used to help break down an algorithm into a `base case` and `recursive cases`. While these algorithms can also be implemented using loops, they tend to be more readable.
- [Recursion cheatsheet](https://www.techinterviewhandbook.org/algorithms/recursion/)
- [Recursion - FreeCodeCamp](https://www.youtube.com/watch?v=IJDJ0kBx2LM)
#### Algorithm: Sorting and searching
Sorting and searching are two fundamental operations that are performed on most data structures. Sorting serves to **order elements** in a particular way, while searching deals with **finding the desired element in a particular data structure**.
There are various strategies (in other words, algorithms) to implement sorting and searching that you have to know.
- [Sorting and searching cheatsheet](https://www.techinterviewhandbook.org/algorithms/sorting-searching/)
- [Understanding sorting algorithms - FreeCodeCamp](https://www.youtube.com/watch?v=l7-f9gS8VOs)
- [Searching and Sorting - MIT lecture](https://www.youtube.com/watch?v=6LOwPhPDwVc)
## Exercise
> ๐ก Please make use of the [following rubric](https://docs.google.com/document/d/18oP47pnzkLsy01T6220CvaxQhbhh061XmC8tTqVkYOQ) while you go through the exercise.
The best way to improve your live coding skill is to practice often. When better than in a mock interview? Together with a peer you are instructed to **choose one data structure to focus on** and then solve the challenge **using our recommended 4 step approach**. Select one person and follow the instructions:
1. Choose a data structure or algorithm to focus on
[Add two numbers](https://github.com/Lucas-Erkana/Algorithms/tree/main/Add%20Two%20Numbers)
[Add Binary](https://github.com/Lucas-Erkana/Algorithms/tree/main/Add%20binary)
[Award Budget Cuts](https://github.com/Lucas-Erkana/Algorithms/tree/main/Award%20Budget%20Cuts)
[Basic Calculator IV](https://github.com/Lucas-Erkana/Algorithms/tree/main/Basic%20Calculator%20IV)
[Remove Duplicates from Sorted Array](https://github.com/Lucas-Erkana/Algorithms/tree/main/Remove%20Duplicates%20from%20Sorted%20Array)
2. Pick 1 **easy** coding challenge from the list
3. Solve the challenge using our **recommended approach** - **(25 min total)**
- ๐ก Understand - Make sure that you understand what the inputs and outputs should be, as well as potential edge cases - **(5 min)**
- ๐บ Plan - Create a plan of action (in pseudocode) - **(5 min)**
- ๐ฌ Report - Communicate what you are doing while you're solving the problem - **(10 min)**
- ๐ค Reflect- Analyze the algorithm and (1) share its efficiency using Big O and/or (2) propose how you could've solved it differently - **(5 min)**
4. Interview gives feedback on structure and content - **(5 min)**
5. _Switch roles and repeat for 2 times total per person_
โฐ **Time**: 30 minutes per person per round
**Guiding questions:**
- Does this challenge match any patterns you've seen before?
- Are there any well-known algorithms (i.e. recursion or sorting) you can use?
---
_If you spot any bugs or issues in this activity, you can [open an issue with your proposed change](https://github.com/microverseinc/curriculum-transversal-skills/blob/main/git-github/articles/open_issue.md)._
| This is just a repo for practicing coding challenges | coding-challenges,javascript,ruby | 2023-08-08T16:29:28Z | 2023-09-20T17:50:51Z | null | 8 | 14 | 60 | 0 | 0 | 8 | null | null | Ruby |
SudhansuuRanjan/reactjs-notes | main | null | Reactjs short notes with examples and codes. | javascript,react | 2023-08-03T18:22:51Z | 2023-08-03T18:44:39Z | null | 1 | 0 | 4 | 0 | 3 | 8 | null | null | null |
markjaniczak/symbology-scanner | master | # @use-symbology-scanner
## Table of contents
- [Table of contents](#table-of-contents)
- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [Options](#options)
- [Symbologies](#symbologies)
- [Standard Symbologies](#standard-symbologies)
- [Custom Symbologies](#custom-symbologies)
- [Supported hardware](#supported-hardware)
- [Contributing](#contributing)
- [Development](#development)
- [Testing](#testing)
- [Releasing](#releasing)
- [License](#license)
## Introduction
This package provides a simple way to listen for scanner input in the browser. It works by listening for `keydown` events and matching the input against a set of [symbologies](#symbologies).
## Installation
This package comes in two flavours; `react` and `vanilla`. The `react` package is a wrapper around the `vanilla` package that provides a React hook for listening to scanner input.
### Vanilla
```bash
npm install @use-symbology-scanner/vanilla
yarn add @use-symbology-scanner/vanilla
pnpm add @use-symbology-scanner/vanilla
```
### React
```bash
npm install @use-symbology-scanner/react
yarn add @use-symbology-scanner/react
pnpm add @use-symbology-scanner/react
```
## Usage
<details>
<summary>React</summary>
```jsx
import { useSymbologyScanner } from '@use-symbology-scanner/react';
export const App = () => {
const ref = useRef(null)
const handleSymbol = (symbol, matchedSymbologies) => {
console.log(`Scanned ${symbol}`)
}
useSymbologyScanner(handleSymbol, { target: ref })
return (
<div ref={ref}>
</div>
)
}
```
</details>
<br/>
<details>
<summary>Vanilla</summary>
```html
<!-- index.html -->
<div id="el"></div>
```
```js
// script.js
const el = document.getElementById('id')
const handleSymbol = (symbol, matchedSymbologies) => {
console.log(`Scanned ${symbol}`)
}
const scanner = new SymbologyScanner(handleSymbol, {}, el)
scanner.destroy() // clean up listeners
```
</details>
## Options
| Property | Type | Description | Default Value |
| --- | --- | --- | --- |
| target | EventTarget | DOM element to listen for keydown events in. | `window.document` |
| symbologies | Array<[Symbology](#symbology), StandardSymbologyKey> | Symbologies to match against. | [`STANDARD_SYMBOLOGIES`]((#standard-symbologies)) |
| enabled | boolean | Whether or not the scanner is enabled. | `true` |
| eventOptions | object | Options to pass to the `addEventListener` call. | `{ capture: false, passive: true }` |
| preventDefault | boolean | Whether or not to call `preventDefault` on the event. | `false` |
| ignoreRepeats | boolean | Whether or not to ignore repeated keydown events. | `true` |
| scannerOptions | object | Options that describe the behaviour of the hardware scanner. | `{ prefix: '', suffix: '', maxDelay: 20 }` |
## Symbologies
A Symbology is a defined method of representing numeric or alphabetic digits using bars and spaces that are easily scanned by computer systems. By default, all of the standard symbologies in the [table below](#standard-symbologies) are matched against the input.
### Standard Symbologies
| Symbology | Allowed Characters | Min Length | Max Length |
| --- | --- | --- | --- |
| UPC-A | `0-9` | `12` | `12` |
| UPC-E | `0-9` | `6` | `6` |
| EAN-8 | `0-9` | `8` | `8` |
| EAN 13 | `0-9` | `13` | `13` |
| Codabar | `0-9`, `-`, `.`, `$`, `:`, `/`, `+` | `4` | |
| Code 11 | `0-9`, `-` | `4` | |
| Code 39 | `0-9`, `A-Z`, ` `, `$`, `%`, `*`, `+`, `-`, `.`, `/` | `1` | |
| Code 93 | `0-9`, `A-Z`, ` `, `$`, `%`, `+`, `-`, `.` | `1` | |
| Code 128 | `0-9`, `A-Z`, ` `, `$`, `%`, `*`, `+`, `-`, `.`, `/` | `1` | |
| Code 25 Interleaved | `0-9` | `1` | |
| Code 25 Industrial | `0-9` | `1` | |
| MSI Code | `0-9` | `1` | |
| QR Code | `0-9`, `A-Z`, ` `, `$`, `%`, `*`, `+`, `-`, `.`, `/`, `:` | `1` | |
| PDF417 | `0-9`, `A-Z`, ` `, `$`, `%`, `*`, `+`, `-`, `.`, `/`, `:` | `1` | |
| Data Matrix | `0-9`, `A-Z`, ` `, `$`, `%`, `*`, `+`, `-`, `.`, `/`, `:` | `1` | |
| Aztec | `0-9`, `A-Z`, ` `, `$`, `%`, `*`, `+`, `-`, `.`, `/`, `:` | `1` | |
| Dot Code | `0-9`, `A-Z`, ` `, `$`, `%`, `*`, `+`, `-`, `.`, `/`, `:` | `1` | |
In order to only match against a subset of the standard symbologies, you can pass in an array of symbologies to the `symbologies` option:
```jsx
import { STANDARD_SYMBOLOGY_KEYS } from '@use-symbology-scanner/core';
const symbologies = [
STANDARD_SYMBOLOGY_KEYS['EAN-8'],
STANDARD_SYMBOLOGY_KEYS['EAN-13'],
]
```
Missing a common symbology or an issue with one of the standard symbologies? Feel free to open an issue or a pull request. Alternatively, you can define your own custom symbologies.
### Custom Symbologies
You can also define your own custom symbologies to match against the input.
| Property | Type | Description |
| --- | --- | --- |
| name | string | Name of the symbology. |
| allowedCharacters | RegExp | Allowed characters in the symbology. |
| minLength | number | Minimum length of the symbology. |
| maxLength | number | Maximum length of the symbology. |
`allowedCharacters` must only contain a character class. For example, `[0-9]` is valid, but `0-9` is not. You can define a custom symbology like so:
```js
import { Symbology } from '@use-symbology-scanner/core';
const customSymbology = new Symbology({
name: 'Custom Symbology',
allowedCharacters: '[0-9]',
minLength: 1,
maxLength: 10
})
```
## Supported hardware
This library has not yet been tested on any hardware. If you have a scanner that you would like to test this library with, please open an issue or a pull request. Generally, this library *should* work with any hardware that emits keydown events. You can tweak the `scannerOptions` to match the behaviour of your hardware. For example, if your scanner emits a newline character after each scan, you can configure the `scannerOptions` like so:
```js
const scannerOptions = {
prefix: '',
suffix: '\n',
maxDelay: 20
}
```
Bluetooth scanners may require a longer `maxDelay` value due to latency. If you are using a bluetooth scanner, try increasing the `maxDelay` value to `100` or `200`.
## Contributing
### Development
```bash
git clone
cd @use-symbology-scanner/core
yarn install
yarn build
```
### Testing
```bash
yarn test
```
## License
MIT
| A javascript browser module for detecting symbology (i.e. barcodes) scanner hardware input. | barcode,javascript,npm,react,scanner,symbology,typescript | 2023-08-04T02:25:34Z | 2024-02-19T05:38:19Z | 2024-02-19T05:44:16Z | 1 | 5 | 27 | 1 | 1 | 8 | null | null | TypeScript |
SammyLeths/samis-ecom-store | master | <h1>Samis Ecom Store</h1>
An ecommerce front-facing store developed with individual API routes. This store ships with product categorization, product filtering with attributes like color and sizes, product image gallery, store billboard ect. Some of the features built into this project include:
<ul>
<li>Clerk User Authentication</li>
<li>Third party login</li>
<li>Search and Filter</li>
<li>Cloudinary image upload</li>
<li>Stripe payment integration</li>
<li>Store creation</li>
<li>Product quick view</li>
<li>Light and Dark mode</li>
<li>Order creation and overview</li>
<li>Revenue graphs</li>
<li>CRUD Operations on: Products, Categories, Billboards, Attributes suchh as: Colors, Sizes</li>
</ul>
This project was developed using React, NextJS, TypeScript, Tailwind CSS, Prisma, MySql, RadixUI, Axios, NPM.
<h2>Screenshots</h2>

<h2>Links</h2>
<ul>
<li>Demo: <a href="https://samis-ecom-store.vercel.app/" target="_blank">https://samis-ecom-store.vercel.app/</a></li>
</ul>
<h2>Tech Stack</h2>
<p align="left">
<img src="https://img.shields.io/badge/react-61DAFB.svg?style=for-the-badge&logo=react&logoColor=white" alt="REACT JS" />
<img src="https://img.shields.io/badge/next.js-000000.svg?style=for-the-badge&logo=nextdotjs&logoColor=white" alt="NEXT JS" />
<img src="https://img.shields.io/badge/typescript-3178C6.svg?style=for-the-badge&logo=typescript&logoColor=white" alt="TYPESCRIPT" />
<img src="https://img.shields.io/badge/tailwindcss-06B6D4.svg?style=for-the-badge&logo=tailwindcss&logoColor=white" alt="TAILWIND CSS" />
<img src="https://img.shields.io/badge/prisma-2D3748.svg?style=for-the-badge&logo=prisma&logoColor=white" alt="PRISMA" />
<img src="https://img.shields.io/badge/mysql-4479A1.svg?style=for-the-badge&logo=mysql&logoColor=white" alt="MYSQL" />
<img src="https://img.shields.io/badge/axios-5A29E4.svg?style=for-the-badge&logo=axios&logoColor=white" alt="AXIOS" />
<img src="https://img.shields.io/badge/npm-CB3837.svg?style=for-the-badge&logo=axios&logoColor=white" alt="NPM" />
<img src="https://img.shields.io/badge/radixui-161618.svg?style=for-the-badge&logo=radixui&logoColor=white" alt="RADIX UI" />
<img src="https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white" alt="HTML" />
<img src="https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white" alt="CSS3" />
<img src="https://img.shields.io/badge/sass-hotpink.svg?style=for-the-badge&logo=sass&logoColor=white" alt="SASS" />
<img src="https://img.shields.io/badge/JavaScript-black?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E" alt="JAVASCRIPT" />
</p>
<h2>Helpful Resources</h2>
<ul>
<li>
<b><a href="https://react.dev/" target="_blank">REACT</a></b>: The library for web and native user interfaces.
</li>
<li>
<b><a href="https://nextjs.org/" target="_blank">NEXTJS</a></b>: The React Framework for the Web
</li>
<li>
<b><a href="https://www.typescriptlang.org/" target="_blank">TYPESCRIPT</a></b>: A strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.
</li>
<li>
<b><a href="https://tailwindcss.com/" target="_blank">TAILWIND CSS</a></b>: A utility-first CSS framework packed with classes that can be composed to build any design, directly in your markup.
</li>
<li>
<b><a href="https://clerk.com/" target="_blank">CLERK AUTHENTICATION</a></b>: Complete user management purpose-built for React, Next.js, and the Modern Web.
</li>
<li>
<b><a href="https://www.prisma.io/" target="_blank">PPRISMA</a></b>: Next-generation Node.js and TypeScript ORM.
</li>
<li>
<b><a href="https://www.radix-ui.com/" target="_blank">RADIX UI</a></b>: An open source component library optimized for fast development, easy maintenance, and accessibility.
</li>
<li>
<b><a href="https://www.mysql.com/" target="_blank">MYSQL</a></b>: Open-source relational database management system.
</li>
<li><b>HTML5:</b>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank">MDN</a>: Mozilla Developer Network - HTML (HyperText Markup Language)</li>
<li><a href="https://www.w3schools.com/html/html_intro.asp" target="_blank">W3SCHOOL</a>: HTML Introduction</li>
</ul>
</li>
<li><b>CSS3:</b>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS" target="_blank">MDN</a>: Mozilla Developer Network - CSS (Cascading Style Sheets)</li>
<li><a href="https://www.w3schools.com/css/css_intro.asp" target="_blank">W3SCHOOL</a>: CSS Introduction</li>
</ul>
</li>
<li><b>JAVASCRIPT:</b>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank">MDN</a>: Mozilla Developer Network - JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions</li>
<li><a href="https://www.w3schools.com/js/js_intro.asp" target="_blank">W3SCHOOL</a>: JavaScript Introduction</li>
</ul>
</li>
<li>
<b><a href="https://axios-http.com/" target="_blank">AXIOS</a></b>: A promise based HTTP client for the browser and node.js
</li>
<li>
<b><a href="https://www.npmjs.com/" target="_blank">NPM</a></b>: A package manager for the JavaScript programming language.
</li>
<li>
<b><a href="https://mugshotbot.com/" target="_blank">MUGSHOTBOT</a></b>: Automatic beautiful link previews
</li>
</ul>
<h2>Author's Links</h2>
<ul>
<li>Portfolio - <a href="https://sammyleths.com" target="_blank">@SammyLeths</a></li>
<li>Linkedin - <a href="https://www.linkedin.com/in/eyiowuawi/" target="_blank">@SammyLeths</a></li>
<li>Twitter - <a href="https://twitter.com/SammyLeths" target="_blank">@SammyLeths</a></li>
</ul>
<br />
<hr />
<br />
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
| An ecommerce front-facing store developed with individual API routes. This store ships with product categorization, product filtering with attributes like color and sizes, product image gallery, store billboard ect. | clerkauth,javascript,mysql,nextjs,npmjs,prisma,radix-ui,reactjs,tailwindcss,typescript | 2023-08-08T07:11:15Z | 2023-09-28T18:31:33Z | null | 1 | 0 | 16 | 0 | 0 | 8 | null | MIT | TypeScript |
vitalics/rslike | main | 

# Rust Like
Make Javascript without undefined behavior. Forget about `try/catch/finally`
## Reason to use rslike
1. Less undefined behavior, when using `Option` and `Result`.
2. Well tested. `100% test coverage`
3. JSDoc with examples.
4. Typescript ready - d.ts types are generated with tsc.
5. first-class `CJS` and `ESM` support.
6. Zero dependencies.
7. `2kB` for min+gzip and `7.6kB` for minified. See in [bundlefobia](https://bundlephobia.com/package/@rslike/std@1.4.2).
8. Deno?
## Wanna be contributor?
See [contribute guide](./CONTRIBUTING.md)
## Wiki
Available by link: https://github.com/vitalics/rslike/wiki
## Packages
- [std](./packages/std/README.md). Standard library. Includes `Result`, `Option`, `match`, `Bind`, `Async`.
- [cmp](./packages/cmp/README.md). Comparison package. Exporting `Ordering` class and `Eq`, `PartialEq`, `Ord`, `PartialOrd` types.
- [dbg](./packages/dbg/README.md). Prints debug information about given variable.
## Tech Stack
- [pnpm](https://pnpm.io)
- [tsup](https://tsup.egoist.dev/)
- [typescript](https://www.typescriptlang.org/)
- [changeset](https://github.com/changesets/changesets)
- [husky](https://www.npmjs.com/package/husky)
- [github actions](https://github.com/features/actions)
- [jest](https://jestjs.io/)
- [eslint](https://eslint.org/)
## Plans
- [] Primitives
- [] extendign built-ins collections
- [] Extend Collections (Hashset, Hashmap, MapReduce)
- [] make `match` tc39 proposal compatable.
| Rust-like but for TypeScript/JavaScript | javascript,option,result,try-catch,typescript,undefined,undefined-behavior | 2023-08-04T08:46:37Z | 2024-04-10T14:48:46Z | 2024-04-10T14:49:22Z | 1 | 32 | 52 | 0 | 0 | 8 | null | NOASSERTION | TypeScript |
PabloBona/metrics-webapp-cryptoskings | dev | # CryptoKings - React Capstone Project
<div align="center">
<img src="./public/logo.png" alt="logo" width="140" height="auto" />
<h3> React Capstone Project </h3>
</div>
<!-- TABLE OF CONTENTS -->
# ๐ Table of Contents
- [๐ Table of Contents](#-table-of-contents)
- [๐ CryptoKings](#cryptokings)
- [๐ Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Design Guidelines ](#design-guidelines-)
- [๐ Live Demo ](#-live-demo-)
- [๐ป Getting Started ](#getting-started)
- [Install](#-install)
- [Usage](#-usage)
- [Run Tests](#run-tests)
- [Deployment](#deployment)
- [๐ฅ Authors ](#-authors-)
- [๐ญ Future Features ](#-future-features-)
- [๐ค Contributing ](#-contributing-)
- [โญ๏ธ Show Your Support ](#๏ธ-show-your-support-)
- [๐ License ](#-license-)
- [๐ฌ Project Documentation ](#project-documentation)
<!-- PROJECT DESCRIPTION -->
<br>
# ๐ CryptoKings (cryptokings) <a name="cryptokings"></a>
In this React capstone project, we have built a mobile web application called CryptoKings. The application allows users to explore a list of cryptocurrency coins and view their details. Users can filter the coins based on specific parameters such as name or price. The application fetches real-time data from an open cryptocurrency API.
# How it Works
The CryptoKings web app consists of two sections:
# Home Page - Coin List
The Home Page displays a list of cryptocurrency coins along with their respective numeric values, which are fetched from the API. Users can filter the coins based on parameters like name or price. Clicking on a coin item will navigate the user to the details page for that coin.
# Coin Details Page
In the Coin Details Page, users can view more detailed information about a specific cryptocurrency coin. This page fetches detailed data about the selected coin from the API. The user can then click the "Back" button (<) to return to the Home Page and explore other coins.
<br>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## ๐ Built With <a name="built-with"></a>
### Tech Stack <a name="tech-stack"></a>
The CryptoKings web application is built using the following tech stack:
<details>
<ul>
<li><a href="https://reactjs.org/">ReactJS</a></li>
<li><a href="https://redux.js.org/">Redux</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML">HTML</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">JavaScript</a></li>
<li><a href="https://www.npmjs.com/package/redux-thunk">Redux Thunk</a></li>
<li><a href="https://jestjs.io/">Jest</a> (for unit testing)</li>
<li><a href="https://testing-library.com/docs/react-testing-library/intro/">React Testing Library</a> (for integration testing)</li>
<li><a href="https://www.netlify.com/">Netlify</a> (for deployment)</li>
</ul>
</details>
<!-- Features -->
<p align="right">(<a href="#readme-top">back to top</a>)</p>
### Design Guidelines <a name="design-guidelines"></a>
The CryptoKings web application follows the design guidelines outlined in the Figma design template by Nelson Sakwa. The design includes a selected main color scheme, typography, and layout composition.
Credits: Original design idea by Nelson Sakwa on Behance. The design is used under the Creative Commons license, and appropriate credit is given to the author.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
### ๐ Live Demo <a name="live-demo"></a>
<a href="https://cryptoskings.netlify.app/">Live Demo</a>
<!-- GETTING STARTED -->
<br>
### ๐ Presentation Video
<a href="https://drive.google.com/file/d/1ebLDgW4fpoal4sebBb46jKsV17lJeLkh/view?usp=sharing">Live Demo</a>
<!-- GETTING STARTED -->
<br>
# ๐ป Getting Started <a name="getting-started"></a>
Clone this repository to your desired folder:
Example commands:
```bash
git clone git@github.com:PabloBona/metrics-webapp.git
```
<br>
# ๐ Install
Install this project's dependencies with:
```
cd metrics-webapp
npm install
```
<br>
# ๐ Usage
To
run the project, execute the following command:
```bash
npm run start
```
Runs the app in development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
The page will reload when you make changes.\
You may also see any lint errors in the console.
<br>
# Run Tests
Run unit and integration tests using the following command:
```bash
npm test
```
Note: The tests may require mocking the API access and Redux Store connection for proper testing.
<br>
# ๐ Run Linter Tests
Optionally, you can run linter tests using the following commands:
```$
npx hint .
```
```$
npx stylelint "**/*.scss"
```
or if you use CSS, run this instead of the latter command above:
```$
npx stylelint "**/*.{css,scss}"
```
<br>
# Available Scripts
In the project directory, you can run:
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
<br>
# Deployment
The CryptoKings web application is deployed and accessible online using Netlify. You can access the live demo by clicking the following link:
[Live Demo](https://crypto-kings.netlify.app/)
<br>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- AUTHORS -->
## ๐ฅ Authors <a name="authors"></a>
The CryptoKings web application is created and maintained by:
- ๐ค **Pablo Bonasera** - GitHub: [@PabloBona](https://github.com/PabloBona)
<br>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- FUTURE FEATURES -->
## ๐ญ Future Features <a name="future-features"></a>
- [ ] **Customizable notifications and alerts**
- [ ] **Multilingual support**
<br>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- CONTRIBUTING -->
## ๐ค Contributing <a name="contributing"></a>
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/PabloBona/metrics-webapp/issues).
<br>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- SUPPORT -->
## โญ๏ธ Show Your Support <a name="support"></a>
If you like this project, you can show your support by giving it a star on GitHub.
<br>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- LICENSE -->
## โญ๏ธ Acknowledgments <a name="support"></a>
The original design idea for this project was conceived by **Nelson Sakwa**, whose exceptional creativity and talent brought forth this inspiring piece of art. We would like to express our heartfelt appreciation to Nelson Sakwa for sharing this design under the Creative Commons license, allowing us to incorporate its captivating aesthetics into our project.
## About Nelson Sakwa
To learn more about Nelson Sakwa and explore more of their incredible work, please visit their profile on Behance:
[Nelson Sakwa's Profile on Behance](https://www.behance.net/sakwadesignstudio)
<!-- LICENSE -->
## ๐ License <a name="license"></a>
This project is [MIT](https://github.com/PabloBona/metrics-webapp/blob/dev/MIT.md) licensed.
<br>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
| I will select an API that provides numeric data about a topic that you like and then build the webapp around it. | api-rest,boostrap,crud-application,css,javascript,react,test-react-hooks | 2023-07-29T14:30:53Z | 2023-08-07T17:35:47Z | null | 1 | 8 | 45 | 0 | 0 | 8 | null | null | JavaScript |
the-faizmohammad/Unit-test-using-jest | main | # Getting Started with Jest
Learning Units tests for a JavaScript app using Jest framework
## Installation
To begin using Jest, first, make sure you have Node.js installed on your system. Then, you can install Jest using your preferred package manager:
- npm: npm install --save-dev jest
- Yarn: yarn add --dev jest
# Additional Configuration
# Generate a basic configuration file
Based on your project, Jest will ask you a few questions and will create a basic configuration file with a short description for each option:
npm: jest --init
# Run Test
npm- npm run Test
| Learning Units tests for a JavaScript app using Jest framework | es6-javascript,javascript,javascript-library,jest-tests,unit-testing | 2023-07-25T20:57:40Z | 2023-07-25T21:30:03Z | null | 1 | 1 | 13 | 0 | 0 | 8 | null | null | JavaScript |
BaseMax/TravelPlannerGraphQLTS | main | # Travel Planner App - GraphQL-based in TypeScript
The Travel Planner App is a web application that allows users to plan and organize their trips efficiently. It utilizes GraphQL as the API layer and is implemented using TypeScript for a more robust and type-safe development experience. With this app, users can create trip itineraries, search for points of interest, and share their travel plans with others.
## Features
- **User Authentication:** Users can sign up, log in, and manage their accounts.
- **Trip Creation:** Users can create new trips, specifying the destination, dates, and other details.
- **Itinerary Management:** Users can add, remove, and update notes within their trip itinerary.
- **Collaboration:** Users can share their trip plans with other registered users.
- **Real-time Updates:** Utilize GraphQL subscriptions for real-time updates when collaborating on a trip.
## Technologies Used
- **GraphQL:** For the API layer, enabling efficient data retrieval and mutation.
- **TypeScript:** For a type-safe and more maintainable codebase.
- **Apollo Client:** For handling GraphQL queries, mutations, and subscriptions on the client-side.
- **Node.js:** For the backend server implementation.
- **Nestjs:** a popular open-source, back-end framework for Node. js and TypeScript-based, server-side applications.
- **MongoDB:** As the database for storing user accounts, trips, and other data.
- **Mongoose:** For modeling the MongoDB data and performing database operations.
## Getting Started
### Prerequisites
- Node.js and npm should be installed on your machine.
- MongoDB server should be running locally or have a connection to a remote MongoDB instance.
### Installation
- Clone the repository: `git clone https://github.com/basemax/TravelPlannerGraphQLTS.git`
- Navigate to the project directory: `cd TravelPlannerGraphQLTS`
- Install dependencies for the server:
```bash
cd server
npm install
```
**Configure the environment variables:**
Create a .env file in the server directory and provide the necessary configuration, such as MongoDB connection URL and JWT secret key.
**Seed the database (optional):**
If you want to add some sample data to the database, you can use the provided seed script:
```bash
cd server
npm run seed
```
```
npm start
```
Access the app in your browser at `http://localhost:3000`.
## GraphQL
### Queries:
- `getUser`: Get user details by user ID or username.
- `getTrip`: Get trip details by trip ID.
- `getTripsByUser`: Get all trips associated with a specific user.
- `getCollaborators`: Get a list of users who are collaborators on a specific trip.
- `getCollaboratorTrips`: Get all trips where the current user is a collaborator.
- `searchTrips`: Search for trips based on destination, date range, or other criteria.
- `getPopularDestinations`: Get a list of popular destinations based on the number of trips created.
- `getTripsByDateRange`: Get trips that fall within a specified date range.
- `getTripsByDestination`: Get all trips with a specific destination.
- `getTripsByDate`: Get all trips that occur on a particular date.
- `getTripsByCollaborator`: Get all trips where a specific user is a collaborator.
### Mutations:
- `signup`: Create a new user account with username, email, and password.
- `login`: Log in the user and return a JWT token for authentication.
- `createTrip`: Create a new trip with destination, dates, and other details.
- `updateUser`: Update user details, such as name, email, or profile picture.
- `updateTrip`: Update trip details, such as destination, dates, or other information.
- `addCollaborator`: Invite a user to collaborate on a trip by adding them to the list of collaborators.
- `removeCollaborator`: Remove a collaborator from a trip.
- `deleteUser`: Delete the user account along with all associated data (trips, activities, etc.).
- `deleteTrip`: Delete a trip along with its itinerary and associated data.
- `addCollaboratorNote`: Allow collaborators to add notes or comments to a specific trip.
- `editCollaboratorNote`: Allow collaborators to edit their notes or comments on a trip.
- `deleteCollaboratorNote`: Allow collaborators to delete their notes or comments on a trip.
### Subscriptions (Real-time Updates):
- `tripUpdated`: Subscribe to real-time updates when a trip is modified (e.g., itinerary changes, new collaborators).
- `collaboratorAdded`: Subscribe to real-time updates when a new collaborator is added to a trip.
- `collaboratorRemoved`: Subscribe to real-time updates when a collaborator is removed from a trip.
- `tripDeleted`: Subscribe to real-time updates when a trip is deleted.
- `activityUpdated`: Subscribe to real-time updates when an activity is modified (e.g., details changed, time updated).
- `tripDeleted`: Subscribe to real-time updates when a trip is deleted, notifying collaborators.
- `collaboratorNoteAdded`: Subscribe to real-time updates when a collaborator adds a note to a trip.
- `collaboratorNoteEdited`: Subscribe to real-time updates when a collaborator edits their note on a trip.
- `collaboratorNoteDeleted`: Subscribe to real-time updates when a collaborator deletes their note on a trip.
Sure, here are more examples for the remaining queries, mutations, and subscriptions:
## GraphQL Examples
### **getCollaboratorTrips**: Get all trips where the current user is a collaborator.
```graphql
query UserTrips {
userTrips {
_id
destination
toDate
collaborators
}
}
```

### **searchTrips**: Search for trips based on destination, date range, or other criteria.
```graphql
query {
searchTrips(
searchInput: {
destination: "Italy"
fromDate: "2023-09-01"
toDate: "2023-09-30"
}
) {
searchTrip(searchInput: $searchInput) {
_id
destination
fromDate
toDate
collaborators
}
}
}
```

### getCollaboratorTrips: Get all trips where the current user is a collaborator.
```graphql
query {
getCollaboratorTrips {
id
destination
dates
}
}
```
### getPopularDestinations: Get a list of popular destinations based on the number of trips created.
```graphql
query PopularDestination {
PopularDestination {
tripsCount
destination
}
}
```

### getTripsByDateRange: Get trips that fall within a specified date range.
```graphql
query GetTripsByDateRange($dateRange: SearchTripInput!) {
getTripsByDateRange(dateRange: $dateRange) {
_id
destination
fromDate
toDate
collaborators
}
}
```

### collaboratorAdded: Subscribe to real-time updates when a new collaborator is added to a trip.
```graphql
subscription {
collaboratorAdded(tripId: "456") {
_id
collaborators
}
}
```

### collaboratorRemoved: Subscribe to real-time updates when a collaborator is removed from a trip.
```graphql
subscription {
collaboratorRemoved(tripId: "456") {
id
collaborators
}
}
```

### getTripsByDestination: Get all trips with a specific destination.
```graphql
query {
getTripsByDestination(destination: "London") {
id
destination
dates
}
}
```

### getTripsByDate: Get all trips that occur on a particular date.
```graphql
query {
getTripsByDate(date: "2023-09-15") {
id
destination
dates
}
}
```
### addCollaboratorNote: Allow collaborators to add notes or comments to a specific trip.
```graphql
mutation CreateNote($CreateNoteInput: CreateNoteInput!) {
createNote(createNoteInput: $CreateNoteInput) {
_id
notes {
_id
collaboratorId
content
createdAt
}
collaborators
toDate
fromDate
destination
}
}
```

### collaboratorNoteAdded: Subscribe to real-time updates when a collaborator adds a note to a trip.
```graphql
subscription {
collaboratorNoteAdded(tripId: "456") {
id
notes {
id
content
}
}
}
```

### updateCollaboratorNote: Allow collaborators to edit their notes or comments on a trip.
```graphql
mutation UpdateNote($UpdateNoteInput: UpdateNoteInput!) {
updateNote(updateNoteInput: $UpdateNoteInput) {
_id
collaborators
notes {
_id
content
collaboratorId
}
destination
toDate
}
}
```

### collaboratorNoteEdited: Subscribe to real-time updates when a collaborator edits their note on a trip.
```graphql
subscription {
collaboratorNoteEdited(tripId: "456") {
id
notes {
id
content
}
}
}
```

### removeCollaboratorNote: Allow collaborators to delete their notes or comments on a trip.
```graphql
mutation RemoveNote {
removeNote(
tripId: "64d314d7306ec85324ee2a94"
noteId: "64d314d7306ec85324ee2a94"
) {
_id
destination
fromDate
toDate
collaborators
}
}
```

### collaboratorNoteDeleted: Subscribe to real-time updates when a collaborator deletes their note on a trip.
```graphql
subscription {
collaboratorNoteDeleted(tripId: "456") {
id
notes {
id
content
}
}
}
```

### removeTrip: remove a specific trip
```graphql
mutation RemoveTrip {
removeTrip(id: "64d08726a580a984fb673d64") {
_id
destination
fromDate
toDate
collaborators
}
}
```

### tripRemoved: Subscribe to real-time updates when a trip is deleted.
```graphql
subscription {
tripRemoved(tripId: "456") {
id
destination
dates
}
}
```

### getTripsByDate: Get all trips that occur on a particular date.
```graphql
query {
getTripsByDate(date: "2023-09-15") {
id
destination
dates
}
}
```
### addCollaborator: Invite a user to collaborate on a trip by adding them to the list of collaborators.
```graphql
mutation {
addCollaborator(tripId: "trip456", userId: "user789") {
id
destination
collaborators {
id
username
}
}
}
```

### collaboratorAdded: Subscribe to real-time updates when a new collaborator is added to a trip.
```graphql
subscription {
collaboratorAdded(tripId: "trip456") {
id
destination
collaborators {
id
username
}
}
}
```

### collaboratorRemoved: Subscribe to real-time updates when a collaborator is removed from a trip.
```graphql
subscription {
collaboratorRemoved(tripId: "trip456") {
id
destination
collaborators {
id
username
}
}
}
```

## GraphQL Schema
```graphql
type User {
id: ID!
name: String!
email: String!
}
type Trip {
id: ID!
destination: String!
toDate: Date!
fromDate : Date!
notes: [User!]!
notes: [CollaboratorNote!]!
}
type notes {
id: ID!
content: String!
userId: String!
}
type Query {
getUser(userId: ID!): User
getTrip(tripId: ID!): Trip
getCollaborators(tripId: ID!): [User!]!
getCollaboratorTrips: [Trip!]!
searchTrips(destination: String, fromDate: String, toDate: String): [Trip!]!
getPopularDestinations: [Tag!]!
getTripsByDateRange(fromDate: String!, toDate: String!): [Trip!]!
getTripsByDestination(destination: String!): [Trip!]!
getTripsByDate(date: String!): [Trip!]!
getTripsByCollaborator(collaboratorId: ID!): [Trip!]!
}
type Mutation {
signup(username: String!, email: String!, password: String!): User
login(username: String!, password: String!): AuthPayload
createTrip(input: CreateTripInput!): Trip
addCollaborator(tripId: ID!, userId: ID!): Trip
removeCollaborator(tripId: ID!, collaboratorId: ID!): Trip
deleteTrip(tripId: ID!): Trip
addCollaboratorNote(tripId: ID!, note: String!): Trip
editCollaboratorNote(noteId: ID!, content: String!): CollaboratorNote
deleteCollaboratorNote(noteId: ID!): CollaboratorNote
}
type Subscription {
collaboratorAdded(tripId: ID!): User
collaboratorRemoved(tripId: ID!): User
tripDeleted(tripId: ID!): Trip
collaboratorNoteAdded(tripId: ID!): CollaboratorNote
collaboratorNoteEdited(tripId: ID!): CollaboratorNote
collaboratorNoteDeleted(tripId: ID!): CollaboratorNote
}
type AuthPayload {
token: String!
name : String!
}
```
## Contributing
We welcome contributions to improve this Travel Planner App! To contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix: git checkout -b my-feature
- Make your changes, and ensure the code passes the tests (if available).
- Commit your changes: git commit -m "Add my feature"
- Push to your branch: git push origin my-feature
- Submit a pull request to the main branch of the original repository.
## License
This project is licensed under the GPL-3.0 License. See the LICENSE file for more details.
## Acknowledgments
Special thanks to the GraphQL and TypeScript communities for providing great tools and resources.
Copyright 2023, Max Base
| The Travel Planner App is a web application that allows users to plan and organize their trips efficiently. It utilizes GraphQL as the API layer and is implemented using TypeScript for a more robust and type-safe development experience. With this app, users can create trip itineraries, search for points of interest, and share their travel plans wit | gql,graphql,javascript,js,travel-api,travel-planner,ts,typescript,travel-graphql,travel-planner-api | 2023-08-02T08:20:46Z | 2024-02-21T08:28:18Z | null | 1 | 10 | 92 | 0 | 2 | 8 | null | GPL-3.0 | TypeScript |
amirreza1307/coursera-auto-answer | main | # coursera-auto-answer
Extension on Edge Add-ons: <br/>
https://microsoftedge.microsoft.com/addons/detail/coursera-auto-answer/kojelegnkkpfplaojdmgmojfligoaogl <br/> <br/>
a browser extension to answer coursera exams with chatgpt without needing openai API

# Installation
1. go to chrome://extensions
2. turn on Developer mode
3. click load unpack
4. select extension folder
5. go to exam page in coursera
6. click on extension icon and wait a few moments
# Bugs
1.usually has problems in true and false questions
2.problem in the questions that have code box
# until the bugs are fixed, you can use the following method
1.press left click and inspect
2.go to console
in console you can see chatgpt answer and answer bugged question

| a chrome extension to answer coursera exams with chatgpt without needing openai API | chatgpt,coursera,google-extension,chrome-extension,google-chrome-extension,openai,ai,javascript | 2023-08-01T18:42:13Z | 2024-03-14T20:15:55Z | null | 1 | 0 | 18 | 1 | 3 | 8 | null | null | JavaScript |
zhuravlevma/prisma-unit-of-work | main | # Unit of work pattern for PrismaORM
```typescript
return this.unitOfWork.runInTransaction(async (tx) => {
const updatedAggregate1 = await this.repo.saveAggregate1(entity, { tx });
await this.repo2.saveAggregate2(entity, { tx });
return updatedAggregate1;
});
```

| DDD, Unit of work pattern for Typescript, Nest.js, Prisma โก | ddd,ddd-patterns,javascript,nest,nestjs,orm,prisma,prisma-client,prisma-orm,typescript | 2023-07-29T08:40:08Z | 2024-01-06T15:20:14Z | null | 1 | 0 | 16 | 0 | 2 | 8 | null | MIT | TypeScript |
deaconn-net/react-google-analytics | main | # React Google Analytics
A small NPM package to handle inserting scripts required for Google Analytics to send analytics via a React component.
## Usage
### Props
* **tag** - Your analytics tag ID.
```ts
import { GoogleAnalytics } from "deaconn-google-analytics"
...
return (
<head>
<GoogleAnalytics tag="mytagID" />
</head>
);
```
## Installation
You may install the component using the NPM package manager.
```bash
npm install deaconn-google-analytics
```
## Credits
* [Christian Deacon](https://github.com/gamemann) | A simple React component that allows you to insert your Google Analytics tag easily! | component,google,google-analytics,javascript,npm,package,react,typescript | 2023-08-04T04:54:28Z | 2023-08-04T06:08:00Z | null | 2 | 0 | 5 | 0 | 1 | 8 | null | null | TypeScript |
yahaielbnna/gmsmpl | main | <p ><img src="https://github.com/yahaielbnna/gmsmpl/blob/main/gmsmpl.png" width="100" alt="gmsmpl Logo"></p>
# What is gmsmpl? ๐คทโโ๏ธ
<p>gmsmpl is a JavaScript library that has been developed to help web developers especially Font-end developers to control the HTML element from the Javascript with a low size of codes. That makes the developer able to use DOM with simple functions and style the elements with CSS's properties. Not that only, but there are some functions that work to simplify your code from the complex and the big size of codes.</p>
<b>Make your website alive and awesome with a low number of codes!๐</b>
# Why gmsmpl? ๐ค
<ul>
<li>
<b>High performance</b>
<br/>
<p>When we are talking about the performance, we talk about many things including the script file size.</p>
<p>So gmsmpl works to reduce your script file's size with it's functions.</p>
</li>
<li>
<b> Time saving </b><br>
<p>Nowadays we are in a race with time! a good team is a team that finds a fast way to create a thing without losing any professionalism.</p>
<p>So gmsmpl works to save your coding time and helps you to find a fast way to use your creativity.</p>
</li>
<li>
<b>Face your confusion in the codes!</b>
<p>One of the problems that face any programming team is the confusion in reading the other teammate's codes.</p>
<p>So gmsmpl helps in this problem with its simple functions' syntax</p>
</li>
</ul>
# How to set up gmsmpl? ๐ฅ
<span>
Just download the `gmsmpl.js` file and include it in the first of your script tags in your HTML file like
```
<script src="[your scripts folder]/gmsmpl.js"></script>
```
then you can use your own script file with the power of gmsmpl. I told you, it's simple!
</span>
| JavaScript library which shortcuts the codes and save your coding time with professional results ! | javascript,javascript-library,shortcode,shortcut,style,user-interface,website | 2023-07-24T17:07:10Z | 2024-02-07T15:12:49Z | 2024-02-07T15:12:49Z | 1 | 0 | 23 | 3 | 0 | 8 | null | MIT | JavaScript |
Alireza-WebDeveloper/Mui-Theme-Nextjs-App-Router | main | Mui Theme On Next App Router Server :
app / theme / index.tsx
layout.tsx
| null | approuter,javascript,material-ui,nextjs13,react,server-side-rendering,typescript | 2023-07-27T09:58:11Z | 2023-07-27T10:00:20Z | null | 1 | 0 | 2 | 0 | 0 | 8 | null | null | TypeScript |
pooulad/nextjs-golang-crud-app | main | # nextjs-golang-crud-app
๐จSimple full-stack project with nextjs and go-lang
The purpose of creating this project is to learn for junior programmers how to implement a full stack application and create the best structure for the application.

## Technology list in this project
in back-end:
- Fiber
- JWT token
- Validator
- Godotenv
- Paginate
- Postgres
- GORM
in front-end:
- React hook form
- Axios
- React-loading
- React-toastify
- Tailwindcss
- Typescript
## How to run
In root of source you should run your go project
```bash
go run main.go
```
In root frontend directory you should run your next project
```bash
npm install
npm run dev
```
## API Reference
#### Local address
```bash
http://127.0.0.1:8080
```
#### All endpoints
```http
GET /api/users -> get all users
POST /api/user -> create new user
PATCH /api/user/:id -> update user
GET /api/user/:id -> get single user
DELETE /api/user/:id -> delete user
POST /api/user -> login
```
## Screenshots


| ๐จsimple full-stack project with nextjs and go-lang | animation,api-rest,authentication,bcrypt,fiber-framework,godotenv,golang,gorm,hashing,http-server | 2023-08-07T10:27:06Z | 2024-05-13T17:41:44Z | null | 1 | 6 | 162 | 0 | 0 | 8 | null | MIT | TypeScript |
cjm0/reader-layout | main | # ้
่ฏปๅจๆ็ๅผๆ
ๅฐ่ฏด้
่ฏปๅจๆ็ๅผๆใๆๅญๅ
ๅฎนๆ็ๅผๆ
ๆฏๆ็ๅ่ฝ๏ผ**ๆฏๆๆจช็ฟปใ็ซ็ฟป้
่ฏป๏ผๆๆๆฎตใๆ่กๆๅ
ฅๅนฟๅ๏ผๆฏๆๆๅญไธค็ซฏๅฏน้ฝใๆ ็น็ฌฆๅท้ฟๅคด**
ๅ
ผๅฎนๆง๏ผ**ๅ
ผๅฎนๆต่งๅจใๅฐ็จๅบใๅฟซๅบ็จ็ญๅ็งๅนณๅฐ**
ๆง่ฝ๏ผ**ๅบๆฌ่ๆถ 10ms ๅ
**
่พๅ
ฅๅ
ๅฎน็ป่ฟ sdk ่ฝฌๆขๅ่พๅบๅๅฅฝ้กต็ๆฐ็ป
## ๅฟซ้ไฝฟ็จ
npm ๅ
ไธ่ฝฝ๏ผ
`npm i reader-layout`
่ฝฌๆข็ซ ่ๅ
ๅฎน็คบไพ๏ผ
```js
import Reader from 'reader-layout'
const content = {
tit: "็ฌฌไธ็ซ ๏ผ้ญ็ฉฟๆ็ฝ๏ผ้ๆผๅ
จๅบ",
cont: "็ฌฌไธ็ซ ๏ผ้ญ็ฉฟๆ็ฝ๏ผ้ๆผๅ
จๅบ\r\n ๆ็ฝๅคง้๏ผๆญฆ้ญๆฎฟ\r\nไธๅบงๅทจๅคง็ๆๅฐไธ๏ผๆฐๅ้่บซๅฝฑ็ซๅๅจๅฐ๏ผๆๅฐไธ็็ผ่๏ผๅนถไธๅคนๆ็ไธ้ต้ต็่ฆ็ๅปๅโฆโฆ\r\nๆๅฐๅจๅด็่งไผๅธญไธไธ็ๅ็ถ๏ผ้ๆผ็็็้ฃๅ่บซ็ฉฟ่่ฒ็ญ่กซ็ๅฐๅนดใ\r\nๅคฉๆฐดๅญฆ้ข\r\nโๅๅ๏ผๅฐๅฟๅง๏ผๅไธๅฅฝๅๅฎณ๏ผๅๅ้ฃๆฏไปไนๆๅผ๏ผโ\r\nๆฐดๅฐๅฟ่บซ็ฉฟ่่ฒ็ญ่ฃ๏ผ้ขๅฎน็ฒพ่ด๏ผ้ช็ฝไฟฎ้ฟ็ๅคง้ฟ่
ฟไธ็ฉฟ็่ฟ่้ฟ้ด๏ผๅพกๅง่ๅ่ถณใ\r\nๅช่งๅฅนๆณ็ๅพฎ่น๏ผ็ผ็ผ้๏ผโไธๆธ
ๆฅ๏ผไธ่ฟๅๆฏๅฌๅฒ่ฑๅ
็ๅๅญฆๆๅฐ่ฟไธ็งๅไธบๆๅจ็ไธ่ฅฟ๏ผไนไธ็ฅๆฏไธๆฏ่ฟๆ ท๏ผโ\r\nๅฒ่ฑๅ
ๅญฆ้ข\r\n้ข้ฟๅผๅ
ฐๅพท้ขๅฎนๆ่ฎถ๏ผโๅฐๅ๏ผๅๅๅฐไธไฝฟ็จ็ๆฏไปไนๆๆฎต๏ผโ\r\n็ๅฐๅๆไบๆๅคด๏ผโไธๆธ
ๆฅ๏ผๆ่ฎธๆฏไป้่็ๅบ็ๅงใโ\r\nๅผๅ
ฐๅพท็ฌ้๏ผโ่ฟไธช่ญๅฐๅญ็ๆฏ็๏ผ่ฟๆไปฌ้ฝ็๏ผโ\r\nโไธ่ฟๅฆๆญคไปฅๆฅ๏ผๆญฆ้ญๆฎฟ้ๅๅทฒ็ปๅ
จๅ่ฆๆฒก๏ผๅ ๅๆฏๆไปฌ็ไบ๏ผโ\r\nไธๅฎ็็ๅฎ\r\nๅฎๅฎไธปๆๅนไธๅฃฐ๏ผโ็ๆฏไธชๅบไนๆๆ็ๅฐๅฎถไผ๏ผๅ
ๆฏ็กฌๆผ่กๅๅจไธคไบบ็ๆญฆ้ญ่ๅ๏ผๅๆฏ็จๅชๅคทๆๆ็ๆๆฎตๆพๅๅ
ถไปๆๅใโ\r\n้ชจๆ็ฝ่ฎฅ่ฎฝไธ็ฌ๏ผโ่ฅๆฏๆฒกๆๆๅค๏ผๆญฆ้ญๆฎฟ่ฟๆฌกๆฏ่ตไบๅคซไบบๅๆๅ
ต๏ผ่ถณ่ถณไธๅ้ญ้ชจๅ๏ผๅตๅตโฆโฆโ\r\nๅฐฑๅจๆญคๅป๏ผๆ่พน็ๆฏๆ็ฝ็ช็ถๅ่ฏ๏ผโๆ็ๅไธ๏ผๅไธ็ๆฏ่ฟ่ๅคซ้ฝๆ ๆณ่งฃๅผ๏ผ่ฅๆฏๅไธๆ้๏ผไฝ ไปฌๆญฆ้ญๆฎฟ่ฟไธไปฃ้ป้็งๅญ๏ผๆๆๅฐฑๅฑ้ฉไบโฆโฆโ\r\nๆญฆ้ญๆฎฟ้ซๅฐไนไธ\r\nไธๅ่บซ็ฉฟๆต
็ดซ่ฒ่ดด่บซ่กฃ่ฃ็ไฝณไบบ๏ผๅคดๆด็ๅ ๏ผๆฐ่ดจ้ซ่ดตๅท่ณ๏ผ้ซๆๅ็งฐ็่บซๆๆงๆๆ ๆฏ๏ผๅชไธ่ฟๆญคๆถๅฅน็่กจๆ
ๅดๅ
ๆปกไบไธ็๏ผๆกไฝๆๆ็็ๆๅพฎๅพฎไธ็ดงใ\r\n่ฃๅณ้ฟ่ๆ ๅฅ็็็ๅฅน๏ผ็ญๅพ
็ๅฅน็ๅฝไปคโฆโฆ\r\nโๅๅโฆโฆโ\r\nๅฐฑๅจๆญคๅป๏ผๆญฆ้ญๆฎฟ้ไผไธญ็ช็ถๆไธๅๆๅๆธ
้่ฟๆฅใ\r\nๅขจๅฐ่ฐ้พ็่ตท่บซ๏ผ่ซ็ถ็็ฏ่งไธๅ๏ผๅฟไธญๆ้๏ผๆๆฆ๏ผไปไนๆ
ๅต๏ผ๏ผ\r\nๅขจๅฐๅๆฌๆฏ่ๆไธๆตๅญฆๆ ก็ๅคงๅญฆ็๏ผๅฐฑๅจไปๆฌขๅคฉๅๅฐ็็็ๆ็ฝๅจๆผซๆถ๏ผไธ้ๅฅๆช็ๅฃฐ้ณๅบ็ฐๅจไป่ๆตทไธญ๏ผๅๆฌก้ๆฅๅฐฑๅบ็ฐๅจ่ฟ้โฆโฆ\r\nใๅฎ๏ผ้ๆ็ณป็ปๅพๅฐๅฎฟไธปๅๆ๏ผๆญฃๅจ็ปๅฎไธญ1๏ผ
ใ33๏ผ
ใ99๏ผ
ใ100๏ผ
๏ผใ\r\nๅขจๅฐๆฃไบ็ๅป๏ผ้ๅณ็ปไบๆ็ฝไบ่ชๅทฑ็ฐๅจ็ๅคๅข๏ผไป็ซ็ถ็ฉฟ่ถๅฐไบๆญฆ้ญๆฎฟ้ไผ๏ผๅนถไธ่ฟๆฏๅจๅ
จๅคง้้ซ็บง้ญๅธๅญฆ้ข็ฒพ่ฑๅคง่ต็ๅ ๅไนไบ๏ผ่บบๅจไปๅฏน้ข็่ตซ็ถๆฏๅฒ่ฑๅ
ไธๆช๏ผ\r\nใๅฎ๏ผ็ณป็ป็ปๅฎๆๅ๏ผๅฎฟไธปๆฅๆไธไธชๆฐๆๅคง็คผๅ
๏ผ่ฏท้ฎๆฏๅฆๅผๅฏ๏ผใ\r\nโๅผ๏ผโ\r\nใๆๅๅ็บง้ญๅใๆๅ็บงๆญฆ้ญใๆไธๆ่
ฟๆญฅ้ญ้ชจใ\r\nๅขจๅฐๆฏซไธ็น่ฑซ็้๏ผๅ็บงๆญฆ้ญ๏ผ\r\nๆข็ถ่ชๅทฑๆฅๅฐไบๆ็ฝไธ็๏ผ้ฃๅฐฑ็ปๅฏนไธ่ฝ่พ่ดไธๅคฉ็ปไป็่ฟๆฌกๆบไผ๏ผๅคฉไธๆๅฟๅไฝณไบบไป้ฝ่ฆ๏ผ\r\n็ฐๅจๆ้่ฆ็ๆฏๆๅ
ฅๆญฆ้ญๆฎฟๆ ธๅฟ๏ผไบๅๅฐๆฏๆฏไธ็ๆฏๆ๏ผๅฆๆญคไธๆฅๆๆๆบไผๅๆ็ๅไธไธไบใ\r\nๅ็บง้ญๅๅบ็ถ้่ฆ๏ผไฝๅดไธ่ฝ็ซ้ฉฌ่ทๅพ้ญ็ฏ๏ผ้ญ้ชจ่ฝ็ถ้่ฆ๏ผไฝ่ฟๆฏไธไธๆฌๅฝๆญฆ้ญ๏ผ\r\nใๅฎ๏ผๆญฆ้ญๆๅ๏ผๅฎฟไธปๅๆฅๅจๆญฆ้ญไธบๅ๏ผ็ฐๅจๆๅไธบ็ฅๅใ\r\nๅกๅกๅกโฆโฆ\r\nไธ้ต็ฝๅ
้ช็๏ผๅขจๅฐๅฝปๅบ่ตท่บซ๏ผ่บซไธๆตฎ็ฐไธๆๅทจๅคง็ๅๅฝฑใ\r\nๆญฆ้ญๆฎฟ้ซๅฐไธ\r\nไธๅฎ็็ๅฎ็ๅๆ็ฝ่บซไฝไธ้๏ผโ่ฟๆไนๅฏ่ฝ๏ผ๏ผโ\r\n้ชจๆ็ฝ๏ผโๆไนไบ๏ผโ\r\nๅๆ็ฝๆๅน้๏ผโๅๅ่ๅคซ็ๆญฆ้ญๅพฎๅพฎ้ขคๅจ๏ผไป็ๆญฆ้ญๅ่ดจๆๆๅจ่ๅคซไนไธ๏ผโ\r\nๅฎ้ฃ่ด้ขๅฎนไธๆฒ๏ผโๆญฆ้ญๆฎฟ็ๅบ่ด็ๆฏๆทฑไธๅฏๆต๏ผโ\r\nไธๆญคๅๆถๅบ้ขไธ็ๅ็ถ๏ผๅฐฑ่ฟๆญฆ้ญๆฎฟไธญไบบไน้ฒๅบๆๅ็็ฅ่ฒ๏ผ็ถๅๅดๆ่ฌ็็ๅไปไปฌ็ๆ็ๅไธ๏ผไปฅไธบๅขจๅฐไนๆฏๅฅน็ๆๆฎตใ\r\nๅขจๅฐไนๅๅฏๆฏๆญฆ้ญๆฎฟ้ไผไธญๆไธ่ตท็ผ็ๅญๅจ๏ผไนๆฏ้ญๅๆไฝ็ๅญๅจ๏ผๆฒกๆณๅฐไปๅคฉๅด่ฎฉไปไปฌๅคง่ท็ผ้๏ผ\r\nๆฏๆฏไธๅทๅณป็ไฟ่ธๅ
ๆฏๅพฎๅพฎไธๆ๏ผ็พ็ธ้ช่ฟไธไธ็ๆ๏ผ้ๆบๅด่งๅพฎๅพฎไธๆฌ๏ผๆ ่ฎบๅฆไฝ๏ผไปๆฏๆญฆ้ญๆฎฟ็ไบบ๏ผไปๆฅๆญฆ้ญๆฎฟๅจ้ๅคฉไธๅฐฑ้ ไปไบใ\r\nๅฐฑๅจๆญคๅป๏ผๆฏๆ็ฝ็ช็ถๅ่ฏ๏ผโๅขจๅฐ่ฝ็ถๆฅๆๅบ็๏ผไฝๆฏๅไธ็ๆฏๅทฒ็ปๆทฑๅ
ฅไป็็ป่ๅไบ่๏ผ่ฅๆฏๅไธๆฒป็๏ผๆๆไนๆไธไบๅคไน
๏ผโ\r\n่ฃๅณ้ฟ่็ๅๆฏๆฏไธ๏ผ็ญๅพ
ๅฅน็ๅฝไปคใ\r\nๆฏๆฏไธ้ขๆ ่กจๆ
็้๏ผโ้คไบๅขจๅฐ๏ผๆญฆ้ญๆฎฟๅ
ถไปๅ
ญๅๆๅ้ๅบใโ\r\n่ฏ้ณๅ่ฝ๏ผไธ่ฟๅค็็ๅฐๅ็ช็ถ้๏ผโๅฒ่ฑๅ
ๅญฆ้ข๏ผๅไธ้ๅบใโ\r\nๅไธไปฅไธๅทฑไนๅ็กฌๆผ่กๅๅจๅๅ
ถๅ
้ฟ็ๆญฆ้ญ่ๅๆ๏ผ็ถๅๅ็จๆๅ็ๅ้ๆๅ
ซ่้ญ้ชจๆฎ็ๅฒไผคไบๆญฆ้ญๆฎฟๅ
ถไปๆๅ๏ผ่บซไฝๆฉๅทฒไธๅ ช้่ด๏ผๅๅฐๆ่ฟทใ\r\nๅฎ้ฃ่ดๆทกๆทก้๏ผโไธๅฎๆๅ๏ผไธๆฐ้ญใโ\r\nๅผๅผๅผโฆโฆ\r\nไธไธชๅทจๅคง็็็ๅกๅบ็ฐๅจไผไบบๅคด้กถ๏ผๅไธๅจๅฒ่ฑๅ
ไผไบบ็ๆฅๆคไธญ่ตท่บซใ\r\nๆฏๆฏไธๆทกๆผ ็็็ไปไปฌ๏ผโ่งฃๆฏๅงใโ\r\nๆฐๆฏไนๅ๏ผๅไธไธบๆญฆ้ญๆฎฟๅ
ญๅ้ไผ่งฃๅฎๆฏ๏ผ้ๅๆ่ฎถ็ๆๅๆญฆๅฐ๏ผๅฟไธญๆ้๏ผไป็ซ็ถ่ฝๆไฝๆ็ๆฏ๏ผ้่็ๅฅฝๆทฑ๏ผไธ่ฟๅฐฑ็ฎๅฆๆญค๏ผไปไน็ปๅฏนไธๅฏ่ฝ่่ฟๆด่ๅคงๅๅฐ่ๅ
ญไบบใ\r\n็ฅ้ฃๅญฆ้ข\r\nไธๅ่บซ็ฉฟ่ก็บข่ฒ็ญๆ็็ป่ฒๅฐๅฅณๆ่ฎถ็็็ๅขจๅฐ๏ผๅฌ็ๅ้ฝฟ็้๏ผโๅขจๅฐๅ ๆฒน๏ผไธๅฎ่ฆๆๅฒ่ฑๅ
ๅญฆ้ขๆ่ดฅ๏ผโ\r\nโๅพ้พโฆโฆโ้ฃ็ฌๅคฉๆไบๆๅคด๏ผโ็ฐๅจๅฐฑ็ไปไปฌ่ฐๅ
ๆขๅค๏ผไฝ ไปฌ็ๅฅฅๆฏๅกๅๅฐ่ๅทฒ็ป่ตท่บซไบ๏ผ่้ฃๅขจๅฐไป็ถ่บซ่ดๅงๆฏใโ\r\nโๅซๅฟไบ๏ผๅๅๆฏๆ็ฝไบฒๅฃ่ฏด่ฟ๏ผๅไธ็ๆฏๅชๆไป่ฝ่งฃใโ\r\n็ซ่็ ็ ็็ชไบไปไธ็ผ๏ผโไฝ ไธ่ก๏ผไธไปฃ่กจไปไธ่ก๏ผๅขจๅฐไธๅฎๅฏไปฅๆ่ดฅๅฒ่ฑๅ
๏ผโ\r\nโๅโฆโฆโ้ฃ็ฌๅคฉๆไบๆๅคด๏ผๅฏน็ซ่็ฒ็ฎ็ไฟกไปปๆไบๆ ๅฅ๏ผไป่ฝ็ถๅๆฌข็ซ่๏ผไฝๅดไธๅ้๏ผๅ ไธบไป็ฅ้๏ผๅช่ฆๆฏไธๅฒ่ฑๅ
ไธบๆ๏ผ็ซ่้ฝไผๆ ๆกไปถๆฏๆ๏ผ\r\nๆญฆๅฐไธ\r\nๅขจๅฐๅดๅๅ็ดซ๏ผๆฐๆฏ็ดไนฑ๏ผๅฐฑ่ฟ่บซไธ็ๆญฆ้ญ้ฝๅผๅง่ฅ้่ฅ็ฐ๏ผๆ นๆฌๆ ๆณๆญฃๅธธ่กๅจใ\r\nๆฆ๏ผๆชไธๅพ่ฟๅๆญฆ้ญๆฎฟ็ๆๅๅ
ๆญปไบ๏ผไธไป
ๅ ไธบไปๅฎๅๆไฝ๏ผๆ้่ฆ็ๆฏ่ฟๆฏๅคช็ ไบ๏ผ\r\nใๅฎ๏ผ็ณป็ปๆถๅฐๆฅ่ชๅคฉๆฐดๅญฆ้ข้ๆๅผ99+ใ\r\nใๅฎ๏ผ็ณป็ปๆถๅฐ็ฅ้ฃๅญฆ้ข้ๆๅผ99+ใ\r\nใๅฎ๏ผ็ณป็ปๆถๅฐๆญฆ้ญๆฎฟ้ๆๅผ99+ใ\r\nใโฆโฆใ\r\n็ญ็ญไธๅฐไธๆฏ็ๅๅคซ๏ผๅขจๅฐๅฐฑๆถๅฐๆฐไธ้ๆๅผ๏ผ่ๆตทไธญๆตฎ็ฐๅบ็ณป็ปๅ
ๆข้กต้ขใ\r\nใ้ญๅฎๆๅไธ็บง้ญๅ999้ๆๅผ๏ผไธๅนด็บง้ญ็ฏ9999๏ผ้ญ้ชจ99999ใ\r\n้ซๅฐไธ\r\nๆฏๆ็ฝๅๆๆฑๆ๏ผโๆ็ๅไธ๏ผๆๆณๆ้ๆจไธไธ๏ผๅขจๅฐ็ๆญฆ้ญ่ฝๅผบ๏ผไฝไนๅช่ฝๅปถ็ผๆฏ็ๅไฝ๏ผ่ฅๆฏๅ่ฟไธไบ๏ผๆๆโฆโฆโ\r\nๆฏๆฏไธๅๆฌก้ทๅ
ฅไธค้พๅขๅฐ๏ผไปๅคฉ็ๆ
ๅตๆฉๅทฒๅบไนๅฅน็ๆๆ๏ผๆฌไปฅไธบๆญฆ้ญๆฎฟไผ่ฝป่ๆไธพ็ๅ่๏ผๅดๆฒกๆณๅฐๅบ็ฐ่ฟไนๅคๅๆ
๏ผ\r\nๅขจๅฐ็ๆฝๅๅทฒ็ปไธๆฏซไธ้ไบไธๅฎ็็ๅฎ็ๅๆ็ฝ๏ผ็่ณ็นๅจๅ
ถไธ๏ผ่ฅๆฏๅฐๆฅๆ้ฟ่ตทๆฅ๏ผๅฟ
็ถไผๆไธบๅฅน็ๅทฆ่ๅณ่๏ผๅฉๅฅนๅฎๅ
จๆๆกๆญฆ้ญๆฎฟ๏ผ็่ณไธ็ปๅคฉไธ๏ผ\r\nๅฐฑ็ฎ็ฐๅจ่ฎค่พ๏ผๆญฆ้ญๆฎฟไธขไบ้ขๅญๅไธๅ้ญ้ชจ๏ผไฝๅฏนไบๅฅนๆฅ่ฏด๏ผ่ฅๆฏ่ฝๆถ่ทๅขจๅฐ๏ผไนไธ็ฎ่พโฆโฆ\r\nๆฏๆฏไธๅท็ผๆซไบไธไธๅฒ่ฑๅ
ๅญฆ้ข๏ผๆทกๆทก้๏ผโๆญฆ้ญๆฎฟโฆโฆโ\r\nโ็ญ็ญ๏ผโ\r\nๅฐฑๅจๆ็ๆณ่ฆๅฎฃๅธๅฝไปคๆถ๏ผๆญฆๅฐไธ็ๅขจๅฐ็ช็ถๆๆญไบๅฅน็่ฏ๏ผๅบ้ขไธๅบฆๅฏ้ใ\r\nๆฏๆฏไธไฟ่ธ้ชค็ถไธๅท๏ผ้ๅๅ็ฐๆฏๅขจๅฐๆถ็ฅๆ
ๅพฎๅพฎไธ็ผ๏ผโๅขจๅฐ๏ผไฝ ่ฟๆไฝไบ๏ผโ\r\nโๅคโฆโฆโๅขจๅฐๅคไนไธ็ฌ๏ผโๆ็ๅงๅง่ฟๆฏๅ
ๅซๆฅ็ไธ็ป่ฎบใโ\r\nโไธไธ่ฟๆฏโฆโฆๆ่ฝ่งฃๅข๏ผโ\r\n\r\nๆฐไนฆ๏ผๆ็ฝ๏ผไป่ฟๅจถๆฏๆฏไธๅผๅงๆ ๆ๏ผๅทฒ็ปๅๅ ไธๅญไบ๏ผๆฑๆฏๆๅ๏ผ\r\n\r\n\r\n(ๆฌ็ซ ๅฎ)\r\n"
}
const list = Reader(content.cont, {
platform: 'browser', // ๅนณๅฐ
id: '', // canvas ๅฏน่ฑก
splitCode: '\r\n', // ๆฎต่ฝๅๅฒ็ฌฆ
fast: false, // ๆฏๅฆ่ฎก็ฎๅ ้
width: 327, // ๅฎนๅจๅฎฝๅบฆ
height: 511, // ๅฎนๅจ้ซๅบฆ
fontSize: 20, // ๆฎต่ฝๅญไฝๅคงๅฐ
lineHeight: 2.2, // ๆฎต่ฝๆๅญ่ก้ซ
pGap: 8, // ๆฎต่ฝ้ด่ท
title: content.tit, // ๆ ้ข
titleSize: 20 * 1.3, // ๆ ้ขๅญไฝๅคงๅฐ
titleHeight: 1.8, // ๆ ้ขๆๅญ่ก้ซ
titleWeight: 500, // ๆ ้ขๆๅญๅญ้
titleGap: 62, // ๆ ้ข่ท็ฆปๆฎต่ฝ็้ด่ท
})
```
้ป่ฎคๅๆฐ๏ผ
```js
/* platform
browser-ๆต่งๅจ
quickApp-ๅฟซๅบ็จ
wxMini-ๅพฎไฟกๅฐ็จๅบ
alipayMini-ๆฏไปๅฎๅฐ็จๅบ
alitbMini-ๆทๅฎๅฐ็จๅบ
swan-็พๅบฆๅฐ็จๅบ
*/
platform: 'browser', // ๅนณๅฐ
/* id
browser id ๆ ้ไผ
quickApp id ้่ฆไผ canvasๅฏน่ฑก this.$element('canvas')
wxMini id ้่ฆไผ canvas็ปไปถๅฏไธ่ชๅฎไนid 'maCanvasx'๏ผๆฏๆ็ฆปๅฑ canvas ็็ๆฌๆ ้ไผ
alipayMini id ้่ฆไผ canvas็ปไปถๅฏไธ่ชๅฎไนid 'maCanvasx'๏ผๆฏๆ็ฆปๅฑ canvas ็็ๆฌๆ ้ไผ
alitbMini id ้่ฆไผ canvas็ปไปถๅฏไธ่ชๅฎไนid 'maCanvasx'๏ผๆฏๆ็ฆปๅฑ canvas ็็ๆฌๆ ้ไผ
*/
id: '', // canvas ๅฏน่ฑก
splitCode: '\r\n', // ๆฎต่ฝๅๅฒ็ฌฆ
/* fast
* ๆฏๅฆ่ฎก็ฎๅ ้๏ผ้ป่ฎค false
* ๆ็
งๅฎนๅจๅฎฝๅบฆ็ฒ็ฅ่ฎก็ฎๅบๅฎๆฏ่กๅญๆฐ๏ผๆฎต่ฝ่กไธๅ้่ฟ measureText ่ฎก็ฎ็ฒพ็กฎ็ๅญๆฐ
* ๆต่งๅจไธ้่ฆ็จ๏ผๅฟซๅบ็จ่ฎก็ฎ่ๆถ่พ้ฟ๏ผๅจ 60~150ms ไน้ด๏ผๅฏนๆ็่ฆๆฑไธ้ฃไน้ซๅฏ่่ไฝฟ็จไปฅๆญคๆ้ซ้ๅบฆ
*/
fast: false,
type: 'page', // page-่ทๅ้กตๆฐ็ป line-่ทๅ่กๆฐ็ป
width: 0, // ๅฎนๅจๅฎฝๅบฆ-ๅฟ
ไผ
height: 0, // ๅฎนๅจ้ซๅบฆ-ๅฟ
ไผ
fontFamily: 'sans-serif', // ๅญไฝ
fontSize: 0, // ๅญๅทๅคงๅฐ-็ซ ่ๅ
ๅฎน-ๅฟ
ไผ
lineHeight: 1.4, // ่ก้ซ-็ซ ่ๅ
ๅฎน
pGap: 0, // ๆฎต่ฝ้ฆ่กๅไธไธๆฎต่ฝ้ด่ท
title: '', // ็ซ ่ๆ ้ข
titleSize: 0, // ๅญๅทๅคงๅฐ-็ซ ่ๆ ้ข
titleHeight: 1.4, // ่ก้ซ-็ซ ่ๆ ้ข
titleWeight: 'normal', // ๅญ้-็ซ ่ๆ ้ข
titleGap: 0, // ๆ ้ขๅๅ
ๅฎน็้ด่ท-็ซ ่ๆ ้ข
```
[็นๅปๆฅ็่ฏฆ็ปไฝฟ็จๆๆกฃ](https://cjm0.github.io/blog/page/list/read.html)
*ๅฏไปฅ็ดๆฅๆ js ๅคๅถๅบๆฅ่ชๅทฑไฟฎๆนๆฉๅฑๅ็จ*
## ๅ่ฝๆฏๆ
**ๅ่ฝ่ฆๆฑ๏ผ**
- ๆฏๆๆจช็ฟปใ็ซ็ฟป้
่ฏป
- ๆฏๆๆๅญไธค็ซฏๅฏน้ฝ
- ๆ ็น็ฌฆๅท้ฟๅคด
- ๆฏๆๆๆฎตใๆ่กๆๅ
ฅๅนฟๅ
**ๅนณๅฐ่ฆๆฑ๏ผ**
- ๆต่งๅจๅ
ๆ ธ๏ผPC ็ซฏๆต่งๅจใ็งปๅจ็ซฏๆต่งๅจใๆก้ข็ซฏ่ฝฏไปถ Electron ไปฅๅๆๆบ App ๅ
ๅต็ H5
- ๅฐ็จๅบ็ฑป๏ผๅพฎไฟกๅฐ็จๅบใๆฏไปๅฎๅฐ็จๅบใๆทๅฎๅฐ็จๅบใ็พๅบฆๅฐ็จๅบใๅฟซๅบ็จไปฅๅๅ
ถไปๅนณๅฐๅฐ็จๅบ็ญ
## ๆนๆกๅฏนๆฏ
ๆนๆก1๏ผๅฉ็จๅฎนๅจ่ชๅธฆๆ็ๅ่ฝๅฎ็ฐ
ๆนๆก2๏ผ้่ฟ js ่ฎก็ฎๆ็ๅๆฎตๅ่ก๏ผ็ถๅๅ็ปๅๆ้กต
### ๅฎนๅจ่ชๅธฆๆ็ๆนๆก
1. ๆจช็ฟปๅ้กต๏ผcolumn ๅๆ ๅธๅฑๅฎ็ฐ๏ผ**ๅฟซๅบ็จไธๆฏๆ๏ผๅฐ็จๅบไธๆฏๆ**
2. ๆ ็น็ฌฆๅท้ฟๅคด๏ผๅฎนๅจ่ชๅธฆๆ ็น็ฌฆๅท้ฟๅคดๅ่ฝ
3. ไธค็ซฏๅฏน้ฝ๏ผ`text-align: justify;`๏ผ**ๅฟซๅบ็จไธๆฏๆ๏ผๅพฎไฟกๅฐ็จๅบ ios ไธไธๆฏๆ**
4. ไผ็น๏ผ้ๅบฆๅฟซ
5. ็ผบ็น๏ผไพ่ตๅนณๅฐๆ็ๆธฒๆ่ฝๅ๏ผๅ
ผๅฎนๆงๅทฎ๏ผๆ ๆณๅๅฐ็ปไธ
### js ่ฎก็ฎๆ็ๆนๆก
1. ๆจช็ฟปๅ้กต๏ผ้่ฟๅฎนๅจๅฎฝ้ซ่ฎก็ฎๆฏ้กต่กๆฐ๏ผๆฏ่กๅญๆฐ
2. ๆ ็น็ฌฆๅท้ฟๅคด๏ผๆๅจ่ฎก็ฎๅฎ็ฐ
3. ไธค็ซฏๅฏน้ฝ๏ผ`justify-content: space-between;`๏ผๅฐ็จๅบใๅฟซๅบ็จใๆต่งๅจ็ๆฏๆ
4. ไผ็น๏ผไธไพ่ตๅนณๅฐ๏ผๅ
ผๅฎนๆงๅฅฝ
5. ็ผบ็น๏ผ่ฎก็ฎ้่ฆๆถ้ด๏ผไธๅๅนณๅฐไธๅๆๆบ่ฎก็ฎ่ๆถไธๅ๏ผๆต่งๅจ่ฎก็ฎ่ๆถๆๅฐ๏ผไฝ็ซฏๆๆบ่ๆถๆดๅค๏ผ
## ๅฎ็ฐๅ็
### ๆจช็ฟปๅ้กต
1. ๅๆฎตๅ่ก๏ผ
- ๆฟๅฐๅ็ซฏ็็ซ ่ๅ
ๅฎน๏ผๆ็
งๅ
ๅฎน็ๆฎต็ฌฆๅทๅๅฒๆๆฎตๆฐ็ป
- ๅพช็ฏๆฎตๆฐ็ป๏ผๆๆฏๆฎตๆ็
งๅฎนๅจๅฎฝๅบฆ่ฎก็ฎๅๆ่กๆฐ็ป๏ผๅฉ็จ `canvas measureText` ๆนๆณๆต้ๆๆฌๅฎฝๅบฆ
2. ่่กๆ้กต๏ผ
- ๆ็
งๅฎนๅจ้ซๅบฆ่ฎก็ฎๆฏ้กต่ฝๆพๅคๅฐ่ก
- ้กต้ซๅบฆ = ๆ ้ข้ซๅบฆ + ่ก้ซๅบฆ + ้ด่ท
- ๆ ้ข้ซๅบฆ = ๅญไฝๅคงๅฐ * ่ก้ซ
- ่ก้ซๅบฆ = ๅญไฝๅคงๅฐ * ่ก้ซ
- ้ด่ท = ๆฎต้ด่ท + ๆ ้ขๅๅ
ๅฎน็้ด่ท
### ๆ ็น็ฌฆๅท้ฟๅคด
1. ้ฟๅคดไธ้ฟๅฐพ
2. ็ฌ็ซไธ่ก็ไธๅค็
3. ้ๆฎต่ฝ้ฆ่ก๏ผ่กๅคดๆฏ็ปๅฐพ็ฑปๅ็ๆ ็น็ฌฆๅท๏ผ
- ไธไธ่ก่กๅฐพๆฏๆๅญ็๏ผๆไธไธชๅญไธๆฅ๏ผไธไธ่กไธค็ซฏๅฏน้ฝ้ด้ๆฉๅคง
- ไธไธ่ก่กๅฐพ1~2ไธชๆ ็น็ฌฆๅท็๏ผๆ ็น็ฌฆๅทๅไธไธชๆๅญๅๆ ็น็ฌฆๅทไธ่ตทๆไธๆฅ๏ผไธไธ่กไธไธค็ซฏๅฏน้ฝ๏ผๆๅญ็็ฉบ
- ไธไธ่ก่กๅฐพ3ไธชๅไปฅไธๆ ็น็ฌฆๅท็๏ผไธๅๅค็
- ไธไธ่กๅชๆ1ไธชๆๅญๅ
ถไป้ฝๆฏๆ ็น็ฌฆๅท็๏ผไธๅๅค็
### ไธค็ซฏๅฏน้ฝ
#### ๆนๆณ1
่กๆ ็ญพ p ่ฎพ็ฝฎ `display: flex;`๏ผ้่ฆไธค็ซฏๅฏน้ฝ็่กๅ ไธ `justify-content: space-between;`
ๆญค่กๆๅญ `text.split('')` ๅๅฒๆๆฐ็ปๅนถ็จ for ๅพช็ฏ span ๆ ็ญพๆธฒๆ
#### ๆนๆณ2
้กตๆ ็ญพ `text-align: justify;`
่ก้่ฆๅฏน้ฝ็ๆ ็ญพ
```css
.center::after{
content: '';
display: inline-block;
width: 100%;
height: 0;
}
```
```html
<template v-for="(p, idx) in item.list">
<h2
v-if="p.isTitle"
:key="`${index}${idx}`"
class="title"
:style="{ fontSize: titleFontSize + 'px' }"
>{{p.text || ''}}</h2>
<p
v-else
:key="`${index}${idx}`"
:class="['content', p.pFirst && 'indent', p.pFirst && idx !== 0 && 'graph', p.center && 'center']"
>{{ p.text }}</p>
</template>
```
```css
.page{
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
text-align: justify;
}
.title {
display: block;
font-size: 20px;
font-weight: 500;
line-height: 1.8;
white-space: nowrap;
&:last-of-type{
margin-bottom: 62px;
}
}
.content {
font-size: 1em;
line-height: 2.2;
}
.indent{
text-indent: 2em;
}
.graph{
padding-top: 8px;
}
.center::after{
content: '';
display: inline-block;
width: 100%;
height: 0;
}
```
### ่ฎก็ฎๅ ้
ไผ `fast: true` ๅฏ่ทณ่ฟๆฏ่กๅญๆฐๅฎฝๅบฆ่ฎก็ฎไปฅๅๅฐ่ฎก็ฎๆถ้ด๏ผๆญฃๅธธไธ้่ฆ็จๅฐใ
ๅฆๆ้่ฆๅค็ๆง่ฝๅพๅทฎ็ไฝ็ซฏๆๆบ่ฎก็ฎ่ๆถ้ฎ้ข๏ผๅฏ่่ไผ `fast: true`๏ผๆญคๆถๆฏ่กๅญๆฐๅบๅฎ้ฟๅบฆ๏ผๅฏนไบไธ่กๆๅคไธชๅญ็ฌฆๅฎฝๅบฆไธ่ถณไธไธชๆฑๅญ็ๆ
ๅตไธค็ซฏๅฏน้ฝ้ด้ไผๆฏ่พๅคง๏ผไผ้ไฝ้
่ฏป็็ฒพๅไธ่ดๆงใ
่่ๅฅฝๅ็จ๏ผๆฏๅฆ็บ็ฒๅฐ้จๅ้
่ฏปๆงๆฅๆขๅ่ฎก็ฎ้ๅบฆๆ้ซใ
## ๆง่ฝ่กจ็ฐ
ๆง่ฝ่กจ็ฐๅ่ฎก็ฎๆๅ
ณ๏ผไธป่ฆ็ธๅ
ณๆงๅ
ๆฌๆต่งๅจ็ๆฌใๆๆบๆง่ฝใๅนณๅฐๅ
ๆ ธใ็ซ ่ๅ
ๅฎนๅคงๅฐ
ๅธธ่ง็ซ ่ไธๅๆง่ฝๆๆบๆดไฝๅจ 50ms ไปฅๅ
่ๆถ็ป่ฎก๏ผ
- ๆต่งๅจ๏ผ10ms ไปฅๅ
- App ๅ
ๅต H5๏ผ30ms ไปฅๅ
๏ผไฝๆกฃๆๆบ๏ผ
- ๅฟซๅบ็จ๏ผ10ms ไปฅๅ
- ๆฏไปๅฎใๆทๅฎๅฐ็จๅบ๏ผ10ms ไปฅๅ
- ๅพฎไฟกๅฐ็จๅบ๏ผ10ms ไปฅๅ
| ้
่ฏปๅจๆ็ๅผๆ | javascript | 2023-07-25T11:53:17Z | 2023-10-26T10:59:52Z | null | 1 | 0 | 11 | 2 | 2 | 8 | null | null | JavaScript |
hanako-eo/arsenic | main | # Arsenic
Arsenic is a language designed as an alternative to TypeScript, stricter and more rigorous, it will transpile towards JS by offering code that is much easier to maintain. It will correct all the little imperfections of TypeScript.
It will try also to add new "false" feature to JavaScript like operator overloading or defer.
## Roadmap
### Core Roadmap
- [x] Lexer/Parser (converte file into [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree))
- [ ] Scanner (check and optimise the AST)
- [ ] Type Checking
- [ ] Compile to JS
- [ ] Optimise the JS output
### Functionality Roadmap
- [ ] Import (with `const a = #import("./a.ars");`)
- [ ] Operator overloading (with compile only symbol `@@op_add`, `@@op_eq` and many more)
- [ ] Interface
- [ ] Match expression (switch like)
- [ ] Tuples (and trying to optimise memory with them)
- [ ] Enum and Union
- [ ] Optimize `Array<int>` with [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray)
### (Really) Long-term Roadmap
- [ ] Try to generate the V8 bytecode for Nodejs
| A language designed as an alternative to TypeScript, stricter, more rigorous and designed to optimise the JavaScript code produced as much as possible. | arsenic,javascript,language,typechecker,typescript | 2023-08-03T22:22:08Z | 2024-04-02T23:24:27Z | null | 1 | 0 | 27 | 0 | 0 | 8 | null | MIT | Zig |
N3v1/Calculator | main | > [!Warning]
> ***(02/04/2024)*** This repo will be unmaintained soon[ยฐ](https://github.com/N3v1/Calculator#note). You'll still be able to use the calculator
# Calculator
<!-- Quick intro about project -->
<img align="right" width="100" src="https://media.giphy.com/media/4Wr6YXcHWrQMyeZq4J/giphy.gif">
Welcome to the documentation for the Calculator Repository! This resource provides insight into our user-friendly calculator, offering basic arithmetic operations with ease and precision. Built on the basic HTML, CSS, and JavaScript, it ensures accessibility for all modern web browsers.
<!-- Table of Content Section -->
## Table of Contents
1. [Getting Started](https://github.com/N3v1/Calculator#getting-started)
2. [User Interface Overview](https://github.com/N3v1/Calculator#user-interface-overview)
3. [Known Errors/BUGs](https://github.com/N3v1/Calculator#known-errorsbugs)
4. [Other] - [Contributing](https://github.com/N3v1/Calculator#contributing) - [License](https://github.com/N3v1/Calculator#license) - [Note of Thanks](https://github.com/N3v1/Calculator#note-of-thanks)
<!-- Getting Started Section -->
## Getting Started
- **For With internet**, just click [**here**](https://n3v1.github.io/Calculator/). You can bookmark the website for future use.
- **For without internet follow these steps,**
1. **Clone this repository:** Open your terminal and type `git clone https://github.com/N3v1/Calculator.git`.
Make sure git is installed on your computer. To check use the `git --version` command. If git isn't installed use homebrew to install git `brew install git`.
2. **Open the index.html file:** Go to the folder where you cloned the repository, double-click on index.html. Again, it will load you onto the web browser with your local copy of the calculator which you can use without worrying about internet.
<!-- UI overview section -->
<img align="right" width="100" src="https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExM3YyZWMyN3B1YzdqbGUxYnNodjk5c3d4ZWgxbGg1YmV6MWt3dmYyNSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/xwY1n9NDT3IXLZmkzq/giphy.gif">
## User Interface Overview
I really tried to emphasise the importance of simplicity while building this calculator. Making sure that the experience of the user is unhurdled. The calculator is both simple and tidy but comprises of most of the features the user might expect. It also gives a professional setting for the user with sophisticated functionalities like it works both with a keyboard and mouse.
<img height=400px src="Interface.png">
<!-- Functionalties section -->
## Useful Features and Functionalities
The calculator provides range of functionalities enabling users to perform **essential arithmetic operations**. Additionally, the calculator features advanced capabilities, such as **percentage calculations** and **brackets for more complex equations**. Furthermore, I am continuously working towards incorporating **new features** to enhance the calculator's functionality.
<img align="right" width="100" src="https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExdGYxYmF2anYybmVvMHQxMTlkNjNvZjZsdTA0bHppeHN0OXkzaG55MCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/knh6IuGKMB4ySsg47z/giphy.gif">
## Known Errors/BUGs
Currently, there are no known errors or bugs in this calculator. However, if you encounter any issues, please report them in the issues panel.
### Contributing
This project is open to any contributions, I welcome pull requests. But, Please ensure that your changes are well-documented and maintain clean, readable code. See [**`Contribution Guidelines`**](Contributing.md).
### License
This project is licensed under the MIT License - see the [`LICENSE`](LICENSE) file for more information.
### Note of Thanks
- Many thanks to [**Phil94comp**](https://github.com/Phil94comp) for helping me fix bug **#1**.
- Many thanks to [**anubhav1206**](https://github.com/anubhav1206) for redesigning the calculator **#4** and **#6**.
- Many thanks to [**jiri132**](https://github.com/jiri132) for his extraordinary help with this project.
- Many things to [**chavi362**](https://github.com/chavi362) for her extraordinary help with this project.
- Many thanks to everyone who contributed to this project and also to you who read till here.
---
### Note
ยฐThe repo won't recieve any new features and bug-fixes
| Build a calculator app in HTML, CSS and JS | calculator-application,css3,html5,javascript,good-first-issue,good-practices | 2023-07-30T08:41:29Z | 2024-02-04T19:29:09Z | 2023-08-25T11:52:10Z | 14 | 33 | 152 | 0 | 12 | 7 | null | MIT | JavaScript |
alvesxdani/social-network-dogs | main | # Projeto: Rede social de Pets
<img src="./src/Assets/print-projeto.jpg" />
Projeto criado no curso de React da Origamid. Consiste em uma rede social de cรฃes, onde vocรช se cadastra, realiza o login e realiza postagens com a foto do cรฃo, nome, peso e idade, como tambรฉm pode realizar comentรกrios nas postagens.
## Foram utilizadas as seguintes tecnologias:
- React
- Victory chart (para criaรงรฃo dos grรกficos para as estatรญsticas)
- React Router
- API REST (fornecida pela Origamid, para realizaรงรฃo de login, fazer postagens, fazer reset de senha e etc)
- CustomHooks (useFetch, useForm, useMedia)
- useContext API
- Styled Components
- useState
- Validaรงรฃo de Token (para logins)
- Rotas protegidas
- Lazy e Suspense
Deploy: <a href="https://social-network-dogs-two.vercel.app/">Clique aqui</a><br />
Repositรณrio: <a href="https://social-network-dogs-two.vercel.app/">Clique aqui</a> | Rede social de cรฃes, onde permite cadastro, login, postagem e comentรกrios. | css,custom-hooks,front-end,frontend,html,javascript,js,project,react,react-hooks | 2023-08-06T20:17:24Z | 2023-10-15T00:14:05Z | null | 1 | 0 | 19 | 0 | 1 | 7 | null | null | JavaScript |
peter-kimanzi/Restaurant-menu-with-follow-along-highlighter | master | # Restaurant-menu-with-follow-along-highlighter.
Restaurant menu with follow along highlighter using JavaScript
## Live link
https://peter-kimanzi.github.io/Restaurant-menu-with-follow-along-highlighter/
## Screenshot

| Restaurant menu with follow along highlighter using JavaScript | css,html,javascript | 2023-08-02T07:29:57Z | 2023-08-08T10:43:36Z | null | 1 | 0 | 50 | 0 | 1 | 7 | null | null | HTML |
douhjs/douh | main | # Node.js Server Framework `douh`
## Introduction
douh is node.js server framework.
super slow and heavy. but want to be fast and light.
Contributions are always welcome!
<hr/>
## Installation
```bash
$ npm install douh
```
## Usage
### Hello world
when return, douh will send response body.
```typescript
import App from 'douh';
const app = new App();
app.use(() => {
return 'hello world!';
});
app.listen(3000);
```
### Middleware
douh supports async middleware.
```typescript
app.use(async (req, res, next) => {
console.time('start');
await next();
console.timeEnd('end');
});
```
### Use Router
```typescript
import App, { Router } from 'douh';
const app = new App();
const router = new Router();
router.get('/ping', (req, res, next) => {
return 'pong';
});
app.use(router.middleware());
app.listen(3000);
```
### bodyParser
you can use `bodyParser` middleware.
```typescript
import App, { bodyParser, Router } from 'douh';
const app = new App();
const router = new Router();
router.post('/ping', (req, res, next) => {
console.log(req.body);
console.log(req.files); // when content type is multipart/form-data
return 'pong';
});
app.use(bodyParser);
app.use(router.middleware());
app.listen(3000);
```
### Use Service
you can use service with `@Service` decorator.
access service with `req.service`.
```typescript
import App, { Service } from 'douh';
@Service()
class DouhService {
public hello(name: string) {
return `hello ${name}`;
}
}
const app = new App();
app.use(async (req, res) => {
const result = req.service.userService.hello('douh');
return result; // hello douh
});
```
### Use Repository
you can use repository with `@Repository` decorator.
access repository in service constructor.
```typescript
@Repository()
class DouhRepository {
hello(name) {
return `hello ${name}`;
}
}
@Service()
class DouhService {
constructor(private readonly douhRepository: DouhRepository) {}
hello(name: string) {
return this.douhRepository.hello(name);
}
}
const app = new App();
app.use(async (req, res) => {
const result = req.service.douhService.hello('douh');
return result; // hello douh
});
```
### Use File Service
you can use file service with middleware.
```typescript
import App, { serveStatic } from 'douh';
const app = new App();
app.use(serveStatic('public')); // it must be placed before bodyParser
app.use(bodyParser);
app.listen(3000);
```
| Web Server Framework on Node.js | domain-driven-design,framework,javascript,javascript-framework,nodejs,nodejs-framework,typescript,douh,typescript-framework | 2023-07-27T06:49:02Z | 2023-11-11T13:57:51Z | 2023-08-16T01:45:03Z | 3 | 26 | 149 | 0 | 3 | 7 | null | MIT | TypeScript |
azzzrro/React-Redux-CRUD-Design | main | # Getting Started with Create React App
First Locate the project directory, and run the command:
### `npm install`
This will install the necessary dependencies for the app.\
Once the installation is complete, you can proceed to run the app.
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
The page will reload when you make changes.\
You may also see any lint errors in the console.
## Screenshots








### `npm test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
| Client-side application built with React and Redux, offering basic CRUD operations. Users can perform essential tasks like login, signup, edit profile. Admins can view and edit user details, delete accounts if necessary, and have full control over user-related actions. | bootstrap,css,html,javascript,react,redux,jwt-authentication | 2023-07-21T06:21:22Z | 2023-07-27T10:09:35Z | null | 1 | 0 | 11 | 0 | 1 | 7 | null | null | JavaScript |
0trava/project-CodeMasters02 | main | # GooseTrack
We are students of group named "Code Masters" of GะพIT academy, group 68, team 5 ๐ฅ ๐. We graduated React and Node.js course and for consolidate in practice ๐ knowledges received on this course, we together ๐ค developed a graduation project - GooseTrack.
GooseTrack is an all-in-one productivity tool that helps you stay on top of your tasks, events, and deadlines. Say goodbye to scattered to-do lists and hello to streamlined productivity with GooseTrack.
Our backend <a href="https://github.com/OlhaLushina/project-CodeMasters02-backend">LINK</a>
Made by design <a href="https://www.figma.com/file/kXtsjq7Tts3YzolUVqgNsp/Goose-Track?node-id=0%3A1&t=1A4UeIYiOYEgfGkN-1">LINK</a>
If you like our work, don't forget to put a โญ
### THIS PROJECT WAS CREATED BY:
- :man_student:[**Team Lead:** Lytvyn Svetlana](https://github.com/0trava)
- :man_student:[**Team Lead:** - Olha Lushina](https://github.com/OlhaLushina)
- :man_student:[**Scrum master** & **Full stack developer**: Olena Harkusha](https://github.com/OlenaHarkusha)
- :man_student:[**Full stack developer**: Anastasiia Ablieieva](https://github.com/Anastasiia-Ablieieva)
- :man_student:[**Full stack developer**: Anatolii Koniev](https://github.com/Demag0g1)
- :man_student:[**Full stack developer**: Yaroslav Yakovenko](https://github.com/Yaroslav-Yaroslav)
- :man_student:[**Full stack developer**: Oleg Artemenko](https://github.com/OlegArt1)
- :man_student:[**Full stack developer**: Svitlana Shvydanenko ](https://github.com/Svitlana-Sh)



| We are students of group named "Code Masters" of GะพIT academy, group 68, team 5 ๐ฅ ๐. We graduated React and Node.js course and for consolidate in practice ๐ knowledges received on this course, we together ๐ค developed a project - GooseTrack. | css,javascript,react,redux | 2023-08-07T06:45:31Z | 2023-08-27T19:56:09Z | null | 13 | 103 | 480 | 0 | 1 | 7 | null | null | JavaScript |
AlanNois/TruyenViet-0.8 | gh-pages | # TruyenViet's extension for Paperback
| # | Source | Lang | Maintainer | Add to Paperback |
| :-: | :------------: | :--: | :-------------------------------------: | :--------------------------------------------------: |
| 1 | Dev (unstable) | ๐ป๐ณ | [AlanNois](https://github.com/AlanNois) | [Add](https://alannois.github.io/TruyenViet-0.8/dev) |
| 2 | 0.8 (stable) | ๐ป๐ณ | [AlanNois](https://github.com/AlanNois) | [Add](https://alannois.github.io/TruyenViet-0.8/0.8) |
# **Notice!**
## Important Notice: Extension Updates for [Nettruyen](https://www.nettruyenvv.com/) and [Nhattruyen](https://nhattruyenss.com/)
There is currently downtime on the main website for [Nettruyen](https://www.nettruyenvv.com/) and [Nhattruyen](https://nhattruyenss.com/). This situation may temporarily affect the functionality of the following extensions:
* **[Nettruyen]**
* **[Nhattruyen]**
**Here's what you need to know:**
* Once the website restoration is complete, both extensions will automatically update to the latest version.
* If you'd like to receive updates before the website is restored, you have two options:
1. **Wait for Automatic Update:** This is the simplest option. Once the website is back online, the extensions will automatically update with the latest features and bug fixes.
2. **Manual Update (For Advanced Users):**
* You can clone the extension repository and modify the code to your liking based on the latest website changes (if applicable).
* After making your modifications, submit a pull request on Git to contribute your changes back to the main repository.
**Please note:** Manually updating the extension requires familiarity with Git and coding. It's recommended for advanced users only.
**Stay Updated:**
We apologize for any inconvenience caused by the temporary outage. We'll keep you updated on the website restoration progress.
**Questions?**
If you have any questions regarding extension updates or the manual update process, please feel free to open an issue in the [Issues](../../issues) section of the repository.
**Thank you for your patience and understanding!**
| VietNamese paperback source | javascript,manga-scraper,manhua-scraper,manhwa-scraper,paperback-source,typescript,vietnamese | 2023-07-23T00:29:09Z | 2024-05-22T23:16:41Z | null | 1 | 7 | 189 | 1 | 3 | 7 | null | null | JavaScript |
omarx11/guestbook-demo | main | demo: https://guestbook.omar11.sa/
| Guestbook Project a logging system that allows website visitors to leave public comments. (You can integrate this into your own website or project) | guestbook,next-auth,nextjs,supabase,tailwindcss,full-stack,javascript | 2023-07-27T15:10:10Z | 2023-12-11T21:29:09Z | null | 1 | 0 | 19 | 0 | 0 | 7 | null | null | JavaScript |
meteor/vue3-tutorial | master | ## Meteor Vue Tutorial
If you are looking for the tutorial, please go to [https://vue3-tutorial.meteor.com](https://vue3-tutorial.meteor.com) and check it there.
This repository is the place to check the code (`src` folder) and to make contributions.
Read in the tutorial home page where you should ask questions (spoiler: [Forums](https://forums.meteor.com) or [Slack](https://join.slack.com/t/meteor-community/shared_invite/enQtODA0NTU2Nzk5MTA3LWY5NGMxMWRjZDgzYWMyMTEyYTQ3MTcwZmU2YjM5MTY3MjJkZjQ0NWRjOGZlYmIxZjFlYTA5Mjg4OTk3ODRiOTc)).
This is a [hexo](https://hexo.io) static site used to generate the [Meteor Vue Tutorial Docs](https://vue3-tutorial.meteor.com).
## Contributing
We'd love your contributions! Please send us Pull Requests or open issues on [github](https://github.com/meteor/vue3-tutorial). Also, read the [contribution guidelines](https://github.com/meteor/docs/blob/master/Contributing.md).
If you are making a larger contribution, you may need to run the site locally:
### Running locally
- Install [nvm](https://github.com/nvm-sh/nvm) to manage your Node.js (yes, this is an hexo project and not Meteor, in Meteor you don't need to worry about Node.js versions at all)
`curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash`
- Install Node.js 8.11.2:
`nvm install 8.11.2`
- Install the project
`npm install`
- Run it
`npm start`
### Styles and Lint
Make sure your changes are not breaking styles and lint rules, in the root project, run:
- `npm install`
- `npm run quave-check`
`quave-check` should not return any error or warning. If it does you need to fix them before sending a PR.
If you get an error because some npm modules are not resolved (`import/no-unresolved`) you need to run `npm install` inside the Meteor project that is throwing this error so you generate the `node_modules` folder for it.
We have a git hook to prevent commits that are not passing these rules but it's good to double-check as maybe your hooks set up can be messed up.
### Making a Pull Request
- Create a fork and make your changes on it.
- Test your changes and make sure you sync your code changes (`src` folder) with your text changes (`tutorial` folder).
- Build your changes:
`npm run build`
- Create your Pull Request against `master` branch.
- Sign the CLA.
- Wait for feedback or approval.
| Learn how to build a fullstack Vue3 app using Meteor โ๏ธ | crud,eslint,javascript,meteor,meteorjs,prettier,tailwindcss,tutorial,vue3,vuejs | 2023-08-04T12:33:35Z | 2024-01-22T12:52:33Z | null | 24 | 12 | 85 | 0 | 3 | 7 | null | null | JavaScript |
sf-yuzifu/eat-fish-together | master | <p align="center">
<br>
<img width="128" height="128" src="./img/logo.png" alt="ไธ่ตทๅๅฐ้ฑผ"/>
</p>
<h1 align="center">
ไธ่ตทๅๅฐ้ฑผ
</h1>
<div align="center">
ไธไธชๅบไบๆต่งๅจๆงๅถๅฐ๏ผDevtool๏ผ็6kไธ่ฝๅผๅฐๆธธๆ
</div>
## ๅฏผๅ
ฅๆนๆณ
- ๅจไฝ ็้กน็ฎไธญๅฏผๅ
ฅไปๅบ้็โmain.jsโๅณๅฏ๏ฝ
## ๆธธ็ฉๆนๅผ
- ๅจๆต่งๅจๆงๅถๅฐไธญ่พๅ
ฅ
```javascript
eat_fish_together()
```
ๅณๅฏๅผๅงๆธธๆ๏ผ
## ๅฝๆฐๅๆฐ่งฃ้
```javascript
eat_fish_together(mode,play);
```
### ๆธธๆๆจกๅผ(mode)
#### 1. ๆ ๅฐฝๆจกๅผ(mode=0)
ๅพๆงๅถๅฐ่พๅ
ฅ
```javascript
eat_fish_together(0);
```
ๆ่
้ป่ฎค
```javascript
eat_fish_together();
```
ๅณๅฏ่ฟๅ
ฅๆ ๅฐฝๆจกๅผใ
ๅจๆญคๆจกๅผไธญ๏ผๅฏไปฅไฝฟ็จSใDใFใJใKใL้ป่ฎคๅ
ญไธช้ฎไฝ๏ผๆชๆฅไผๆดๆฐ่ชๅฎไน้ฎไฝ๏ผๅๆๆไธ้ขไธๆ็ๅฐ้ฑผ๏ผๆฒกๆๆถ้ดไธ็้ๅถ๏ผๅฏไพ็ฎๅๆธธ็ฉใ
#### 2. 20็งๆจกๅผ(mode=1)
ๅพๆงๅถๅฐ่พๅ
ฅ
```javascript
eat_fish_together(1);
```
ๅณๅฏ่ฟๅ
ฅ20็งๆจกๅผใ
ๅจๆญคๆจกๅผไธญ๏ผๆฏๆ ๅฐฝๆจกๅผๆฐๅขๅ่ฎกๆถๅๆ้ๆฉ็ฝ๏ผ20็งๅ่ฎกๆถไธ่ฟๆ่
ๆ้ๆฌกๆฐ่ถ
่ฟๅๆฌกๆธธๆ็ปๆ๏ผๅฏไปฅไฝไธบๅจๆ ๅฐฝๆจกๅผ็ปไน ็ปๆๅ็ๆๆใ
### ้ณไนๆญๆพ(play="[Audio URL]")
ๅพๆงๅถๅฐ่พๅ
ฅ
```javascript
eat_fish_together(mode,"[Audio URL]");
```
ๅ
ถไธญ[Audio URL]ๆไฝ ็้ณ้ข็ด้พ๏ผไธๆฏไปไน็ฝๆไบ้ณไน็้ณไนๆญๆพ็้ข็้พๆฅ๏ผ๏ผ๏ผ
## ้จๅ้ข่ง

 | ไธไธชๅบไบๆต่งๅจๆงๅถๅฐ๏ผDevtool๏ผ็6kไธ่ฝๅผๅฐๆธธๆ | devtools,javascript,javascript-game,console-game | 2023-08-04T01:34:29Z | 2023-09-08T17:05:08Z | null | 1 | 0 | 11 | 0 | 0 | 7 | null | GPL-3.0 | HTML |
react18-tools/nextjs-themes | main | # Nextjs-Themes
[](https://github.com/react18-tools/nextjs-themes/actions/workflows/test.yml) [](https://codeclimate.com/github/react18-tools/nextjs-themes/maintainability) [](https://codecov.io/gh/react18-tools/nextjs-themes) [](https://www.npmjs.com/package/nextjs-themes) [](https://www.npmjs.com/package/nextjs-themes) [](https://www.npmjs.com/package/nextjs-themes) [](https://www.codementor.io/@mayank1513?refer=badge)
> We are launching version 3.0 with minor API changes and major performance improvement and fixes.
> We have tried our best to ensure minimum changes to existing APIs.
> For most users we recommend using [nthul](https://github.com/react18-tools/nextjs-themes-ultralight) package.
> We recommend using [react18-themes](https://github.com/react18-tools/react18-themes/) for Remix. This package is maintained with specific focus on Next.js and Vite. Most of the functionality of this package along with extended support for other build tools is available in [react18-themes](https://github.com/react18-tools/react18-themes/)
๐ค ๐ [Unleash the Power of React Server Components](https://medium.com/javascript-in-plain-english/unleash-the-power-of-react-server-components-eb3fe7201231)
This project was originally inspired by next-themes. Next-themes is an awesome package, however, it requires wrapping everything in a provider. The provider has to be a client component as it uses hooks. And thus, it takes away all the benefits of Server Components.
`nextjs-themes` removes this limitation and enables you to unleash the full power of React 18 Server Components. In addition, it adds more features and control over how you theme your app. Stay tuned!
- โ
Perfect dark mode in 2 lines of code
- โ
Fully Treeshakable (`import from nextjs-themes/client/component`)
- โ
Designed for excellence
- โ
Full TypeScript Support
- โ
Unleash the full power of React18 Server components
- โ
Perfect dark mode in 2 lines of code
- โ
System setting with prefers-color-scheme
- โ
Themed browser UI with color-scheme
- โ
Support for Next.js 13 & Next.js 14 `appDir`
- โ
No flash on load (for all - SSG, SSR, ISG, Server Components)
- โ
Sync theme across tabs and windows
- โ
Disable flashing when changing themes
- โ
Force pages to specific themes
- โ
Class and data attribute selector
- โ
Manipulate theme via `useTheme` hook
- โ
Documented with [Typedoc](https://react18-tools.github.io/nextjs-themes) ([Docs](https://react18-tools.github.io/nextjs-themes))
- โ
Use combinations of [data-th=""] and [data-color-scheme=""] for dark/light varients of themes
- โ
Use [data-csp=""] to style based on colorSchemePreference.
- โ
Want to avoid cookies (Not recommended), set storage prop to `localStorage` or `sessionStorage` (to avoid persistance)
Check out the [live example](https://nextjs-themes.vercel.app/).
## Install
```bash
$ pnpm add nextjs-themes
```
**OR**
```bash
$ npm install nextjs-themes
```
**OR**
```bash
$ yarn add nextjs-themes
```
## Want Lite Version? [](https://www.npmjs.com/package/nextjs-themes-lite) [](https://www.npmjs.com/package/nextjs-themes-lite) [](https://www.npmjs.com/package/nextjs-themes-lite)
```bash
$ pnpm add nextjs-themes-lite
```
**or**
```bash
$ npm install nextjs-themes-lite
```
**or**
```bash
$ yarn add nextjs-themes-lite
```
> You need r18gs as a peer-dependency
## To do
- [ ] Update examples, docs and Readme
## Usage
### SPA (e.g., Vite, CRA) and Next.js pages directory (No server components)
The best way is to add a [Custom `App`](https://nextjs.org/docs/advanced-features/custom-app) to use by modifying `_app` as follows:
Adding dark mode support takes 2 lines of code:
```js
import { ThemeSwitcher } from "nextjs-themes";
function MyApp({ Component, pageProps }) {
return (
<>
<ThemeSwitcher forcedTheme={Component.theme} />
<Component {...pageProps} />
</>
);
}
export default MyApp;
```
โก๐Boom! Just a couple of lines and your dark mode is ready!
Check out examples for advanced usage.
### With Next.js `app` router (Server Components)
#### Prefer static generation over SSR - No wrapper component
> If your app is mostly serving static content, you do not want the overhead of SSR. Use `NextJsSSGThemeSwitcher` in this case.
> When using this approach, you need to use CSS general sibling Combinator (~) to make sure your themed CSS is properly applied. See (HTML & CSS)[#html--css].
Update your `app/layout.jsx` to add `ThemeSwitcher` from `nextjs-themes`, and `NextJsSSGThemeSwitcher` from `nextjs-themes/server`. `NextJsSSGThemeSwitcher` is required to avoid flash of un-themed content on reload.
```tsx
// app/layout.jsx
import { ThemeSwitcher } from "nextjs-themes";
import { NextJsSSGThemeSwitcher } from "nextjs-themes/server/nextjs";
export default function Layout({ children }) {
return (
<html lang="en">
<head />
<body>
/** use NextJsSSGThemeSwitcher as first element inside body */
<NextJsSSGThemeSwitcher />
<ThemeSwitcher />
{children}
</body>
</html>
);
}
```
Woohoo! You just added multiple theme modes and you can also use Server Component! Isn't that awesome!
#### Prefer SSR over SSG - Use wrapper component
> If your app is serving dynamic content and you want to utilize SSR, continue using `ServerSideWrapper` component to replace `html` tag in `layout.tsx` file.
Update your `app/layout.jsx` to add `ThemeSwitcher` and `ServerSideWrapper` from `nextjs-themes`. `ServerSideWrapper` is required to avoid flash of un-themed content on reload.
```tsx
// app/layout.jsx
import { ThemeSwitcher } from "nextjs-themes";
import { ServerSideWrapper } from "nextjs-themes/server/nextjs";
export default function Layout({ children }) {
return (
<ServerSideWrapper tag="html" lang="en">
<head />
<body>
<ThemeSwitcher />
{children}
</body>
</ServerSideWrapper>
);
}
```
Woohoo! You just added dark mode and you can also use Server Component! Isn't that awesome!
### HTML & CSS
That's it, your Next.js app fully supports dark mode, including System preference with `prefers-color-scheme`. The theme is also immediately synced between tabs. By default, nextjs-themes modifies the `data-theme` attribute on the `html` element, which you can easily use to style your app:
```css
:root {
/* Your default theme */
--background: white;
--foreground: black;
}
[data-theme="dark"] {
--background: black;
--foreground: white;
}
// v2 onwards when using NextJsSSGThemeSwitcher, we need to use CSS Combinators
[data-theme="dark"] ~ * {
--background: black;
--foreground: white;
}
```
## Images
You can also show different images based on the current theme.
```jsx
import Image from "next/image";
import { useTheme } from "nextjs-themes";
function ThemedImage() {
const { resolvedTheme } = useTheme();
let src;
switch (resolvedTheme) {
case "light":
src = "/light.png";
break;
case "dark":
src = "/dark.png";
break;
default:
src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
break;
}
return <Image src={src} width={400} height={400} />;
}
export default ThemedImage;
```
### useTheme
In case your components need to know the current theme and be able to change it. The `useTheme` hook provides theme information:
```js
import { useTheme } from "nextjs-themes";
const ThemeChanger = () => {
const { theme, setTheme } = useTheme();
return (
<div>
The current theme is: {theme}
<button onClick={() => setTheme("light")}>Light Mode</button>
<button onClick={() => setTheme("dark")}>Dark Mode</button>
</div>
);
};
```
## Force per page theme and color-scheme
### Next.js app router
```javascript
import { ForceTheme } from "nextjs-themes";
function MyPage() {
return (
<>
<ForceTheme theme={"my-theme"} />
...
</>
);
}
export default MyPage;
```
### Next.js pages router
For pages router, you have 2 options. One is the same as the app router and the other option which is compatible with `next-themes` is to add `theme` to your page component as follows.
```javascript
function MyPage() {
return <>...</>;
}
MyPage.theme = "my-theme";
export default MyPage;
```
In a similar way, you can also force color scheme.
Forcing color scheme will apply your defaultDark or defaultLight theme, configurable via hooks.
### With Styled Components and any CSS-in-JS
Next Themes is completely CSS independent, it will work with any library. For example, with Styled Components you just need to `createGlobalStyle` in your custom App:
```js
// pages/_app.js
import { createGlobalStyle } from "styled-components";
import { ThemeSwitcher } from "nextjs-themes";
// Your themeing variables
const GlobalStyle = createGlobalStyle`
:root {
--fg: #000;
--bg: #fff;
}
[data-theme="dark"] {
--fg: #fff;
--bg: #000;
}
`;
function MyApp({ Component, pageProps }) {
return (
<>
<GlobalStyle />
<ThemeSwitcher forcedTheme={Component.theme} />
<Component {...pageProps} />
</>
);
}
```
### With Tailwind
In your `tailwind.config.js`, set the dark mode property to class:
```js
// tailwind.config.js
module.exports = {
darkMode: "class",
};
```
โก๐Boom! You are ready to use darkTheme in tailwind.
> Caution! Your class must be set to `"dark"`, which is the default value we have used for this library. Tailwind, as of now, requires that class name must be `"dark"` for dark-theme.
That's it! Now you can use dark-mode specific classes:
```tsx
<h1 className="text-black dark:text-white">
```
## Migrating from v1 to v2
## 2.0.0
### Major Changes
- 6f17cce: # Additonal CSS Combinations + Ensure seamless support for Tailwind
- No changes required for client side code as `[data-theme=]` selectors work as before.
- If you are using `ServerSideWrapper` or `NextJsServerTarget` or `NextJsSSGThemeSwitcher`, you need to convert `forcedPages` elements to objects of the shape `{ pathMatcher: RegExp | string; props: ThemeSwitcherProps }`.
- Use `resolvedColorScheme` for more sturdy dark/light/system modes
- Use combinations of `[data-th=""]` and `[data-color-scheme=""]` for dark/light varients of themes
- Use `[data-csp=""]` to style based on colorSchemePreference.
### Minor Changes
- # Support custom themeTransition
- Provide `themeTransition` prop to `ThemeSwitcher` component to apply smooth transition while changing theme.
- Use `setThemeSet` to set `lightTheme` and `darkTheme` together.
#### Motivation:
For server side syncing, we need to use cookies and headers. This means that this component and its children can not be static. They will be rendered server side for each request. Thus, we are avoiding the wrapper. Now, only the `NextJsSSGThemeSwitcher` will be rendered server side for each request and rest of your app can be server statically.
Take care of the following while migrating to `v2`.
- No changes required for projects not using `Next.js` app router or server components other than updating cookies policy if needed.
- The persistent storage is realized with `cookies` in place of `localStorage`. (You might want to update cookies policy accordingly.)
- We have provided `NextJsSSGThemeSwitcher` in addition to `ServerSideWrapper` for `Next.js`. You no longer need to use a wrapper component which broke static generation and forced SSR.
- Visit [With Next.js `app` router (Server Components)](#with-nextjs-app-router-server-components)
## Migrating from v0 to v1
- `defaultDarkTheme` is renamed to `darkTheme`
- `setDefaultDarkTheme` is renamed to `setDarkTheme`
- `defaultLightTheme` is renamed to `lightTheme`
- `setDefaultLightTheme` is renamed to `setLightTheme`
## Docs
[Typedoc](https://react18-tools.github.io/nextjs-themes)
### ๐คฉ Don't forger to start this repo!
Want handson course for getting started with Turborepo? Check out [React and Next.js with TypeScript](https://www.udemy.com/course/react-and-next-js-with-typescript/?referralCode=7202184A1E57C3DCA8B2)
## FAQ
**Do I need to use CSS variables with this library?**
Nope. It's just a convenient way. You can hard code values for every class as follows.
```css
.my-class {
color: #555;
}
[data-theme="dark"] .my-class {
color: white;
}
```
**Why is `resolvedTheme` and `resolvedColorScheme` necessary?**
When supporting the System theme preference, and forced theme/colorScheme pages, you want to make sure that's reflected in your UI. This means your buttons, selects, dropdowns, or whatever you use to indicate the current colorScheme should say "system" when the System colorScheme preference is active. And also the appropreate theme is available in resolvedTheme.
`resolvedTheme` is then useful for modifying behavior or styles at runtime:
```js
const { resolvedTheme, resolvedColorScheme } = useTheme();
const background = getBackground(resolvedTheme);
<div style={{ color: resolvedColorScheme === 'dark' ? white : black, background }}>
```
If we didn't have `resolvedTheme` and only used `theme`, you'd lose information about the state of your UI (you would only know the theme is "system", and not what it resolved to).
## License
Licensed as MIT open source.
> Note: This package uses cookies to sync theme with server components
<hr />
<p align="center" style="text-align:center">with ๐ by <a href="https://mayank-chaudhari.vercel.app" target="_blank">Mayank Kumar Chaudhari</a></p>
| ๐ค ๐ Theme with confidence and [Unleash the Power of React Server Components](https://medium.com/javascript-in-plain-english/unleash-the-power-of-react-server-components-eb3fe7201231) | dark-mode,front-end,fullstack,javascript,nextjs,nextjs-typescript,nextjs13,nodejs,react,react-server-components | 2023-08-04T13:34:08Z | 2024-05-23T00:49:17Z | 2024-04-21T03:58:13Z | 3 | 21 | 308 | 1 | 1 | 7 | null | MIT | TypeScript |
serenysoft/rxdb-flexsearch | master | # [RxDB](https://rxdb.info) - [FlexSearch](https://github.com/nextapps-de/flexsearch) plugin
[](https://github.com/serenysoft/rxdb-flexsearch/actions/workflows/ci.yml)
[](https://codecov.io/gh/serenysoft/rxdb-flexsearch)
## Install
```cli
npm i rxdb-flexsearch flexsearch@0.7.21 --save
```
## Usage
```js
import { addRxPlugin } from 'rxdb';
import { getRxStorageMemory } from 'rxdb/plugins/storage-memory';
import { RxDBFlexSearchPlugin } from 'rxdb-flexsearch';
import { userSchema } from './schemas';
addRxPlugin(RxDBFlexSearchPlugin);
const database = await createRxDatabase({
storage: getRxStorageMemory(),
});
await database.addCollections({
users: {
schema: userSchema,
options: {
searchable: true,
},
},
});
...
const results = await collection.search(query: string);
console.log(results);
```
## Import/Export indexes
```js
await database.exportIndexes((key, data) => {
localStorage.setItem(key, data);
});
await database.importIndexes({
[key]: localStorage.getItem(key);
});
```
You can use the `autoIndexExport` database option to automatically export indexes when the collection is modified.
```js
const database = await createRxDatabase({
storage: getRxStorageMemory(),
options: {
autoIndexExport: (key, value) => {
localStorage.setItem(key, value);
},
}
});
```
| RxDB Plugin based on FlexSearch implementation | flexsearch,fulltext-search,fuzzy,fuzzy-search,javascript,nodejs,rxdb,search,searching,typescript | 2023-08-02T20:29:43Z | 2023-08-03T22:44:42Z | null | 1 | 0 | 16 | 0 | 1 | 7 | null | null | TypeScript |
harshitsingh13/Learning-Management-System-on-MERN | main | # Getting Started with Create React App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
The page will reload when you make changes.\
You may also see any lint errors in the console.
### `npm test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
| Full-stack development of learning path & test module of LMS using MERN stack, HTML, CSS, JavaScript, and NoSql. | css,database,fullstack-development,html,javascript,lms,mern-stack,mysql,nodejs,reactjs | 2023-07-21T17:30:18Z | 2023-07-21T18:11:41Z | null | 1 | 0 | 1 | 0 | 1 | 7 | null | null | JavaScript |
derenko/np-select | master | ## Description
This library is created to make life easier for fellows who needs to implement,
NovaPoshta ยฉ address and warehouse selects. It contains two selects, which requires almost zero configuration.
## Advantages:
โญ TypeScript Types
โญ Zero configuration
โญ Robust API
## Table of Contents
- [Installation](#installation)
- [NpCitySelect](#np-city-select)
- [NpWarehouseSelect](#np-warehouse-select)
- [Properties](#properties)
- [Hooks](#hooks)
- [Methods](#methods)
- [Styling](#styling)
- [Classnames](#styling-classnames)
- [Active states](#styling-active-states)
- [Variables](#styling-variables)
- [Example Usage](#usage)
- [Common Cases](#common-cases)
- [Warehouse select disabled untill city is not selected](#common-cases-1)
- [Validate select](#common-cases-2)
- [Validate multiple selects with `validateMultiple`](#common-cases-3)
- [Get select value](#common-cases-4)
---
<a name="installation" />
### Installation
#### Script tag:
```html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/np-select@1.0.3/build/np-select.umd.js"></script>
```
- Also you can go to `/build` folder and download `np-select.umd.js`, `np-select.d.ts` if you want to have `.ts` types
Now select is availiable under NpSelect global variable:
```js
document.addEventListener('DOMContentLoaded', () => {
NpSelect.NpCitySelect({...});
NpSelect.NpWarehoseSelect({...});
});
```
#### Package managers:
```shell
npm install --save np-select
yarn add np-select
```
```javascript
import { NpCitySelect, NpWarehouseSelect, utils } from 'np-select';
NpCitySelect({...});
NpWarehouseSelect({...});
```
<a name="np-city-select" />
### NpCitySelect:
This select is searchable and it fetches Nova Poshta cities on user input.
<img src="https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExM2l2bmp3NW9obXVtY2JxdDR1YmdxemFub3c3dmQ0NXV0OWZzMDNsayZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/1oWC5A7T1ZE2P1QX2W/giphy.gif" />
```javascript
NpCitySelect({
apiKey: API_KEY,
input: {
name: 'city',
placeholder: 'Select City',
},
button: {
text: 'Select City',
},
root: document.querySelector('#city'),
});
```
<a name="np-warehouse-select" />
### NpWarehouseSelect:
| Name | Type | Description |
| :-------: | :-------------------------------------: | :-------------------------: |
| `city?` | `string` | if passed select will fetch warehouses for this city |
This select is filterable and it filters passed `options` on user input.
- If passed `city` `NpCitySelect` will fetch all warehouses for this city when mounted
<img src="https://media.giphy.com/media/lOzKgGX2aYrjK3Sdvo/giphy.gif" />
```javascript
NpCitySelect({
apiKey: API_KEY,
input: {
name: 'city',
placeholder: 'Select City',
},
button: {
text: 'Select City',
},
root: document.querySelector('#city'),
city: 'ะะธัะฒ'
});
```
<a name="properties"/>
### Shared Properties:
List of configuration properties when you creating selects
| Name | Type | Description |
| :-------: | :-------------------------------------: | :-------------------------: |
| `root` | `HTMLElement` | root html element |
| `apiKey` | `string` | Your `NovaPoshta` `API_KEY` |
| `input?` | `{ name: string, placeholder: string }` | input props |
| `button?` | `{ text: string }` | button props |
| `placeholder?` | `{ text: string }` | placeholder props |
| `options?` | `{ label: string; value: string }[]` | initial list of options |
| `getOption?` | `(item: ApiResponse) => {label: string, value: string}[]` | method to extract property and value from ApiResponse |
<a name="hooks"/>
### Hooks:
| Name | Type | Description |
| :---------: | :----------------------: | :----------------------------: |
| `onMounted` | `(select) => void` | called after select is mounted |
| `onSelect` | `(item, select) => void` | called when item is selected. |
| `onOpen` | `(select) => void` | called when select opened, if `onOpen` returns false, select will not be opened |
| `onInput` | `(value: string, select) => void` | called when input value changes |
<a name="methods"/>
### Methods
| Name | Type | Description |
| :-----------: | :---------------------------: | :----------------------: |
| `validate` | `() => boolean` | validates select |
| `getFiltered` | `() => {label: string, value: string}[]` | returns filtered options |
| `setFiltered` | `(options: {label: string, value: string}[]) => void` | set filtered options |
| `getOptions` | `() => {label: string, value: string}[]` | returns all options |
| `setOptions` | `(options: {label: string, value: string}[]) => void` | set all options |
| `setOpen` | `(open: boolean) => void` | open or close select |
| `getOpen` | `() => boolean` | return is select open |
| `setDisabled` | `(disabled: boolean) => void` | disable or enable select |
| `getDisabled` | `() => boolean` | returns is select disabled |
| `getValue` | `() => string` | get input value |
| `setValue` | `(value: string) => string` | set input value |
| `setLoading` | `(loading: boolean) => void` | set select loading |
| `getLoading` | `() => boolean` | get is select loading |
<a name="styling"/>
### Styling
#### ClassNames:
<a name="styling-classnames" />
| Class | Type |
| :---------------: | :---------------: |
| `.np-select` | Select classs |
| `.np-select__button` | Select button |
| `.np-select__input` | Select input |
| `.np-select__box` | Options box class |
| `.np-select__option` | Option class |
<a name="styling-active-states" />
#### Active states:
| Class | Type |
| :---------------: | :---------------: |
| `.np-select[aria-invalid='true']` | Invalid/error class |
| `.np-select[aria-busy='true']` | Loading class |
| `.np-select[aria-disabled='true']` | Disabled class |
| `.np-select.open` | Select open class |
| `.np-select__option.selected` | Option selected class |
<a name="styling-variables" />
#### CSS variables:
| Name | Description | Default Value |
| :-----------------------: | :---------------:| :-----------: |
| `--np-select-error` | Error color | `tomato` |
| `--np-select-white` | White color | `#fff` |
| `--np-select-text` | Text color | `#221f1f` |
| `--np-select-active` | Active color | `#e5f5ec` |
| `--np-select-disabled` | Disabled color. | `#d2d2d2` |
| `--np-select-box-shadow` | Box shadow color | `#221f1f40` |
<a name="usage"/>
### Example usage:
```javascript
import NpSelect from 'np-select';
NpSelect.NpCitySelect({
root: document.querySelector('#city'),
apiKey: API_KEY,
input: {
name: 'city',
},
button: {
text: 'Select City',
},
});
NpSelect.NpWarehouseSelect({
root: document.querySelector('#warehouse'),
apiKey: API_KEY,
input: {
name: 'warehouse',
},
button: {
text: 'Select Warehouse',
},
});
```
<a name="common-cases"/>
### Common cases:
<a name="common-cases-1"/>
#### Warehouse select disabled untill city is not selected:
Most common case:
<img src="https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExbnQ0MXY0ejEyczV0NW14YnV4cHpiM2JzaDUzN3B0MzFydDN4d2IzaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/ZmD9fIz2BuJvqAPzkf/giphy.gif"/>
```javascript
const warehouseSelect = NpWarehouseSelect({
apiKey: API_KEY,
input: {
name: 'warehouse',
placeholder: 'Select Warehouse',
},
button: {
text: 'Select Warehouse',
},
root: document.querySelector('#warehouse'),
onMounted: select => select.setDisabled(true),
});
NpCitySelect({
apiKey: API_KEY,
input: {
name: 'city',
placeholder: 'Select City',
},
button: {
text: 'Select City',
},
root: document.querySelector('#city'),
onSelect: async (item, select) => {
const warehouses = await select.api.getNpWarehouses(item.value);
warehouseSelect.setOptions(warehouses);
warehouseSelect.setDisabled(false);
warehouseSelect.setOpen(true);
},
});
});
```
<a name="common-cases-2"/>
#### Validate select on form submit:
Library provides error styles for select, which you can modify with `css`.
```javascript
form.addEventListener('submit', e => {
e.preventDefault();
const isValid = warehouseSelect.validate();
if (!isValid) {
return;
}
});
```
<a name="common-cases-3"/>
#### Validate multiple selects on form submit:
For this case you can use utility method `validateMultiple()`
```javascript
form.addEventListener('submit', e => {
e.preventDefault();
const isValid = NpSelect.validateMultiple([warehouseSelect, citySelect]);
if (!isValid) {
return;
}
});
```
<a name="common-cases-4"/>
#### Get select value:
Getting value as easy as getting it from `<input />` element, or using `getValue` method
```javascript
form.addEventListener('submit', e => {
e.preventDefault();
const isValid = NpSelect.validate(citySelect);
if (!isValid) {
return;
}
// Using getValue
const city = citySelect.getValue();
// Using form data
const form = new FormData(e.target);
const city = form.get('city');
// Using querySelector
const city = document.querySelector('[name="city"]').value;
});
``` | Nova Poshta ยฉ city and warehouse selects. | javascript,nova-poshta,nova-poshta-api,novaposhta,novaposhta-api,novaposhta-client,select | 2023-07-25T10:25:09Z | 2023-07-26T11:03:24Z | 2023-07-26T11:03:24Z | 1 | 0 | 3 | 1 | 2 | 7 | null | null | TypeScript |
najibullahjafari/bookstore | dev | <a name="readme-top"></a>
<div align="center">
<br/>
Book Store
</div>
# ๐ Table of Contents
- [๐ About the Project](#about-project)
- [๐ Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [๐ Live Demo](#live-demo)
- [๐ป Getting Started](#getting-started)
- [Setup](#setup)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Deployment](#deployment)
- [๐ฅ Authors](#authors)
- [๐ญ Future Features](#future-features)
- [๐ค Contributing](#contributing)
- [โญ๏ธ Show your support](#support)
- [๐ Acknowledgements](#acknowledgements)
- [๐ License](#license)
# ๐ Book Store <a name="about-project"></a>
Book Store is a web app That we can remove, add and delete a book, I used React and JSX to build this web app.
<img width="958" alt="Screenshot 2023-08-04 220430" src="https://github.com/najibullahjafari/bookstore/assets/121656832/a31cba24-a1e0-47cd-9f81-1da5e76b9bbf">
## ๐ Built With <a name="built-with"></a>
- HTML,
- CSS,
- Java Script
- GIT,
- GITHUB
- LINTERS
- Webpack
- React
### Tech Stack <a name="tech-stack"></a>
<details>
<summary>Client</summary>
<ul>
<li><a href="https://www.microverse.org/">HTML5</a></li>
<li><a href="https://www.microverse.org/">CSS3</a></li>
<li><a href="https://www.microverse.org/">JavaScript</a></li>
<li><a href="https://www.microverse.org/">React</a></li>
</ul>
</details>
<details>
<summary>Server</summary>
<ul>
<li><a href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer">VS CODE Live Server Extension</a></li>
</ul>
</details>
## ๐ Live Demo <a name="live-demo"></a>
Check out the live demo of this project [here](https://64cd86e7739d9460c2d1d2c9--lucent-bavarois-61bf5d.netlify.app/).
### Key Features <a name="key-features"></a>
- Linters for code quality
- Responsive design for different screen sizes
- In this project best coding practices is used.
<!-- ## ๐ Live Demo <a name="live-demo"></a> -->
## ๐ป Getting Started <a name="getting-started"></a>
To get a local copy up and running, follow these steps.
1. Go to this URL link: https://github.com/najibullahjafari/bookStore
2. clone the repo and start working on it.
### Prerequisites
In order to run this project you need:
Google Chrome or other browser
```sh
https://www.google.com/chrome/?brand=JJTC&gclid=CjwKCAjw9J2iBhBPEiwAErwpeSDcMFWiIQWj2u5GY6owZ7OaOHw7dYYCHW7uTR4kvYosNJYd4wt4VxoCiywQAvD_BwE&gclsrc=aw.ds
```
Github Account:
```sh
https://github.com/
```
Npm installed:
```sh
https://nodejs.org/en/download
```
Git installed:
```sh
https://git-scm.com/downloads/
```
### Setup
Clone this repository to your desired folder:
```sh
cd my-folder
git clone https://github.com/najibullahjafari/bookstore
```
### Install
Please do the following **steps in this order**:
1. Use `npm run build` to instal all dependencies.
2. Then you can run project by `npm start` command
Linters:
If you had any issues with linters for `react` you can install as bellow:
### ESLint
1. Run
```
npm install --save-dev eslint@7.x eslint-config-airbnb@18.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-react@7.x eslint-plugin-react-hooks@4.x @babel/eslint-parser@7.x @babel/core@7.x @babel/plugin-syntax-jsx@7.x @babel/preset-react@7.x @babel/preset-react@7.x
```
_not sure how to use npm? Read [this](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)._
2. Copy [.eslintrc.json](./.eslintrc.json) and [.babelrc](./.babelrc) to the root directory of your project.
3. **Do not make any changes in config files - they represent style guidelines that you share with your team - which is a group of all Microverse students.**
4. Run `npx eslint "**/*.{js,jsx}"` on the root of your directory of your project.
5. Fix linter errors.
6. **IMPORTANT NOTE**: feel free to research [auto-correct options for Eslint](https://eslint.org/docs/latest/user-guide/command-line-interface#fixing-problems) if you get a flood of errors but keep in mind that correcting style errors manually will help you to make a habit of writing a clean code!
### Stylelint
1. Run
```
npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x
```
_not sure how to use npm? Read [this](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)._
2. Copy [.stylelintrc.json](./.stylelintrc.json) to the root directory of your project.
3. **Do not make any changes in config files - they represent style guidelines that you share with your team - which is a group of all Microverse students.**
4. Run `npx stylelint "**/*.{css,scss}"` on the root of your directory of your project.
5. Fix linter errors.
6. **IMPORTANT NOTE**: feel free to research [auto-correct options for Stylelint](https://stylelint.io/user-guide/usage/options) if you get a flood of errors but keep in mind that correcting style errors manually will help you to make a habit of writing a clean code!
### Usage
To run the project, execute the following command:
Open the index.html in your browser
### Run tests
To run tests, run the following command:
to check for styling errors:
```sh
npx stylelint "**/*.{css,scss}"
```
### Deployment
You can deploy this project using:
Your working browser.
## ๐ฅ Authors <a name="authors"></a>
๐ค **Najibullah Jafari**
- GitHub: [Najibullah_jafari](https://github.com/najibullahjafari)
- Twitter: [Najibullah_jafari](https://twitter.com/Najib_Jafari_)
- LinkedIn: [Najibullah_jafari](https://www.linkedin.com/in/najibulla-jafari-609852263/)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- FUTURE FEATURES -->
## ๐ญ Future Features <a name="future-features"></a>
- **[Responsive Version]**
## ๐ค Contributing <a name="contributing"></a>
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/najibullahjafari/bookstore/issues).
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## โญ๏ธ Show your support <a name="support"></a>
Do you like this project? So don't wait to give one star!
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- ACKNOWLEDGEMENTS -->
## ๐ Acknowledgments <a name="acknowledgements"></a>
I would like to express my deepest gratitude to Microverse for this project. The invaluable learning experience and support provided have been instrumental in my growth as a developer. My mentors and instructors deserve special thanks for their guidance and patience. The collaborative spirit of my fellow students has been a constant source of inspiration. I also extend my appreciation to the open-source community for their contributions. Lastly, my family and friends' unwavering support has been a driving force throughout this journey. Thank you, Microverse, for this incredible opportunity!
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## ๐ License <a name="license"></a>
This project is [MIT](./LICENSE) licensed.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
| Bookstore is a web application built with React and Redux that allows users to explore, categorize, and manage books. It features a user-friendly interface with options to add, edit, and remove books while tracking their reading progress | axios,bookstore,front-end,javascript,material-ui,prop-types,react,react-hooks,react-redux,react-router | 2023-07-21T03:05:04Z | 2023-08-11T12:35:04Z | null | 1 | 5 | 33 | 0 | 0 | 6 | null | MIT | JavaScript |
Web3Arabs/Blockchain-Course | main | # Blockchain-Course
ู
ุญุชูู ุงูุฏูุฑุฉ ุงูุชุฏุฑูุจูุฉ **ุงุณุงุณูุงุช Blockchain** ูู **[Web3Arabs](https://www.web3arabs.com)** - ุงูุฃูุถู ููู
ุจุชุฏุฆูู ููุชุนุฑู ุนูู ุงุณุงุณูุงุช ุณูุงุณู ุงููุชู ู ุงูุฌูู ุงูุซุงูุซ ู
ู ุงูููุจ
| ู
ุญุชูู ุงูุฏูุฑุฉ ุงูุชุฏุฑูุจูุฉ ุงุณุงุณูุงุช Blockchain ูู Web3Arabs - ุงูุฃูุถู ููู
ุจุชุฏุฆูู ููุชุนุฑู ุนูู ุงุณุงุณูุงุช ุณูุงุณู ุงููุชู ู ุงูุฌูู ุงูุซุงูุซ ู
ู ุงูููุจ | blockchain,cryptocurrency,dapps,defi,ethereum,hardhat,nfts,smart-contracts,thegraphprotocol,web3 | 2023-08-01T14:06:46Z | 2024-02-21T00:07:04Z | null | 1 | 4 | 10 | 0 | 2 | 6 | null | null | null |
Sweetdevil144/Youtube-Shorts-Creator | main | null | A Website that helps extract shorts segments from a youtube video link | javascript,openai | 2023-08-04T16:52:09Z | 2024-04-19T04:39:19Z | null | 3 | 10 | 80 | 1 | 5 | 6 | null | null | JavaScript |
Manoj-Kumar-Munda/CraveBite | main | # CraveBite - Food Delivery App
#NOTE: If you face CORS error while using this application install this chrome [extension](https://chromewebstore.google.com/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf)
CraveBite is a food delivery app that offers convenient food delivery services throughout Ranchi. With CraveBite, users can order a wide variety of delicious dishes from nearby restaurants. This project is built using modern web technologies and provides several key features to enhance the food ordering experience.

## Table of Contents
- [Features](#features)
- [Technologies Used](#technologies-used)
## Features
### 1. Cart
- Allows users to add and remove items from their shopping cart.
- Provides a summary of the items in the cart, including quantities and prices.
- Enables users to review and modify their order before checkout.
### 2. Veg Filter
- Offers a convenient filter option to display only vegetarian menu items for users who prefer vegetarian dishes.
### 3. Search Restaurants
- Provides a search functionality that allows users to find restaurants by name or cuisine.
### 4. Sort Restaurants
- Enables users to sort available restaurants based on:
- Relevance
- Delivery Time
- Rating
- Cost for Two
## Technologies Used
- **React**: Used for building the user interface.
- **React Router DOM**: Handles routing within the app.
- **React Redux and Redux Toolkit**: Manages state and data.
- **Tailwind CSS**: Used for styling the components and UI.
- **SwiggyAPI**: Fetches restaurant and menu data for the app.
- **Vite**: Used for bundling and building the React app.
| CraveBite is a food ordering webapp | javascript,namaste-react,react,reactjs,web,webdevelopment,redux,redux-toolkit,tailwindcss | 2023-08-05T14:59:04Z | 2024-05-23T16:19:34Z | null | 1 | 0 | 44 | 0 | 2 | 6 | null | null | JavaScript |
mansir04/Sukoon_MentalHealthWebsite | main |
# Sukoon - A Website related to Mental Health Disorders
'Sukoon' is a Hindi word which translates to 'Peace' in the English language. It is a full stack project on the theme of 'Mental Health ' built with the aim to act as a fully comprehensive website to raise awareness and provide resources regarding all sorts of issues related to the same.
By dedicating our website to this theme, we aim to break the stigma surrounding mental health issues and provide a safe space for individuals to learn, share their experiences, and find resources that can help them navigate through their mental health journey.
Our website seeks to empower visitors to prioritize their mental well-being and encourage open conversations about mental health. We believe that by offering accurate information and fostering a compassionate community, we can contribute to a society where mental health is given the same importance as physical health. Our choice to focus on mental health aligns with our deep conviction that everyone deserves the opportunity to lead a fulfilling life, and addressing mental health is a crucial step towards achieving that goal.
## Our Commitment
The foundation of this project is our unwavering belief that every individual deserves the opportunity to lead a fulfilling life. Addressing mental health is a pivotal step towards achieving this goal, and we are dedicated to making a positive impact in this regard.
## Project Information
Please note that Sukoon is an ongoing project. Features and the technology stack may evolve as development progresses. Any updates or changes will be reflected in the README file to keep you informed.
#### Update : the development of this project was started around August 2023 and finished by 1 December 2023. We no longer aim to update it as frequently as previously.
## Tech Stack
**Client:** HTML, CSS, React.Js
**Server:** Node.Js, Express, Firebase
**APIs:** JokeAPI, MemeGen API
## Authors
- Mansi Rawat [@mansir04](https://github.com/mansir04)
- Shaheera Fatima [@shaheera02](https://github.com/shaheera02)
- Aayushi Kushwaha [@Aayushi1111](https://github.com/Aayushi1111)
- Ananya Shanker [@AnanyaShanker](https://github.com/AnanyaShanker)
## Run Locally
Clone the project
```bash
git clone https://github.com/mansir04/MentalHealthMERN.git
```
Go to the project directory
```bash
cd MentalHealthMERN
```
Split the terminal and go to the Backend/Frontend folder
```bash
cd Backend
cd Frontend
```
Install dependencies in the respective directories
```bash
npm install
```
You will have to setup your firebase account and make a firebase.jsx file in the components folder. This will contain your firebase
configuration. You will have to setup a database and google authentication in the firebase console.
Start the server in Backend folder
```bash
node server.js
```
Run the application in Frontend folder on your localhost
```bash
npm run dev
```
###
#### Note : This README is subject to updates as the project progresses. Check back for the latest information.
| A website on the theme of 'Mental Health' using React for Frontend and Firebase for the Backend. | api,css,express-js,firebase-auth,firebase-database,html,reactjs,vite,javascript,nodejs | 2023-08-07T15:00:08Z | 2023-11-28T14:33:31Z | null | 5 | 25 | 107 | 1 | 6 | 6 | null | null | JavaScript |
VelzckC0D3/Budget_App | development | <a name="readme-top"></a>
<div align="center">
<img src="https://github.com/VelzckC0D3/SQL_Database/assets/92229666/64c8d8a7-b625-4a25-847a-ea02e00df2f4" alt="Sin tรญtulo-1">
</div>
<!-- TABLE OF CONTENTS -->
# ๐ Index
- [๐ About the Project](#about-project)
- [๐ Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [๐ Live Demo](#live-demo)
- [๐ป Getting Started](#getting-started)
- [Setup](#setup)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Usage](#usage)
- [Deployment](#deployment)
- [๐ฅ Author](#author)
- [๐ญ Features](#features)
- [๐ค Contributing](#contributing)
- [โญ๏ธ Show your support](#support)
- [๐ Acknowledgements](#acknowledgements)
- [๐ License](#license)
<!-- PROJECT DESCRIPTION -->
# ๐ Wise Wallet `[Ruby on Rails, Javascript]` <a name="about-project"></a>

Introducing `Wise Wallet` a comprehensive budgeting app that puts you in full control of your finances across customizable categories. This capstone project showcases a meticulously designed, fully responsive UI, allowing users to effortlessly manage accounts, groups, and transactions. Rigorously tested with Rspec & Capybara, ensures reliability and offers a seamless financial management experience on any device. Unveil the future of budgeting as you take charge of your financial journey with.
## ๐ Built With <a name="built-with"></a>
### Tech Stack <a name="tech-stack"></a>
<details>
<summary>Client</summary>
<ul>
<li><a href="https://rubyonrails.org/">Ruby on Rails</a></li>
</ul>
</details>
<details>
<summary>Database</summary>
<ul>
<li><a href="https://www.postgresql.org/">PostgreSQL</a></li>
</ul>
</details>
<!-- Features -->
### Key Features <a name="key-features"></a>
- **[User database `Devise Gem`]** Any user can create and manage their own account with the possibility to pick one of the selected profile pictures, it's also allowed to update this information anytime the user wants.
- **[Group database `Postgre SQL Crud`]** Any user can create and manage their own groups, it's also allowed to update this information anytime the user wants.
- **[Transaction database `Postgre SQL Crud`]** Any user can create and manage their own transactions, it's also allowed to update this information anytime the user wants.
- **[Polished User Interface & Experience `CSS & JavaScript DOM`]** The app is fully responsive and has a polished UI that allows users to easily manage their accounts, groups, and transactions.
- **[Authentication `CanCanCan Gem`]** Users can sign up, sign in, and sign out of the app. Users can also reset their passwords with a reset password email.
- **[Fully Tested `Rspec & Capybara`]** The app is fully tested with Rspec & Capybara, ensuring reliability and a seamless financial management experience on any device.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- LIVE DEMO -->
## ๐ Live Demo & preview <a name="live-demo"></a>
https://github.com/VelzckC0D3/Budget_App/assets/92229666/e7ecc547-00bc-4d1a-9f25-f7dd07ba93f3
- _You can visit the live demo [here](https://rails-eb2s.onrender.com/)_
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- GETTING STARTED -->
## ๐ป Getting Started <a name="getting-started"></a>
To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
```sh
To have Ruby on Rails setted up in your local machine.
```
```sh
To have PostgreSQL setted up in your local machine.
```
```sh
To have a browser to run the project.
```
### Setup
Clone this repository to your desired folder:
```sh
Open it with Visual Studio Code (or your preffered IDE), and open a server with "Rails -s".
```
```sh
Open your desired browser and go to "localhost:3000".
```
### Install
Install this project with:
```sh
bundle install
yarn install --check-files
rails db:create
rails db:migrate
rails db:seed
```
### Usage
To run the project, execute the following command:
```sh
rails server
```
### Deployment
This project is already fully deployed and ready to use, but if you want to deploy it again, follow the steps marked on the official render guide [here](https://render.com/docs/deploy-rails)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- AUTHOR -->
## ๐ฅ Author <a name="author"></a>
- GitHub: [@VelzckC0D3](https://github.com/VelzckC0D3)
- LinkedIn: [VelzckC0D3](https://www.linkedin.com/in/velzckcode/)
<!-- FEATURES -->
## ๐ญ Future Features <a name="features"></a>
- **[User Confirmation]** Users will be able to confirm their accounts with a confirmation email.
- **[User Password Reset]** Users will be able to reset their passwords with a reset password email.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- CONTRIBUTING -->
## ๐ค Contributing <a name="contributing"></a>
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](../../issues/).
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- SUPPORT -->
## โญ๏ธ Show your support <a name="support"></a>
If you like this project, be pending on my profile since I'll be doing much more!
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- ACKNOWLEDGEMENTS -->
## ๐ Acknowledgments <a name="acknowledgements"></a>
- Special gratitude to the artist who provided the creative concepts for this project: [Gregorie Vella](https://www.behance.net/gregoirevella)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- LICENSE -->
## ๐ License <a name="license"></a>
This project is [MIT](./LICENSE) licensed.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
| WiseWallet is my Ruby on Rails capstone, an application that allows the user to have control on their finances, its constructed with authentication, authorization and completely tested with rspec capybara | crud-application,javascript,ruby-on-rails,sql,ui-design,ux-design | 2023-08-06T23:58:46Z | 2023-08-12T17:11:17Z | null | 1 | 6 | 52 | 0 | 0 | 6 | null | MIT | Ruby |
Avinash905/Recipen | main | <div id="top">
<h1 align="center">Recipen</h1>
<div align="center">
<br>
<img src="https://img.shields.io/github/repo-size/Avinash905/Recipen?style=for-the-badge" />
<img src="https://img.shields.io/github/issues/Avinash905/Recipen?style=for-the-badge" />
<img src="https://img.shields.io/github/issues-closed-raw/Avinash905/Recipen?style=for-the-badge" />
<img src="https://img.shields.io/github/last-commit/Avinash905/Recipen?style=for-the-badge" />
<img src="https://img.shields.io/github/issues-pr/Avinash905/Recipen?style=for-the-badge" />
<img src="https://img.shields.io/github/issues-pr-closed-raw/Avinash905/Recipen?style=for-the-badge" />
<img src="https://img.shields.io/github/forks/Avinash905/Recipen?style=for-the-badge" />
<img src="https://img.shields.io/github/stars/Avinash905/Recipen?style=for-the-badge" />
<img src="https://img.shields.io/github/contributors-anon/Avinash905/Recipen?style=for-the-badge" />
</div>
<br>
<h3>๐ Description :</h3>
Welcome to Recipen โ a recipe website for food enthusiasts to explore, create, and share their culinary experiences. Indulge in a community-driven platform where food enthusiasts share their cherished recipes and captivating food blogs. Subscribe to the pro version to share your own recipes and to unlock a realm of taste, culture, and creativity.
<div align="center">
<img src="./client/src/assets/mockup-nobg.png" alt="mockup" />
</div>
<br>
---
### ๐ Link:
<h4> Live Site: https://recipen.vercel.app/ </h4>
<br>
### ๐ ๏ธ Tools and technologies used :
<div align=center>
<a href="https://www.w3.org/html/" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/HTML5-E34F26?style=for-the-badge&logo=html5&logoColor=white" alt="html5"/> </a>
<a href="https://www.w3schools.com/css/" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/CSS3-1572B6?style=for-the-badge&logo=css3&logoColor=white" alt="css3" /> </a>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black" alt="javascript"/> </a>
<a href="https://reactjs.org/" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=white&color=148dff" alt="react" /> </a>
<a href="https://nodejs.org" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/Node.js-8A2BE2?style=for-the-badge&logo=Node.js&color=b3ffb0" alt="nodejs" /> </a>
<a href="https://expressjs.com" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/Express.js-404D59?style=for-the-badge&color=008712" alt="express"/> </a>
<a href="https://www.mongodb.com/" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/MongoDB-4EA94B?style=for-the-badge&logo=mongodb&logoColor=white" alt="mongodb" /> </a>
<a href="https://redux-toolkit.js.org/" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/Redux-593D88?style=for-the-badge&logo=redux&logoColor=white" alt="redux-toolkit" /> </a>
<a href="https://tailwindcss.com/" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/Tailwind_CSS-38B2AC?style=for-the-badge&logo=tailwind-css&logoColor=white" alt="tailwind" /> </a>
<a href="https://mui.com/" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/Material--UI-0081CB?style=for-the-badge&logo=material-ui&logoColor=white" alt="mui" /> </a>
<a href="https://stripe.com/" target="_blank" rel="noreferrer"> <img src="https://img.shields.io/badge/Stripe-626CD9?style=for-the-badge&logo=Stripe&logoColor=white" alt="stripe" /> </a>
</div>
<br>
### ๐ Connect with me:
<div align=center>
[](https://www.linkedin.com/in/dunna-avinash)
[](https://github.com/Avinash905)
<a href="mailto:avinash.90527@gmail.com" target="_blank"><img alt="Gmail" src="https://img.shields.io/badge/Gmail-D14836?style=for-the-badge&logo=gmail&logoColor=white" /></a>
[](https://twitter.com/avinashdunna)
</div>
<br>
---
### โจFeatures :
<ul>
<li><strong>Authentication:</strong> Users can securely create accounts and log in to access personalized features and content.</li>
<li><strong>Access & Refresh Token:</strong> Implemented access and refresh token mechanism for enhanced security during user authentication.</li>
<li><strong>Authentication State Persistence:</strong> User authentication state is now persisted across sessions, providing a seamless user experience.</li>
<li><strong>Storing Tokens in Cookies:</strong> Tokens are stored in secure cookies for better protection against cross-site scripting (XSS) attacks.</li>
<li><strong>Recipes:</strong> Explore a rich collection of authentic recipes contributed by the community, covering a wide range of cuisines and tastes.</li>
<li><strong>Food Blogs:</strong> Engage with insightful and creative food blogs written by enthusiasts, offering valuable insights and cooking inspiration.</li>
<li><strong>Stripe Payment Integration:</strong> Seamlessly integrated Stripe for secure payment processing, enhancing user experience during transactions.</li>
<li><strong>One-Time Payment Subscription:</strong> Offer users the option to subscribe with a one-time payment, unlocking exclusive features and benefits.</li>
<li><strong>Pro User Access:</strong> Pro users enjoy the privilege of adding and deleting recipes and blogs, creating a dynamic and engaging platform.</li>
<li><strong>Admin Dashboard:</strong> Admins have access to a dashboard for managing users, recipes, and blogs</li>
<li><strong>User Profile:</strong> Each user has a personalized profile where they can manage their information.</li>
<li><strong>Contact Us Page:</strong> A dedicated page for users to reach out with questions, concerns, or feedback, fostering communication.</li>
<li><strong>Chatbot:</strong> A chatbot that provides one to one assistance with the maintainers of the project.</li>
<li><strong>Save and Unsave Favorite Recipes:</strong> Users can curate their own collection of favorite recipes for easy access and cooking inspiration.</li>
<li><strong>Rate and Comment on Recipes:</strong> Registered users can provide ratings and comments on recipes, enhancing the community interaction.</li>
<li><strong>Comment on Blogs:</strong> Engage in discussions by leaving comments on the food blogs, sharing thoughts and ideas.</li>
<li><strong>Share Recipe on Social Media:</strong> Users can effortlessly share their favorite recipes on various social media platforms.</li>
</ul>
<hr/>
<p align="right"><a href="#top">Back to Top</a></p>
### Steps to run the project on your local machine
<ol>
<li>Fork this repository</li>
<li>Open terminal or command prompt on your local machine. Run the following command to clone the repository:</li>
```
git clone https://github.com/your-username/your-repo.git
```
Replace **your-username** with your GitHub username and **your-repo** with the name of your repository.
<li>Open the project and rename <strong>.env.example</strong> files to <strong>.env</strong> in both client and server directory.</li>
<li>Add your own environment variables to these both files.</li>
<li>Add <strong>http://localhost:5173</strong> and <strong>http://localhost:5000</strong> to <strong>allowedOrigins</strong> array present in the path <strong>server/config/allowedOrigins.</strong></li>
<li>To run the frontend, open a new terminal and run 'cd client/' to go to client directory and execute:</li>
```
npm run dev
```
<li>To run the backend, open a new terminal and run 'cd server/' to go to server directory and execute:</li>
```
nodemon index.js
```
<li>Open <strong>http://localhost:5173/</strong>strong> from your browser to run the webapp.</li>
</ol>
<br>
### Steps to access the admin dashboard
<ol>
<li>After running the webapp on your machine sign up on the website.</li>
<li>Now open your MongoDB collection and manually add the <strong>Admin</strong> element in the array of <strong>roles</strong> field for the user you want to make admin and then Sign in back on the site.</li>
<li>Now you will be able to access the admin dashboard.</li>
</ol>
<hr/>
<p align="right"><a href="#top">Back to Top</a></p>
### Home page
<img src="./client/src/assets/home.png" alt='home'/>
### Sign up page
<img src="./client/src/assets/signup.png" alt='signup'/>
### Sign in page
<img src="./client/src/assets/signin.png" alt='signin'/>
### Profile page
<img src="./client/src/assets/profile.png" alt='profile'/>
### Contact page
<img src="./client/src/assets/contact.png" alt='contact'/>
### Recipes page
<img src="./client/src/assets/recipes.png" alt='recipes'/>
### Blogs page
<img src="./client/src/assets/blogs.png" alt='blogs'/>
### Single recipe page
<img src="./client/src/assets/single-recipe.png" alt='single recipe'/>
### Single blog page
<img src="./client/src/assets/single-blog.png" alt='single blog'/>
### Add recipe page
<img src="./client/src/assets/add-recipe.png" alt='add recipe'/>
### Add blog page
<img src="./client/src/assets/add-blog.png" alt='add blog'/>
### Admin users dashboard
<img src="./client/src/assets/users.png" alt='dashboard users'/>
### Admin recipes dashboard
<img src="./client/src/assets/recipes-dashboard.png" alt='dashboard'/>
### Admin blogs dashboard
<img src="./client/src/assets/blog-dashboard.png" alt='dashboard'/>
<hr/>
### ๐ก๏ธ License
[](https://opensource.org/licenses/MIT)
Terms and conditions for use, reproduction and distribution are under the [MIT License](https://opensource.org/license/mit/).
<br/>
---
<h3 align="center"> Give it a ๐ if you ๐งก this repository </h3>
---
<p align="right"><a href="#top">Back to Top</a></p>
</div>
| Recipen is a recipe website that invites food lovers to explore a world of culinary delights. With an array of authentic recipes contributed by the community, insightful food blogs, and a seamless subscription experience. Join us to savor the art of cooking, sharing, and connecting. | admin-dashboard,authentication,expressjs,food-blogs,material-ui,mongodb,nodejs,react,recipe-website,stripe | 2023-08-02T11:40:19Z | 2023-11-29T12:30:31Z | null | 1 | 0 | 45 | 0 | 8 | 6 | null | MIT | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.