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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
oleksaYevtush/Portfolio | main | null | ✨My portfolio✨ | animation,css3,gsap,html5,javascript,lazy-loading,parallax,scrolls,scrolltrigger | 2023-02-28T13:15:52Z | 2023-08-23T07:13:51Z | null | 1 | 0 | 12 | 0 | 0 | 2 | null | null | JavaScript |
svssathvik7/myportfolio | main | # sathvikcv | This repository contains the source code for my personal portfolio website. The website is built using HTML, CSS, and JavaScript to showcase my skills, projects, and experience. It features a responsive design to ensure a seamless experience across various devices. | css,html,javascript | 2023-03-03T16:49:27Z | 2023-06-29T09:43:07Z | null | 1 | 0 | 1 | 0 | 0 | 2 | null | null | HTML |
gagan257/Slot-Machine-Game | main | null | Slot machine mini game | bootstrap,css,html,javascript,jquery,mini-game | 2023-03-11T06:52:23Z | 2023-03-11T06:54:35Z | null | 1 | 0 | 1 | 0 | 0 | 2 | null | null | JavaScript |
jovialcore/whatcompstack-FE | main | # wcs but in Nuxt 3
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
## Setup
Make sure to install the dependencies:
```bash
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
```
## Development Server
Start the development server on `http://localhost:3000`:
```bash
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run dev
```
## Production
Build the application for production:
```bash
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
```
Locally preview production build:
```bash
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
```
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
| What company stack is it : A web application that list the stack used by African Startup/Company. Frontend Repo | javascript,vue,vuejs | 2023-03-10T14:12:37Z | 2024-05-13T07:45:14Z | null | 3 | 31 | 172 | 0 | 3 | 2 | null | null | JavaScript |
mnnit-coders/QuickLink | main |
# QuickShare
A web based application to share file using only otp.One click to generate otp and on other click file get shared.
## Authors
- [rahul garg](https://www.github.com/rahul-gargcoder)
- [pushpendra sahu](https://www.github.com/pushpendrasahu11)
## Running Tests
To run tests, run the following command
```bash
npm install
node server
```
## Logo

## Installation
Install quicklink with npm
```bash
clone the repo
```
## Deployed
[Quickshare](https://quickshare.onrender.com/)
## Tech Stack
**Client:** HTML, CSS, Javascript
**Server:** Node, Express,Socket.io
| A web based application to share files with only otp between two users | css,express-js,html,javascript,socket-io | 2023-03-06T06:24:29Z | 2023-03-11T15:23:06Z | null | 2 | 0 | 8 | 0 | 1 | 2 | null | null | JavaScript |
tinymins/luadata | master | # luadata
[](https://npmjs.org/package/luadata)
[](https://npmjs.org/package/luadata)
This is a npm package that can serialize array and object to Lua table, or unserialize Lua table to array and object.
## Install
```bash
$ npm install
```
```bash
$ npm run dev
$ npm run build
```
## Usage
### serialize
> Serialize `javascript` variable to `lua` data string.
```javascript
import * as luadata from 'luadata';
const v = {
some: 'luadata',
};
luadata.serializer.serialize(v); // '{some="luadata"}'
```
#### serialize.indent
> Control if stringified data should be human-read formatted.
```javascript
import * as luadata from 'luadata';
const v = {
some: 'luadata',
};
luadata.serializer.serialize(v, { indent: " " });
```
Output
```plain
{
some = "luadata",
}
```
#### serialize.indentLevel
> Control stringified data should be human-read formatted at which level, notice that first line will not be automatic indented.
```javascript
import * as luadata from 'luadata';
const v = {
some: 'luadata',
};
luadata.serializer.serialize(v, { indent: " ", indentLevel: 1 });
```
Output
```plain
{
some = "luadata",
}
```
#### serialize.tuple
> Control if the stringified data is a multi-value luadata.
```javascript
import * as luadata from 'luadata';
const v = [
'This is a tuple',
{ a: 1 },
];
luadata.serializer.serialize(v, { tuple: true }); // 'This is a tuple',{a=1}
```
### unserialize
> Unserialize `lua` data string to `javascript` variable.
```javascript
import * as luadata from 'luadata';
const luadata_str = "{a=1,b=2,3}";
luadata.serializer.unserialize(luadata_str); // new Map([["a", 1], ["b", 2], [1, 3]])
luadata.serializer.unserialize(luadata_str, { dictType: 'object' }); // { a: 1, b: 2, 3: 3 }
```
#### unserialize.tuple
> Control if the `lua` data string is a tuple variable.
```javascript
import * as luadata from 'luadata';
const luadata_str = "'This is a tuple',1,false";
luadata.serializer.unserialize(luadata_str, { tuple: true }); // ['This is a tuple', 1, false]
```
#### unserialize.dictType
> Control how will the luadata table will be transformed into javascript variable. Due to javascript limitation that javascript object key must be string or symbol, `object` mode will cause data/typing loss.
```javascript
import * as luadata from 'luadata';
const luadata_str = "{a=1,b=2,['3']='three',[3]=3}";
luadata.serializer.unserialize(luadata_str, { dictType: 'map' }); // new Map([["a", 1], ["b", 2], ["3", "three"], [3, 3]])
luadata.serializer.unserialize(luadata_str, { dictType: 'object' }); // { a: 1, b: 2, 3: 3 }
```
#### unserialize.global
> Provide luadata _G environment, supports both object like or map like. Due to javascript limitation that javascript object key must be string or symbol, `object` mode will cause data/typing loss.
```javascript
import * as luadata from 'luadata';
luadata.serializer.unserialize("a", { global: { a: 1 } }); // 1
luadata.serializer.unserialize("a['b'].c", { global: { a: { b: { c: 1 } } } }); // 1
luadata.serializer.unserialize("a.b", { global: { a: { b: { c: 1 } } } }); // new Map([["c": 1]])
luadata.serializer.unserialize("a.b", { global: { a: { b: { c: [1] } } } }); // new Map([["c": [1]]])
luadata.serializer.unserialize("a.b", { global: { a: { b: { c: 1 } } }, dictType: 'object' }); // { c: 1 }
luadata.serializer.unserialize("a.b", { global: { a: { b: { c: [1] } } }, dictType: 'object' }); // { c: [1] }
```
#### unserialize.strictGlobal
> Control if non-exists global variable is allowed, default value is `true`.
```javascript
import * as luadata from 'luadata';
luadata.serializer.unserialize("b", { global: { a: 1 } }); // Error: attempt to refer a non-exists global variable.
luadata.serializer.unserialize("b", { global: { a: 1 }, strictGlobal: false }); // undefined
```
## LICENSE
BSD
| This is a javascript(js) npm package that can serialize array and object to Lua table, or unserialize Lua table to array and object. | data,javascript,js,lua,luadata | 2023-03-09T08:53:43Z | 2023-07-07T09:24:12Z | null | 1 | 0 | 32 | 0 | 0 | 2 | null | BSD-3-Clause | TypeScript |
IanVitor/DevFy | main | <h1 align="center">
<a href="https://ianvitor.github.io/DevFy/"><img alt="DevFy Banner" title="Devfy" src="assets/images/DevFy_banner.png" width="300px" /></a>
</h1>
<div align="center">
<h3> 🟣 Escute as melhores músicas em qualquer lugar! 🟣 </h3>
</div>
## DevFy - music player
Projeto pessoal com o intuito de elaborar um player de música responsivo.
<div align="center" >
<img alt="DevFy" title="Devfy" src="assets/images/layout.png"/>
</div>
## 🛠️ Tecnologias
<ul>
<dd><img width=20px height=20px src='https://cdn.icon-icons.com/icons2/2107/PNG/512/file_type_html_icon_130541.png'> HTML5</dd>
<dd><img width=20px height=20px src='https://icones.pro/wp-content/uploads/2022/08/css3.png'> CSS3</dd>
<dd><img width=20px height=20px src='https://pcodinomebzero.neocities.org/Imagens/javascript1.png'> JavaScript</dd>
</ul>
### 🖥️ Desktop
<img alt="DevFy" src="assets/images/DevFy_gif.gif" />
| Music player | css3,html5,javascript,music-player | 2023-03-04T02:05:12Z | 2023-03-05T16:25:24Z | null | 1 | 0 | 15 | 0 | 0 | 2 | null | MIT | JavaScript |
Akbarss/Typescript-advanced | main | null | TypeScript project | materializecss,typescript,javascript | 2023-02-26T12:44:29Z | 2023-02-27T18:08:13Z | null | 1 | 0 | 16 | 0 | 0 | 2 | null | null | HTML |
dpvasani/Mario-Matching-Game | main | # Mario Matching Game
Welcome to the Mario Matching Game! This game challenges players to match three identical images within a specified time limit.
## Image

## Gameplay
- The game board consists of multiple tiles, each containing an image.
## Features
- Reset Button: Start a new game round by resetting the board and timer.
## Technologies Used
- HTML
- CSS
- JavaScript
## License
### All Right Reserved
| Welcome to the Mario Matching Game! This game challenges players to match three identical images within a specified time limit. | css,front-end-development,html,html-css-javascript,javascript | 2023-03-11T10:38:06Z | 2023-06-17T13:54:57Z | null | 1 | 0 | 3 | 0 | 0 | 2 | null | null | CSS |
EuJinnLucaShow/goit-js-hw-10 | main | **Read in other languages: [Русский](README.md), [Українська](README.ua.md),
[English](README.en.md), [Español](README.es.md), [Polski](README.pl.md).**
# Критерії приймання
- Створено репозиторій `goit-js-hw-10`.
- Домашня робота містить два посилання: на вихідні файли і робочу сторінку на
`GitHub Pages`.
- В консолі відсутні помилки і попередження під час відкриття живої сторінки
завдання.
- Проект зібраний за допомогою
[parcel-project-template](https://github.com/goitacademy/parcel-project-template).
- Код відформатований за допомогою `Prettier`.
## Стартові файли
У [папці src](./src) знайдеш стартові файли. Скопіюй їх собі у проект, повністю
замінивши папку `src` в
[parcel-project-template](https://github.com/goitacademy/parcel-project-template).
Для цього завантаж увесь цей репозиторій як архів або використовуй
[сервіс DownGit](https://downgit.github.io/) для завантаження окремої папки з
репозиторія.
## Завдання - пошук країн
Створи фронтенд частину програми пошуку даних про країну за її частковою або
повною назвою. Подивися
[демо-відео](https://user-images.githubusercontent.com/17479434/131147741-7700e8c5-8744-4eea-8a8e-1c3d4635248a.mp4)
роботи програми.
### HTTP-запит
Використовуй публічний API [Rest Countries v2](https://restcountries.com/), а
саме [ресурс name](https://restcountries.com/#api-endpoints-v3-name), який
повертає масив об'єктів країн, що задовольнили критерій пошуку. Додай мінімальне
оформлення елементів інтерфейсу.
Напиши функцію `fetchCountries(name)`, яка робить HTTP-запит на
[ресурс name](https://restcountries.com/#api-endpoints-v3-name) і повертає
проміс з масивом країн - результатом запиту. Винеси її в окремий файл
`fetchCountries.js` і зроби іменований експорт.
### Фільтрація полів
У відповіді від бекенду повертаються об'єкти, велика частина властивостей яких,
тобі не знадобиться. Щоб скоротити обсяг переданих даних, додай рядок параметрів
запиту - таким чином цей бекенд реалізує фільтрацію полів. Ознайомся з
[документацією синтаксису фільтрів](https://restcountries.com/#filter-response).
Тобі потрібні тільки наступні властивості:
- `name.official` - повна назва країни
- `capital` - столиця
- `population` - населення
- `flags.svg` - посилання на зображення прапора
- `languages` - масив мов
### Поле пошуку
Назву країни для пошуку користувач вводить у текстове поле `input#search-box`.
HTTP-запити виконуються при введенні назви країни, тобто на події `input`. Але
робити запит з кожним натисканням клавіші не можна, оскільки одночасно буде
багато запитів і вони будуть виконуватися в непередбачуваному порядку.
Необхідно застосувати прийом `Debounce` на обробнику події і робити HTTP-запит
через `300мс` після того, як користувач перестав вводити текст. Використовуй
пакет [lodash.debounce](https://www.npmjs.com/package/lodash.debounce).
Якщо користувач повністю очищає поле пошуку, то HTTP-запит не виконується, а
розмітка списку країн або інформації про країну зникає.
Виконай санітизацію введеного рядка методом `trim()`, це вирішить проблему, коли
в полі введення тільки пробіли, або вони є на початку і в кінці рядка.
### Інтерфейс
Якщо у відповіді бекенд повернув більше ніж 10 країн, в інтерфейсі з'являється
повідомлення про те, що назва повинна бути специфічнішою. Для повідомлень
використовуй [бібліотеку notiflix](https://github.com/notiflix/Notiflix#readme)
і виводь такий рядок
`"Too many matches found. Please enter a more specific name."`.

Якщо бекенд повернув від 2-х до 10-и країн, під тестовим полем відображається
список знайдених країн. Кожен елемент списку складається з прапора та назви
країни.

Якщо результат запиту - це масив з однією країною, в інтерфейсі відображається
розмітка картки з даними про країну: прапор, назва, столиця, населення і мови.
![Country info UI]
> ⚠️ Достатньо, щоб застосунок працював для більшості країн. Деякі країни, як-от
> `Sudan`, можуть створювати проблеми, оскільки назва країни є частиною назви
> іншої країни - `South Sudan`. Не потрібно турбуватися про ці винятки.
### Обробка помилки
Якщо користувач ввів назву країни, якої не існує, бекенд поверне не порожній
масив, а помилку зі статус кодом `404` - не знайдено. Якщо це не обробити, то
користувач ніколи не дізнається про те, що пошук не дав результатів. Додай
повідомлення `"Oops, there is no country with that name"` у разі помилки,
використовуючи
[бібліотеку notiflix](https://github.com/notiflix/Notiflix#readme).

> ⚠️ Не забувай про те, що `fetch` не вважає 404 помилкою, тому необхідно явно
> відхилити проміс, щоб можна було зловити і обробити помилку.
| Educational tasks 📒 JS-HW-10 | Взаємодія з бекендом | ajax,api,debounce,javascript,js,lodash-debounce,notiflix | 2023-02-27T17:48:46Z | 2023-06-04T16:13:41Z | null | 1 | 0 | 16 | 0 | 0 | 2 | null | null | JavaScript |
duxeph/pole-zero-response-plotter-js | main | # Pole Zero Response Plotter using HTML, CSS, JavaScript and ChartJS
You can run the HTML (index.html) directly to reach the app by using one of following browsers:
- Chrome
- Edge
- Firefox
- Safari
Special thanks to https://github.com/chrispahm/chartjs-plugin-dragdata
# Last updates
**Some additions:**
- Now negative symmetric of the response can be avoided by **draw_negative** variable and default is updated as **do not draw** (convertion between **draw** and **do not draw** is only available in the source/code part as a boolean).
**Note:** Since main purpose is to create a filter for real world applications, each point has a conjugate at the opposite part of the chart according to x axis; resultantly, positive and negative parts of the x axis are symmetric to each other in the response chart. By updating default to **do not draw**, I aimed to remove the negative part of the symmetric response chart since it is nonsense to keep it.
- Points created/moved that are too close to x axis (with a threshold of 0.25 by default) counts to be as one point WITH y=0 VALUE (only in calculation part, user still sees them as two points).
**Bug fix:**
- Case of points to be separated from their conjugates when mouse slides from +y to -y or -y to +y without releasing the point is fixed.
- Indexings of response chart are corrected (still limited with 15 for laplace(s) plane, 3.14(pi) for discrete laplace(z) plane).
# Illustration
To obtain (s-2)}{(s^2+4s+8)(s^2+2s+17)})'s response graph, split s^2(s) into s(s) as (s-2j)(s-2)}{(s+2+2j)(s+2-2j)(s+1+4j)(s+1-4j)}), and find the poles and the zeros as following:




At the end, you must put the poles and the zeros as following:
<p align="center"><img src="https://user-images.githubusercontent.com/77770587/222679656-1e778e08-c335-43b5-ad7a-bc5690ee24f1.png" width="750"></p>
<p align="center"><img src="https://user-images.githubusercontent.com/77770587/222679605-85b4ce5e-df7c-4a48-93ac-6e35befb3530.png" width="750"></p>
# General View & Options
<p align="center">s-plane Magnitude Response</p>
<p align="center"><img src="https://user-images.githubusercontent.com/77770587/222671101-0f0c98a5-7f76-4c83-a0f3-29f4e5fb0365.png" width="900"></p>
<p align="center">s-plane Phase Response</p>
<p align="center"><img src="https://user-images.githubusercontent.com/77770587/222671105-9293a778-f938-4491-89d0-9b7311439473.png" width="900"></p>
<p align="center">z-plane Magnitude Response</p>
<p align="center"><img src="https://user-images.githubusercontent.com/77770587/222671109-1885e35f-947b-43a9-bc88-344f4b3288c6.png" width="900"></p>
<p align="center">z-plane Phase Response</p>
<p align="center"><img src="https://user-images.githubusercontent.com/77770587/222671113-9dd9403a-60e0-4d90-87be-af5eefb60e9c.png" width="900"></p>
| null | chartjs,css,javascript,js,plot,graph,poles-and-zeros,signals-and-systems,magnitude-response,phase-response | 2023-02-28T03:50:39Z | 2023-03-03T15:41:07Z | null | 1 | 0 | 19 | 0 | 0 | 2 | null | AGPL-3.0 | JavaScript |
jestfuljoker/clean-react | main | # React Clean Arch ⚛️
##### ⚠️ Work stopped to develop backend API first
> This project is focused on how to implement Clean Architecture, Solid, DDD and TDD principles in frontend applications.
<p align="center">
<a href="#features-desenvolvidas">Developed features</a> •
<a href="#technologies">Technologies</a>
</p>
### 🚀 Developed features
- Validation Layer:
- [x] Use composite pattern to create validation methods;
- [x] Test the methods;
- [x] Implement in presentation layer;
- [x] Use Builder pattern to build composite validator class;
- [X] Login:
- [X] Domain Layer;
- [X] Data Layer;
- [X] Tests;
- [x] Validation;
- [x] Presentation Layer;
- [x] Infra Layer;
---
### 🛠️ Technologies
- [Typescript](https://www.typescriptlang.org/docs/);
- [ReactJS](https://pt-br.reactjs.org/docs/getting-started.html);
- [Jest](https://jestjs.io/);
- [Faker](https://fakerjs.dev/);
- [Axios](https://axios-http.com/docs/intro).
<p align="center" style="margin-top: 20px; padding-top: 20px;">
With 💙 by <strong>Chriszao</strong>
</p>
| How to implement Clean arch in frontend applications | clean-architecture,ddd,javascript,react,solid,tdd,test,typescript | 2023-02-25T18:00:17Z | 2023-03-05T03:32:46Z | null | 1 | 0 | 148 | 0 | 0 | 2 | null | null | TypeScript |
ITlodestar/habanerasdelino_frontend | main | <div align="center">
# Habaneras de Lino

     
</div>
## Table of Contents
1. [Description](#introduction)
1. [Install (Run) with Docker](#docker)
1. [Installation without Docker](#installation)
1. [Screenshots of the Frontend Next js App](#screenshots_frontend)
1. [Screenshots of the Django Backend Admin Panel](#screenshots)
<a name="introduction"></a>
## Description
__Habaneras de Lino__ is an online store to buy linen and cotton clothes that offers its customers an experience of comfort, luxury ,and modernity. The clients can filter the clothing by category, collection, and other characteristics, as well as customize the product (set color, size, sleeve cut, ...), and save them in their cart as well as apply coupons for discount.
- ### Useful Notes:
- This repository contains the frontend of the store that is built using NEXT js while the backend was built using Django, and has its own repository (see [Ceci-Aguilera/habaneras_de_lino_api](https://github.com/Ceci-Aguilera/habaneras_de_lino_api)). Most of the calls to the backend are made with __axios__, and for the calls involving the client's cart, a token ([Knox Token](https://james1345.github.io/django-rest-knox/)) should always be provided except when the client has never purchased at the store (is a new client).
- The cart and language of the website are managed via Context to provide a fast and pleasant experience for the client. At the top page of the store there is a switch button to change between languages (so far Spanish and English are available) and the change is made instantaneously after pressing an option. Same applies to the cart, at any action (add, edit, or delete product actions) the change is applied just after pressing the corresponding button for the action.
- The layout and design are responsive and can adapt to different screen sizes. The screen sizes taken into account correspond to Mobile, Mini-Tablet, Tablet, and Desktop Views. For this propose, react-bootstrap was used as well as the bootstrap grid.
- The payments are managed via Paypal. See [Paypal Documentation for Devs](https://developer.paypal.com/home).
<a name="docker"></a>
## Install (Run) with Docker
1. Clone the repo:
```bash
git clone https://github.com/Ceci-Aguilera/habaneras_de_lino_frontend.git
```
1. Install Docker and Docker Compose
1. Configure the environment variables: Create an .env.local file inside the root folder and set up the following environment variables:
```text
NEXT_PUBLIC_API_DOMAIN_NAME (The url of the backend, for example, https://backend_api.com/)
NEXT_PUBLIC_PAYPAL_CLIENT_ID (The paypal client id)
```
To configure Paypal and obtain the client ID follow these steps:
1. First log in into your developer account (developer.paypal > Log Into Dashboard) or create a new one (Paypal.com > Developer > Get API Credentials).
1. PayPal creates 2 default sandbox accounts (one for bussines and one for personal use), which can be used for the next step, but it is recommended to create a new one for the the Habaneras de Lino App that we shall create next. To create the new sandbox account go to SANDBOX > Accounts > Create Account > (Select Business Account).
3.Then proceed to Dashboard > My Apps & Credentials > Create App and use the previously created sandbox account (the business account). You will need to copy the Client ID and update the NEXT_PUBLIC_PAYPAL_CLIENT_ID.
1. Run the command:
```bash
docker-compose up --build
```
1. Congratulations =) !!! the app should be running in [localhost:3000](http://localhost:3000)
<a name="installation"></a>
## Installation without Docker
1. Clone the repo:
```bash
git clone https://github.com/Ceci-Aguilera/habaneras_de_lino_frontend.git
```
1. Install dependencies:
```bash
npm install
```
1. Configure the environment variables: Create an .env.local file inside the root folder and set up the following environment variables:
```text
NEXT_PUBLIC_API_DOMAIN_NAME (The url of the backend, for example, https://backend_api.com/)
NEXT_PUBLIC_PAYPAL_CLIENT_ID (The paypal client id)
```
To configure Paypal and obtain the client ID follow these steps:
1. First log in into your developer account (developer.paypal > Log Into Dashboard) or create a new one (Paypal.com > Developer > Get API Credentials).
1. PayPal creates 2 default sandbox accounts (one for bussines and one for personal use), which can be used for the next step, but it is recommended to create a new one for the the Habaneras de Lino App that we shall create next. To create the new sandbox account go to SANDBOX > Accounts > Create Account > (Select Business Account).
3.Then proceed to Dashboard > My Apps & Credentials > Create App and use the previously created sandbox account (the business account). You will need to copy the Client ID and update the NEXT_PUBLIC_PAYPAL_CLIENT_ID.
```
1. Run the app
```bash
npx next dev
```
1. Congratulations =) !!! the app should be running in [localhost:3000](http://localhost:3000)
<a name="screenshots_frontend"></a>
## Screenshots of the Frontend NEXT JS App
### Mobile View
<div align="center">
  
</div>
<div align="center">
  
</div>
<div align="center">
  
</div>
---
### Desktop View

---

---

---

---

---

---

---
<a name="screenshots"></a>
## Screenshots of the Django Backend Admin Panel

---

---

| Habaneras de Lino is an online ecommerce. This repo contains the frontend developed using NEXT JS for producing a React js web application | reactjs,docker,ecommerce-website,html,javascript,frontend-web,nextjs | 2023-02-25T14:47:31Z | 2023-01-09T05:44:22Z | null | 1 | 0 | 11 | 0 | 0 | 2 | null | null | JavaScript |
ICEI-PUC-Minas-PMV-ADS/pmv-ads-2023-1-e2-proj-int-t4-g4-banco-universitario | main | # Desconto Universitário

`ANÁLISE E DESENVOLVIMENTO DE SISTEMAS`
`APLICAÇÃO INTERATIVA`
`2º SEMESTRE - 2023.1`
O objetivo do nosso projeto é facilitar e encurtar o caminho entre estudantes e descontos/ofertas concedidas a eles por empresas de diferentes setores.
## Integrantes
* Cláudio Lopes Coelho Barroso
* Geraldo Homero do Couto Neto
* Hugo César Candian Ferreira
* Pedro Victor de Souza Fidelis
## Orientador
* Carlos Alberto Marques Pietrobon
## Instruções de utilização
Assim que a primeira versão do sistema estiver disponível, deverá complementar com as instruções de utilização. Descreva como instalar eventuais dependências e como executar a aplicação.
# Documentação
<ol>
<li><a href="docs/01-Documentação de Contexto.md"> Documentação de Contexto</a></li>
<li><a href="docs/02-Especificação do Projeto.md"> Especificação do Projeto</a></li>
<li><a href="docs/03-Metodologia.md"> Metodologia</a></li>
<li><a href="docs/04-Projeto de Interface.md"> Projeto de Interface</a></li>
<li><a href="docs/05-Arquitetura da Solução.md"> Arquitetura da Solução</a></li>
<li><a href="docs/06-Template Padrão da Aplicação.md"> Template Padrão da Aplicação</a></li>
<li><a href="docs/07-Programação de Funcionalidades.md"> Programação de Funcionalidades</a></li>
<li><a href="docs/08-Plano de Testes de Software.md"> Plano de Testes de Software</a></li>
<li><a href="docs/09-Registro de Testes de Software.md"> Registro de Testes de Software</a></li>
<li><a href="docs/10-Plano de Testes de Usabilidade.md"> Plano de Testes de Usabilidade</a></li>
<li><a href="docs/11-Registro de Testes de Usabilidade.md"> Registro de Testes de Usabilidade</a></li>
<li><a href="docs/12-Apresentação do Projeto.md"> Apresentação do Projeto</a></li>
<li><a href="docs/13-Referências.md"> Referências</a></li>
</ol>
# Hospedagem
https://appdescontouniver20230522215208.azurewebsites.net/
# Armazenamento do Código-Fonte
* <a href="src/README.md">Código Fonte</a>
# Armazenamento da Apresentação
* <a href="presentation/README.md">Apresentação da solução</a>
| Facilitar e encurtar o caminho entre estudantes e descontos/ofertas concedidas a eles por empresas de diferentes setores. | html,csharp,javascript,project,sql,sql-server,css | 2023-03-07T14:35:10Z | 2023-06-20T01:36:42Z | null | 41 | 17 | 233 | 0 | 6 | 2 | null | null | C# |
thoughtspile/procedural | master | # Assorted procedural art
## See at https://blog.thoughtspile.tech/procedural
| So, am I a digital artist now? | art,generative-art,javascript,procedural-generation | 2023-03-07T18:59:27Z | 2023-03-08T18:54:07Z | null | 1 | 0 | 10 | 0 | 0 | 2 | null | null | JavaScript |
Th-uro/ROBOTRON | main | # robotron-2000 | Projeto realizado junto ao curso de JAVASCRIPT da Alura. Este projeto é para mostrar as habilidades que venho aprendendo enquanto acompanho a trilha de front-end developer. | css,gihub,git,html,javascript | 2023-02-28T23:49:31Z | 2023-03-06T23:50:01Z | null | 1 | 0 | 4 | 0 | 0 | 2 | null | null | HTML |
chandanmallick19/AscentAcademy_Calculator | main | <!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css">
</head>
<body>
<h2 style="text-align:center;"> ASCENT ACADEMY CALCULATOR 🧮 </h2>
<hr>
<p>
This project is made with
<a href="#">@AscentAcademy</a> for web development internship program in the month of March-2023. <br>
Interactive interface to perform basic functions such as addition, subtraction, division, and
multiplication. It will need a display screen to display the user’s input and give the results. The grid
system in CSS is for the alignments of buttons on the calculator. The additional tools you need to
build a fully functional calculator include eventListeners, if-else statements, operators, loops, and so
on.
</p>
</body>
</html>
| This project is made with @AscentAcademy for web development internship program in the month of March-2023. | calculator,html,css,ascentacademy,javascript | 2023-03-06T08:25:59Z | 2023-03-25T12:23:12Z | null | 1 | 0 | 3 | 0 | 0 | 2 | null | null | HTML |
brightiortsor/my_github_repo | main | # Bright's GitHub Repositories' Fetch
[View Project Demo Here](https://my-github-repo.vercel.app/)
This is a simple Vue web application that fetches all the repositories owned by me and displays them on a new page as a list item. The application also provides a detailed view of a specific repository when clicked from the list. The repository details include the repository name, description, number of stars, forks, link to the repo and the primary language used in the repository.
The application uses Vue Router to manage the navigation between the home page and the repository details page. It also includes a wildcard route to catch 404 pages when an invalid URL is entered.
## Dependencies
This application uses the following dependencies:
Vue.js\
Vue Router\
Axios
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
| This is a simple Vue web application that fetches all the repositories owned by me and displays them on a new page as a list item. The application also provides a detailed view of a specific repository when clicked from the list. The repository details include the repo name, description, number of stars, forks, link to the repo and language used. | vue-cli,vue-router,vuejs,javascript | 2023-03-06T08:30:10Z | 2023-03-14T12:43:59Z | null | 1 | 0 | 15 | 0 | 0 | 2 | null | null | Vue |
raphaelweis/TurboMail | main | # TurboMail
<!--toc:start-->
- [Website](#Website)
- [Technologies](#technologies)
- [Useful Web development related documentation](#useful-web-development-related-documentation)
- [Try TurboMail](#try-turbomail)
<!--toc:end-->
TurboMail is a school project conducted by Sam Barthazon and Raphaël Weis. This was
our first attempt at web development, hence the fairly basic project.
## Website
TurboMail is a classic messaging app where its users can send friend requests and chat
with each other. The message updates are not automatic, and the press of a refresh button
is required to fetch new messages. Additionally, the website is fully responsive and should
work without issues on any mobile device.
Here's a screenshot of the login page:

## Technologies
We are using Apache Web Server for our server, along with MariaDB for
the database. We use PHP for our backend, and javascript, HTML and CSS for our
frontend.
You get it, it's the XAMPP stack.
> Note: Aside from Jquery for the frontend, no frameworks were used for this project.
## Useful Web development related documentation
see [useful-links](/doc/useful-links.md)
## Try TurboMail
We currently do not plan to upload this project to the web, but you may try the
application by doing the following :
1. Make sure you have XAMPP, npm and composer installed - all available on Linux, Windows and macOS
2. clone this repository in the htdocs folder (location may vary depending on the OS you're using):
> You can get the latest commits, if any, by switching to the dev branch
```
git clone https://github.com/raphaelweis/TurboMail.git
```
3. Navigate to the cloned TurboMail folder, and, in the project root, run:
```
composer install
npm install
```
4. start xampp, through the command line or the GUI
```
xampp start
```
5. Go to http://localhost/phpmyadmin and import the file [TurboMailDB.sql](/database/TurboMailDB.sql).
> An example database will automatically be created, containing sample data. You can peek at the
already registered users by looking into the user table in the database.
The password for all users in "Password"
6. You can now go to http://localhost/TurboMail and browse the application.
**If you encounter any problems during this process, please open a github issue.**
# License
You are free to reuse any part of this project, as stated in the
[LICENSE](LICENSE).
| TurboMail ! | ajax,css,html,javascript,mvc,mysql,php | 2023-03-06T13:04:03Z | 2023-06-19T17:25:44Z | null | 2 | 3 | 402 | 0 | 0 | 2 | null | GPL-3.0 | PHP |
alefrrlima/id-gen | main | null | Mar. 2023. My third project. A generator of personalized ID cards based on pre-established patterns. | css,html,javascript | 2023-03-03T04:00:10Z | 2023-03-09T14:03:09Z | null | 1 | 0 | 23 | 0 | 0 | 2 | null | null | HTML |
mohammadrafly/jennyhouse-frontend | main | 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 `pages/index.tsx`. The page auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
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.
| front-end jennyhouse | javascript,nextjs | 2023-03-09T09:23:58Z | 2023-07-10T09:12:02Z | null | 3 | 3 | 34 | 0 | 0 | 2 | null | null | JavaScript |
legendsort/jamstackShop | next | ## Jamstack ECommerce Next
Jamstack ECommerce Next provides a way to quickly get up and running with a fully configurable ECommerce site using Next.js.
Out of the box, the site uses completely static data coming from a provider at `providers/inventoryProvider.js`. You can update this provider to fetch data from any real API by changing the call in the `getInventory` function.

### Live preview
Click [here](https://www.jamstackecommerce.dev/) to see a live preview.
<details>
<summary>Other Jamstack ECommerce pages</summary>
### Category view

### Item view

### Cart view

### Admin panel

</details>
### Getting started
1. Clone the project
```sh
$ git clone https://github.com/jamstack-cms/jamstack-ecommerce.git
```
2. Install the dependencies:
```sh
$ yarn
# or
$ npm install
```
3. Run the project
```sh
$ npm run dev
# or to build
$ npm run build
```
## Deploy to Vercel
Use the [Vercel CLI](https://vercel.com/download)
```sh
vercel
```
## Deploy to AWS
```sh
npx serverless
```
## About the project
### Tailwind
This project is styled using Tailwind. To learn more how this works, check out the Tailwind documentation [here](https://tailwindcss.com/docs).
### Components
The main files, components, and images you may want to change / modify are:
__Logo__ - public/logo.png
__Button, ListItem, etc..__ - components
__Form components__ - components/formComponents
__Context (state)__ - context/mainContext.js
__Pages (admin, cart, checkout, index)__ - pages
__Templates (category view, single item view, inventory views)__ - templates
### How it works
As it is set up, inventory is fetched from a local hard coded array of inventory items. This can easily be configured to instead be fetched from a remote source like Shopify or another CMS or data source by changing the inventory provider.
#### Configuring inventory provider
Update __utils/inventoryProvider.js__ with your own inventory provider.
#### Download images at build time
If you change the provider to fetch images from a remote source, you may choose to also download the images locally at build time to improve performance. Here is an example of some code that should work for this use case:
```javascript
import fs from 'fs'
import axios from 'axios'
import path from 'path'
function getImageKey(url) {
const split = url.split('/')
const key = split[split.length - 1]
const keyItems = key.split('?')
const imageKey = keyItems[0]
return imageKey
}
function getPathName(url, pathName = 'downloads') {
let reqPath = path.join(__dirname, '..')
let key = getImageKey(url)
key = key.replace(/%/g, "")
const rawPath = `${reqPath}/public/${pathName}/${key}`
return rawPath
}
async function downloadImage (url) {
return new Promise(async (resolve, reject) => {
const path = getPathName(url)
const writer = fs.createWriteStream(path)
const response = await axios({
url,
method: 'GET',
responseType: 'stream'
})
response.data.pipe(writer)
writer.on('finish', resolve)
writer.on('error', reject)
})
}
export default downloadImage
```
You can use this function to map over the inventory data after fetching and replace the image paths with a reference to the location of the downloaded images, probably would look something like this:
```javascript
await Promise.all(
inventory.map(async (item, index) => {
try {
const relativeUrl = `../downloads/${item.image}`
if (!fs.existsSync(`${__dirname}/public/downloads/${item.image}`)) {
await downloadImage(image)
}
inventory[index].image = relativeUrl
} catch (err) {
console.log('error downloading image: ', err)
}
})
)
```
### Updating with Auth / Admin panel
1. Update __pages/admin.js__ with sign up, sign, in, sign out, and confirm sign in methods.
2. Update __components/ViewInventory.js__ with methods to interact with the actual inventory API.
3. Update __components/formComponents/AddInventory.js__ with methods to add item to actual inventory API.
### Roadmap
- Full product and category search
- Auto dropdown navigation for large number of categories
- Ability to add more / more configurable metadata to item details
- Themeing + dark mode
- Optional user account / profiles out of the box
- Make Admin Panel responsive
- Have an idea or a request? Submit [an issue](https://github.com/jamstack-cms/jamstack-ecommerce/issues) or [a pull request](https://github.com/jamstack-cms/jamstack-ecommerce/pulls)!
### Other considerations
#### Server-side processing of payments
To see an example of how to process payments server-side with stripe, check out the [Lambda function in the snippets folder](https://github.com/jamstack-cms/jamstack-ecommerce/blob/next/snippets/lambda.js).
Also, consider verifying totals by passing in an array of IDs into the function, calculating the total on the server, then comparing the totals to check and make sure they match. | A starter project for building performant ECommerce applications with Next.js and React | gatsby,javascript,nextjs,serverless | 2023-02-26T17:39:58Z | 2021-01-22T01:59:08Z | null | 1 | 0 | 87 | 0 | 0 | 2 | null | MIT | JavaScript |
shoaibn98/Angle_Preloader | main | # Angle_Preloader
- ### What is it?
A preloader in HTML is a small animation or graphic displayed on a webpage while its content and resources are loading, preloaders are essential elements in web design to enhance user experience and ensure that a webpage loads smoothly and correctly.
This preloader not only allows you to preload your entire web page but also individual elements within it.
<br>

- ### Documentation
> [How to use](https://github.com/shoaibn98/Angle_Preloader#How-To-Use)
> [Complete Documentation](https://my-app.alwaysdata.net/angle_preloader) -> link to my app website
> [Personalization](https://github.com/shoaibn98/Angle_Preloader#Personalization) -> set Dark Mode, Colors, Font family and size
> [List of all Preloader](https://github.com/shoaibn98/Angle_Preloader#Preloaders) -> wave, flag, orbital, radio_wave ....
</br>
***
- ### How To Use
[use as HTML Page Preloader](https://github.com/shoaibn98/Angle_Preloader#as_HTML_Preloader)
[use as an Elements Preloader](https://github.com/shoaibn98/Angle_Preloader#as_Element_Preloader)
</br>
before start using add script file to your HTML file.
```
<script src="https://cdn.jsdelivr.net/gh/shoaibn98/Angle_Preloader/Angle_Preloader.min.js"></script>
```
> Note: This is a Preloader. Link it before any JS file.
- ### as HTML Preloader
Create an Empty `div` with `Angle_Preloader` Id.
```
<div id="Angle_Preloader"></div>
```
Right after the closing `div` element, initiate your preloader by opening a JavaScript tag:
````
<div id="Angle_Preloader"></div>
<script>
let preloader = new Angle_Preloader(option);
</script>
````
This sequence seamlessly integrates the preloader with your HTML content, allowing you to customize and control the loading process effectively.
You can conveniently save and customize all your settings within an options variable.
````
<script>
let option={
type: "preloader_Name" // *Required* -type of Preloader
}
let preloader = new Angle_Preloader(option);
</script>
````
You can explore a comprehensive range of options and tailor them to your preferences in the box below.
````
<script>
let option={
type: "loading", // *Required* => To set type of Preloader
window: "element", // *Required If* => if preloader used as Element's Preloader
message: "loading", // *Optional* => To set Message to show
target: "elementID", // *Required If* => if preloader used as Element's Preloader
model: "circle_3", // *Required If* => Only used for some type of Preloaders like 'loading'
darkTheme: true, // *Optional* => To active dark Theme
color1: "red", // *Optional* => To set First animation's Color
color2: "green", // *Optional* => To set Second animation's Color
color3: "green", // *Optional* => To set 3th animation's Color
messageColor: "green", // *Optional* => To set Color of Message text
diameter: 10, // *Optional* => To set Diameter only for some type like 'loading' and 'orbital'
spanCount: 10, // *Optional* => To set count of Spans only for some type like 'wave' and 'radio_wave'
rowCount: 10, // *Optional* => To set count of row only for some type like 'flag' and 'diamond'
minHeight: 2, // *Optional* => Only for type 'radio_wave'
maxHeight: 60, // *Optional* => Only for type 'radio_wave'
website: "website", // *Optional* => Only for type 'anime_text'
domain: "de", // *Optional* => Only for type 'anime_text'
websiteColor: "#fff", // *Optional* => Only for type 'anime_text'
domainColor: "#000", // *Optional* => Only for type 'anime_text'
dotColor: "#000", // *Optional* => Only for type 'anime_text'
}
let preloader = new Angle_Preloader(option);
</script>
````
Example:
````
let option={
type: "wave",
message: "Please Waiting",
darkTheme: true,
spanCount: 6,
}
let preloader = new Angle_Preloader(option);
````

We're nearly done! For the final step, don't forget to incorporate the 'hide()' function from this package to deactivate the preloader once your website has fully loaded.
````
<script>
var preloader = new Angle_Preloader(option);
function onload() {
preloader.hide();
}
</script>
````
> Note: don't forget to add this line in to `onload()` event.
- ### as Element Preloader
To add a Preloader to an Element follow this steps:
````
<div id="myElementID" style="width:200px;height: 200px;;position:relative" >
<img src="https://my-app.alwaysdata.net/angle_preloader/img/11.jpg" width="200" height="200" onload="loaded()">
</div>
````
> Note: define ID for your element, set Position to relative , add Onload event to your target Element
inside Script Tag, set Option:
````
var option = {
type: "loading", // *Required*
window: "element", // *Required*
target: "myElementID", // *Required*
model: "circle_3",
darkTheme: true,
diameter: 10
}
````
Result :

- ### Personalization :
- ### Message text settings
````
preloader.setText("Please Wait...");
preloader.setTextColor("red"); // you can use name of color
preloader.setTextColor("#000"); // Or HEX format
preloader.setTextColor("rgb(33, 158, 188)"); // Or RGB() and RGBA() format
preloader.setTextFontFamily("Font Family");
preloader.setTextFontSize(20);
````
<br>
- ### set Block colors
````
preloader.setFirstColor("rgb(0,0,0)");
preloader.setSecondColor("rgb(0,0,0)");
preloader.set3thColor("rgb(0,0,0)");
````
<br>
</br>
- ### darkTheme( )
If you like dark Theme or you use dark Theme in your website, don't worry you can use `DarkTheme()` method of `Preloader`:
````
preloader.darkTheme(true);
````
> Note : It's more safer to set DarkTheme in option. If you use method `darkTheme()` don't forget to add this method exactly after your preloader Variable, It may change your personalize setting.
</br>
- ## Preloaders
- #### wave
````
let option={
type: "wave",
message: "Please Waiting",
darkTheme: true,
spanCount: 6,
}
let preloader = new Angle_Preloader(option);
````

- #### flag
````
let option={
type: "flag",
darkTheme: true,
rowCount: 4,
color1: "#005f7e",
}
let preloader = new Angle_Preloader(option);
````

- #### loading
````
let option={
type: "loading",
model: "circle", // try : 'circle-2','circle-3','circle-classic'
darkTheme: true,
diameter: 50,
}
let preloader = new Angle_Preloader(option);
````

- #### orbital_1
````
let option={
type: "orbital_1",
darkTheme: true,
diameter: 50,
}
let preloader = new Angle_Preloader(option);
````

- #### orbital_2
````
let option={
type: "orbital_2",
darkTheme: true,
message:"Loading",
}
let preloader = new Angle_Preloader(option);
````

- #### radio_wave
````
let option={
type: "radio_wave",
darkTheme: true,
spanCount: 10,
minHeight: 2,
maxHeight: 60,
}
let preloader = new Angle_Preloader(option);
````

- #### Balls
````
let option={
type: "balls",
darkTheme: true,
color1: "#1e578b",
color2: "#2ca130",
}
let preloader = new Angle_Preloader(option);
````

- #### anime_text
````
let option={
type: "anime_text",
darkTheme: true,
website: "website",
domain: "de",
websiteColor: "#fff",
domainColor: "#000",
dotColor: "#000",
}
let preloader = new Angle_Preloader(option);
````

- #### diamond
````
let option={
type: "diamond",
darkTheme: true,
rowCount:2,
}
let preloader = new Angle_Preloader(option);
````

- #### square
````
let option={
type: "square",
darkTheme: true,
}
let preloader = new Angle_Preloader(option);
````

</br>
</br>
</br>
- ## New Preloader coming soon
<br>
Made with ♥ by [Ahmad Shoaib Norouzi](https://shoaibnorouzi.alwaysdata.net) | A preloader in HTML is a small animation or graphic displayed on a webpage while its content and resources are loading, preloaders are essential elements in web design to enhance user experience and ensure that a webpage loads smoothly and correctly. | javascript-library,preloader,preloaders,javascript,javascript-project | 2023-02-28T09:34:24Z | 2023-10-31T17:08:26Z | 2023-03-01T10:17:44Z | 1 | 0 | 11 | 0 | 0 | 2 | null | null | JavaScript |
HamedFathi/screen.play.write | main | > [!IMPORTANT]
> Introducing **HamedStack**! For all my latest libraries, visit: [Explore HamedStack](https://github.com/HamedStack). Replacements and updates are available at the link. Thank you for your support! The new version of this library is accessible via [HamedStack.Playwright.Screenplay](https://github.com/HamedStack/HamedStack.Playwright.Screenplay)
---

[](https://opensource.org/licenses/MIT)
[](https://badge.fury.io/js/screen.play.write)
[](https://www.npmjs.com/package/screen.play.write)
## What is Screenplay Pattern?
The Screenplay Pattern is a user-centric approach to writing workflow-level automated acceptance tests. This helps automation testers to write test cases in terms of Business language.
## The Design

The Screenplay Pattern can be summarized in one line:
```
Actors use Abilities to perform Interactions.
```
* Actors initiate Interactions.
* Abilities enable Actors to initiate Interactions.
* Interactions are procedures that exercise the behaviors under test.
* Tasks execute procedures on the features under test.
* Questions return state about the features under test.
* Interactions may use Locators, Requests, and other Models.
**Actors:** Actors are the main entities in the Screenplay Pattern. They represent the different types of users who
interact with the system. Each actor is responsible for performing specific tasks and interacting with the
system in a specific way. For example, an actor could represent a regular user, an administrator, or a
customer support representative.
**Interactions:** Interactions are the actions that an actor performs on the system. They represent the different
ways that an actor can interact with the system, such as clicking a button, entering data into a form, or
navigating to a specific page.
**Questions:** Questions are used to retrieve information from the system. They represent the different types of
information that an actor might need to retrieve during the course of their interactions with the system. For
example, a question could be used to retrieve the text of an error message or the value of a specific field in a
form.
**Tasks:** Tasks are the main building blocks of the Screenplay Pattern. They represent the different activities that
an actor performs in order to achieve a specific goal. A task can consist of one or more interactions and
questions, and can be used to model complex workflows and user journeys.
**Abilities:** Abilities represent the different capabilities that an actor has. They include things like the ability to
interact with the system using a specific user interface, the ability to read and write data to a database, and
the ability to send and receive messages over a network.
| Concepts | Differences |
|----------------|----------------|
| Tasks vs. Interactions | The primary difference between tasks and interactions is their granularity. Tasks represent high-level actions that an actor performs, while interactions represent the individual steps or actions that make up a task. For example, a task might be "Login to the system", while the interactions that make up that task might include entering a username, entering a password, and clicking the "Login" button. |
| Abilities vs. Interactions | While both abilities and interactions represent actions that an actor can perform, they serve different purposes. Abilities represent the skills or capabilities that an actor possesses, while interactions represent the specific actions that an actor performs in order to complete a task. Abilities are typically called inside interactions, as they represent a specific skill or capability that an actor possesses. Interactions are actions that the actor performs using their abilities. |
| Tasks vs. Questions | Tasks and questions are closely related, but they serve different purposes. Tasks represent the actions that an actor performs, while questions represent the verifications that the actor performs after completing those actions. In other words, tasks are about doing, while questions are about verifying. |
| Actors vs. Abilites | Actors and abilities are also closely related, but they serve different purposes. Actors represent the users or personas who interact with the system being tested, while abilities represent the skills or capabilities that those actors possess. In other words, actors are the "who" of the system being tested, while abilities are the "what". |
## The Principles
The Screenplay Pattern adheres to **SOLID** design principles:
| SOLID Principle | Explanation |
|---------------------------------|----------------|
| Single-Responsibility Principle | Actors, Abilities, and Interactions are treated as separate concerns. |
| Open-Closed Principle | Each new Interaction must be a new class, rather than a modification of an existing class. |
| Liskov Substitution Principle | Actors can call all Abilities and Interactions the same way. |
| Interface Segregation Principle | Actors, Abilities, and Interactions each have distinct, separate interfaces. |
| Dependency Inversion Principle | Interactions use Abilities via dependency injection from the Actor. |
## Example
Here's an example scenario for adding a new item to a todo list:

* A user navigates to the to-do list page. (An interaction like VisitPage)
* A user sees the "Add Item" button (+) and clicks it. (An interaction like ClickOnAddButton)
* A user enters the title (My todo) of the new item into the input field and presses enter from the keyboard. (An interaction like AddTodoItem)
* A user sees the last item on the to-do list which is the newly added one. (A question like GetLastTodoItem)
```typescript
// Ability
// Abilities to work with Playwright: UsePlaywrightPage, UsePlaywrightBrowser, or UsePlaywrightBrowserContext.
// Defined inside library but you can define what you want.
/*
// For example:
export class UseSqlDatabase extends Ability<DbConnection> {
constructor(private connectionString: string) {
super();
}
can(): DbConnection {
return new SqlDatabase(connectionString);
}
}
*/
// Interactions
export class VisitPage extends Interaction {
async attemptAs(actor: Actor): Promise<void> {
let page = await actor.useAbility(UsePlaywrightPage); // Use an abilitiy to interact with what you want.
await page.goto("http://...");
}
}
export class ClickOnAddButton extends Interaction {
async attemptAs(actor: Actor): Promise<void> {
let page = await actor.useAbility(UsePlaywrightPage);
await page.locator("i.fa-plus").click();
}
}
export class AddTodoItem extends Interaction {
async attemptAs(actor: Actor) {
let page = await actor.useAbility(UsePlaywrightPage);
await page.getByTestId('value').type('My first todo');
await page.keyboard.press('Enter');
}
}
// Task
// Executing all interactions in order. (less control)
export class AddTodoTask extends Task {
constructor() {
super([new VisitPage(), new ClickOnAddButton(), new AddTodoItem()]);
}
public async performAs(actor: Actor): Promise<void> {
await this.attemptInteractionsAs(actor);
}
}
// Executing all interactions based on QA/Developer idea. (more control)
export class AddTodo extends Task {
constructor() {
super([new VisitPage(), new ClickOnAddButton(), new AddTodoItem()]);
}
public async performAs(actor: Actor): Promise<void> {
await this.attemptInteractionAs(actor, VisitPage); // You can get a return value and assert on it if you want.
await this.attemptInteractionAs(actor, ClickOnAddButton);
await this.attemptInteractionAs(actor, AddTodoItem);
}
}
// Question
export class GetLastTodoItem extends Question {
// Always returns a value to write assertions based on it.
async askAs(actor: Actor): Promise<string> {
let page = await actor.useAbility(UsePlaywrightPage);
return await page.getByTestId('todo').last().innerText();
}
}
// Test
test('add a new item to todo list', async ({ page }) => {
const pw = new UsePlaywrightPage(page);
// const sqlDb = new UseSqlDatabase("...");
// Pass abilities to the ctor
let user = new Actor([pw /*, sqlDb*/]); // Our user
await user.performs(new AddTodoTask()); // Executes a task, an interaction, an interactions, or a tasks.
// await user.performs(new AddTodo());
// Question & Assertion separately.
let theAnswer = await user.asksAbout(new GetLastTodoItem()) as string; // What is the value of last todo item? (system state)
expect(theAnswer).toBe("My first todo"); // Making sure about the answer/state.
// Question & Assertion together.
await user.asserts(new GetLastTodoItem(), (answer: string) => {
expect(answer).toBe("My first todo");
});
});
```
## [NPM](https://www.npmjs.com/package/screen.play.write)
You install it via:
```
npm i screen.play.write
```
## References
1. https://serenity-js.org/handbook/design/screenplay-pattern.html
2. https://q2ebanking.github.io/boa-constrictor/getting-started/screenplay/
| Screenplay pattern for Playwright. | design-patterns,javascript,playwright,screenplay,screenplay-pattern,test,test-automation,testing-library,testing-tools,typescript | 2023-02-28T12:19:05Z | 2024-03-17T17:55:10Z | null | 1 | 0 | 6 | 0 | 0 | 2 | null | MIT | TypeScript |
gagan257/Mock-Social-Media | main | # Social Media Sample Project
## INSTALL ALL REQUIRED MODULES BEFORE STARTING
```shell
$ npm init
$ npm install node
$ npm install hbs
$ npm install express
$ npm install mysql2
$ npm install sequelize
```
---------OR---------
```shell
$ npm init
$ npm install node hbs express mysql2 sequelize # install all in single step
```
## Database Setup
```shell
$ mysql -u root
```
```mysql
$ create database socialmediadb;
$ create user socialuser identified with mysql_native_password by 'socialpass';
$ grant all privileges on socialmediadb.* to socialuser;
$ flush privileges;
```
## Project Structure
### Backend (Server)
```shell
src
├───controllers # functions to connect routes to db operations
├───db # db connection and model definations
├───public # html/js/css files for static part of site
└───routes # express middlewares (route wise)
└───utils # Username generator
```
<a href="#"><img width="60%" height="auto" src="Images/structure.png" height="100px"/></a>
## Frontend (client side code)
```shell
src/public
├── app # our own frontend js code
│ └── cbsocial-common.js
│ └── common.css
├── components # own html snippets
│ └── navbar.html
│ └── footer.html
│ └── all-posts.html
├── css # css libraries we are using
│ └── bootstrap.css
│ └── login.css
├── index.html # first / home page
├── login.hbs [TBD]
└── js # js libraries we are using
└── bootstrap.js
└── jquery-3.4.1.js
└── popper.js
```
## Business Structure
### Users
1. **create users**
this will create a new user with a random username
### Posts
1. **create post**
this will create a new post, required fields are
- username (the author of this post)
- title
- body
2. **show all posts**
list all existing posts, we should have following filtering support
- filter by username
- filter by query contained in title (search by title)
3. **edit posts** `TBD`
4. **delete posts** `TBD`
### Comments
1. **show all comments (of a user)**
2. **show all comments (under a post)**
3. **add a comment**
## Application
**Search new user (GET request)**
`http://localhost:8383/api/users/:username`
`OR`
`http://localhost:8383/api/users/:id`
**Add new user (POST request)**
`http://localhost:8383/api/users`
## API Documentation
### `users`
1. `POST /users`
Creates a new user with random username and an user id
2. `GET /users/:userid`
Get an user with a given user id
3. `GET /users/:username`
Get an user with a given username
### `Posts`
1. `GET /posts/`
Get all posts by everyone
2. `POST /posts`
Create a new post.
Required fields in body-
```
userId
title
body
``` | Social Media App with ExpressJS, Sequelize and JQuery | css,express,html5,javascript,jquery,sequelize,sqlite,backend,hbs,nodejs | 2023-02-28T08:16:35Z | 2023-03-22T16:19:40Z | null | 1 | 0 | 14 | 0 | 0 | 2 | null | null | JavaScript |
bcgov/rsbc-digital-forms | main | [](<Redirect-URL>) [](https://sonarcloud.io/summary/new_code?id=bcgov_rsbc-digital-forms) [](https://api.securityscorecards.dev/projects/github.com/bcgov/rsbc-digital-forms) [](https://github.com/bcgov/rsbc-digital-forms/actions/workflows/codeql.yml) [](https://github.com/bcgov/rsbc-digital-forms/actions/workflows/trivy-scan.yml)
# rsbc-digital-forms
Repository for all components related to Digital forms application managed by RSBC team
| Repository for all components related to Digital forms application managed by RSBC team | actions,javascript,openshift,python,react,pssg | 2023-03-09T20:20:58Z | 2024-05-14T21:19:53Z | null | 54 | 290 | 520 | 13 | 3 | 2 | null | Apache-2.0 | Python |
kiseta/selenium-mocha | master | # Selenium Mocha Framework Demo
<mark>Page Object Model based Test Automation Framework with Selenium WebDriver, Mocha Testing Framework, Chai Assertion Library and Mochawesome Reports</mark> :coffee:
## Prerequisites
* [Node.js](https://nodejs.org/) (with npm)
* [Visual Studio Code](https://code.visualstudio.com/download)
* Basic Knowledge of JavaScript
* Basic understanding of [Selenium WebDriver](https://selenium.dev)
* Basic knowledge of Command Line Interface (CLI) and running commands in Terminal
* Basic understanding of git version control and :octocat: GitHub source control technologies
## How Selenium Works with different browsers
To use Selenium with different browsers, you need to download and install the appropriate web driver for each browser you want to automate. Here's where you can download the drivers for each browser:
**Google Chrome**: The ChromeDriver can be downloaded from the official Selenium website at https://sites.google.com/a/chromium.org/chromedriver/downloads. You can download the driver version that matches your Chrome browser version.
**Mozilla Firefox**: The GeckoDriver can be downloaded from the official Mozilla GitHub page at https://github.com/mozilla/geckodriver/releases. You can download the driver version that matches your Firefox browser version.
**Microsoft Edge**: The EdgeDriver can be downloaded from the official Microsoft website at https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/. You can download the driver version that matches your Edge browser version.
**Safari**: The SafariDriver is built into the Safari browser and is enabled through the Develop menu. To enable the Develop menu, go to Safari Preferences -> Advanced and check "Show Develop menu in menu bar". Then, go to the Develop menu and select "Allow Remote Automation".
Once you have downloaded and installed the appropriate driver for each browser, you can use Selenium to automate the interaction with the browser in your test scripts.
## Install Browser Drivers (Chrome browser)
* Check the version of your Browser.
* Download compatible browser driver i.e [chromedriver](https://sites.google.com/a/chromium.org/chromedriver/downloads).
* Extract the chromedriver.exe to the local directory, i.e. C:/Tools.
* Add C:/Tools to the PATH variable (Environment Variable) - this step may require restart.
* Verify the chromedriver.exe binary works by running the following command in a command prompt or terminal window:
```shell
chromedriver --version
```

# Creating Selenium Framework
## Create Project Directory
`i.e. C:/_git_repos/selenium-mocha/>`
This step can be done via file explorer or Terminal Window (in Command Prompt in Windows, for example)
```shell
mkdir selenium-mocha
```
## Create /test folder
```shell
cd selenium-mocha
mkdir test
```
# Install Dependencies
Start VSCode and open project folder.
Run the following commands in Terminal window:

### 1. Initialize Node.js Project
```shell
npm init -y
```
### 2. Install Selenium
```shell
npm install selenium-webdriver
```
### 3. Install Testing Framework
The "***npm install mocha***" command installs the Mocha test framework as a development dependency for your project. Mocha is a popular JavaScript test framework that is used to run automated tests for web applications.
The "***npm install mocha-selenium***" command installs the ***Mocha Selenium adapter*** as a development dependency for your project. The Mocha Selenium adapter is a library that allows you to run Selenium tests with Mocha.
```shell
npm install mocha
```
```
npm install mocha-selenium
```
### 4. Install Assertion Library
```shell
npm install chai
```
### 5. Install Reporting Framework
```bash
npm install --save-dev mochawesome
```
# Create Selenium script
### Common interactions with web elements using Selenium and JavaScript
```js
// Click a button
await driver.findElement(By.id("button-id")).click();
// Type text into a text field
await driver.findElement(By.id("text-field-id")).sendKeys("Hello, World!");
// Get the text content of an element (div)
var divText = await driver.findElement(By.id("div-id")).getText();
console.log(divText);
// Select an option from a select element
await new Select(driver.findElement(By.id("select-id"))).selectByValue("option-value");
// Check or uncheck a checkbox
await driver.findElement(By.id("checkbox-id")).click();
// Enter text and press a keyboard key
// add the following import to the top of the file
const { Key } = require("selenium-webdriver");
await driver.findElement(By.name("searchBox")).sendKeys("Selenium WebDriver", Key.RETURN);
await driver.findElement(By.css("#my-input")).sendKeys("text to enter", Key.TAB);
```
### Locator strategies in Selenium with JavaScript
#### ID
```js
// Click a button using ID
await driver.findElement(By.id("button-id")).click();
```
#### Class Name
```js
// Click a button using class name
await driver.findElement(By.className("button-class")).click();
```
#### Name
```js
// Click a button using name
await driver.findElement(By.name("button-name")).click();
```
#### Xpath
```js
// Click a button using XPath
await driver.findElement(By.xpath("//button[text()='Click me']")).click();
```
## Create new test in /test directory
:bulb: Test name should end with either .**test**.js or .**spec**.js
```
login.spec.js
```
## Create a basic linear script
Developing an automated script using Selenium and JavaScript involves two phases:
- linear script development and
- page object model (POM) based script development.
In the linear script development phase, we develop the script by hardcoding the locators and data values directly into the script. This approach is quick and easy to implement but can be difficult to maintain and update in the long run.
Once the linear script is developed, we can refactor it into a more efficient and maintainable page object model (POM) based script. In the POM based script development phase, we separate the locators and actions from the script into separate page object files.
```js
// login.spec.js
// ===================
const { Builder, By } = require("selenium-webdriver");
const { expect } = require("chai");
describe("Login page tests - Basic", function() {
this.timeout(50000);
let driver;
it("should allow a user to login with correct credentials", async function() {
driver = await new Builder().forBrowser("chrome").build();
await driver.get("https://the-internet.herokuapp.com/login");
await driver.findElement(By.name("username")).sendKeys("tomsmith");
await driver.findElement(By.name("password")).sendKeys("SuperSecretPassword!");
await driver.findElement(By.css(".radius")).click();
const successMsg = await driver.findElement(By.id("flash")).getText();
expect(successMsg).to.contain("You logged into a secure area!");
await driver.quit();
});
it("should display an error message for incorrect login", async function() {
driver = await new Builder().forBrowser("chrome").build();
await driver.get("https://the-internet.herokuapp.com/login");
await driver.findElement(By.name("username")).sendKeys("dummy");
await driver.findElement(By.name("password")).sendKeys("dummy");
await driver.findElement(By.css(".radius")).click();
const errorMsg = await driver.findElement(By.id("flash")).getText();
expect(errorMsg).to.contain("Your username is invalid!");
await driver.quit();
});
});
```
# Run Test :heavy_check_mark:
In terminal window run the following command:
```shell
npx mocha test\login.spec.js
```

## Configure Test Run Command
and specify default script timeout.
Open **package.json** file and update **"scripts"** section as follows:
```json
"scripts": {
"test": "mocha --timeout 10000"
}
```
## Run Test (new run comman)
run all tests in the /test folder
```
npm test
```
run specific test
```
npm test test\login.spec.js
```
# Using Mochawesome Reporter
## Update test run command
Open **package.json** file and update **"scripts"** section as follows
```json
"scripts": {
"test": "mocha --timeout 10000 --reporter mochawesome"
},
```
then
```
npm test
```
## View Mochawesome Report
Get location from the terminal window and open it in the brower, for example:
```shell
[mochawesome] Report HTML saved to C:\_git_repos\selenium-mocha\mochawesome-report\mochawesome.html
```
## ...et voila! :sunglasses:

# Page Object Model Design Pattern
Page Object Model (POM) is a common design pattern used in QA Automation.
* With POM Web pages are represented with corresponding Classes (i.e LoginPage Class, HomePage Class).
* GUI Elements Locators are stored in a separate Repository file (i.e locators.js).
* Interactions with the elements are done via the Class methods (functions).
* Tests contain function calls to perform required actions.
Using POM design pattern makes the code more maintainable, readable, reusable and optimized.
## Create additional files/folders
### Locators/Data file
```shell
/resources/locators.js
```
Add the following content
```js
// locators.js
// ===========
const locators = {
username: "#username",
password: "#password",
submitButton: 'button[type="submit"]',
errorMessage: "#flash.error",
successMessage:"#flash.success",
loginPageHeading: "h2",
secureAreaPageHeading: "h2",
logoutButton: ".button.secondary.radius",
};
const data = {
baseUrl: "https://the-internet.herokuapp.com/login",
pageTitle: "The Internet",
username: "tomsmith",
password: "SuperSecretPassword!",
loginPageHeading: "Login Page",
secureAreaPageHeading: "Secure Area",
errorMessage: "Your username is invalid!",
successMessage: "You logged into a secure area!",
};
module.exports = { locators, data };
```
### Login Page Class file
```shell
/pages/LoginPage.js
```
Add the following content
```js
// LoginPage.js
// ==========
const { By } = require("selenium-webdriver");
const { expect } = require("chai");
const { locators, data } = require("../resources/locators");
class LoginPage {
constructor(driver) {
this.driver = driver;
}
// class methods
async goto() {
await this.driver.get(data.baseUrl);
}
async loginAs(username, password) {
await this.driver.findElement(By.css(locators.username)).sendKeys(username);
await this.driver.findElement(By.css(locators.password)).sendKeys(password);
await this.driver.findElement(By.css(locators.submitButton)).click();
}
async validatePageUrl(expectedUrl) {
const actualUrl = await this.driver.getCurrentUrl();
const res = expect(actualUrl).to.equal(expectedUrl);
return res;
}
async validatePageTitle(expectedTitle) {
const actualTitle = await this.driver.getTitle();
const res = expect(actualTitle).to.equal(expectedTitle);
return res;
}
async validateSuccessMessage() {
await this.validatePageText("successMessage");
}
async validateErrorMessage() {
await this.validatePageText("errorMessage");
}
async validateLoginPageHeading() {
await this.validatePageText("loginPageHeading");
}
async validateSecureAreaPageHeading() {
await this.validatePageText("secureAreaPageHeading");
}
async logout() {
await this.driver.findElement(By.css(locators.logoutButton)).click();
}
// common methods
async validatePageText(val) {
const element = await this.driver.findElement(By.css(locators[val]));
const txt = await element.getText();
const res = expect(txt).to.contain(data[val]);
return res;
}
}
module.exports = LoginPage;
```
### New Test File
```shell
/test/login.pom.spec.js
```
Add the following code
```js
// login.pom.spec.js
// page object model design pattern
// ===================
const { Builder } = require("selenium-webdriver");
const LoginPage = require("../pages/LoginPage");
const { data } = require("../resources/locators");
describe("Login page tests - POM, before() and after() hooks", function () {
let driver;
let loginPage;
before(async function () {
driver = await new Builder().forBrowser("chrome").build();
loginPage = new LoginPage(driver);
await loginPage.goto();
});
after(async function () {
if (driver) {
await driver.quit();
}
});
describe("1. Correct username and password", function () {
it("1.1. should show the secure area heading and success message", async function () {
await loginPage.validatePageTitle(data.pageTitle);
await loginPage.validatePageUrl(data.baseUrl);
await loginPage.loginAs(data.username, data.password);
await loginPage.validateSecureAreaPageHeading();
await loginPage.validateSuccessMessage();
await loginPage.logout();
await loginPage.validateLoginPageHeading();
});
});
describe("2. Incorrect username and/or password", function () {
it("2.1 should stay on Login page and show an error message", async function () {
await loginPage.loginAs("dummy", "dummy");
await loginPage.validateErrorMessage();
await loginPage.validateLoginPageHeading();
});
});
});
```
### Run New Test
```shell
npm test test/login.pom.spec.js
```
### View Results in Mochawesome Report

# Use this project
### clone to your machine
```shell
git clone https://github.com/kiseta/selenium-mocha.git
```
### Install Dependencies
open project in VSCode, run in Terminal
```shell
npm install
```
### Run tests
```shell
npm test
```
### Adding More Tests
* Add locators and data to locators.js file
* Add new page file i.e. FormPage.js and create FormPage Class in it
* Create corresponding methods in new FormPage Class
* Create new test file and build a sequence of steps and validations
* Run your tests!
Good luck! :rocket: :crossed_fingers: :four_leaf_clover: :thumbsup:
<hr />
## :bulb: About using `async` and `await` keywords
The `async` and `await` keywords are used to make WebDriver API calls that return promises, such as driver.findElement and driver.get, and wait for them to complete before continuing execution of the test.
By using `await` with these calls, we ensure that the test doesn't continue until the browser has finished loading the page or found the element we are looking for, and we can then interact with the page in a predictable way.
### Additional Resources:
- Mozilla Developer Network (MDN) has a great guide to async/await, which covers the basics of how they work and includes code examples. You can find it here: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Async_await
- The JavaScript.info website has an excellent in-depth tutorial on async/await, which covers topics like error handling, sequential and parallel execution, and more advanced concepts. You can find it here: https://javascript.info/async-await
- The Node.js documentation also has a section on async/await, which covers how to use them with Node.js APIs and modules. You can find it here: https://nodejs.org/en/knowledge/getting-started/control-flow/what-are-callbacks/#promises
## :crystal_ball: Troubleshooting
When creating methods in your class file make sure each method (function) name starts with **async** keyword, each step that interacts with application starts with the **await** keyword and when using the driver in class file refer to it using **this.driver** notation

| Selenium Mocha POM Test Automation Framework | javascript,mocha-chai,mochawesome,mochawesome-report,nodejs,pageobject-pattern,pageobjectmodel,selenium-webdriver | 2023-03-06T08:14:09Z | 2023-07-21T08:57:23Z | null | 1 | 0 | 48 | 0 | 2 | 2 | null | null | JavaScript |
Iniciativa-PRO/barber-shop-eq005 | main | # Barber Shop | Equipe - 05
## Iniciativa Pro
A Iniciativa PRO é um movimento criado por ex-alunos ONE que acreditam no aprendizado contínuo, que buscam ganhar conhecimentos e experiência para emergir no mercado de trabalho.
Saiba mais sobre em [Iniciativa-PRO · GitHub](https://github.com/Iniciativa-PRO).
## Sobre o projeto
Somos uma equipe formada por alunos da Turma 3 do Programa Oracle Next Education. Trabalhamos em equipe para implementar um site de agendamento da Barbearia Alura.
**As funcionalidades de usuário são:**
- Login;
- Agendamento;
- Reagendamento;
- Agenda/Calendário (lista de agendamentos).
**As tecnologias utilizadas são:**
- Desenvolvimento front-end;
- Desenvolvimento back-end;
- Banco de dados.
**Figma:** [Link do design](https://www.figma.com/file/DwhPS46WwLZZ8GyeABdl5L/Barbearia?node-id=0%3A1 "https://www.figma.com/file/DwhPS46WwLZZ8GyeABdl5L/Barbearia?node-id=0%3A1") (Chrysthian/Monica)
## Atenção
**Sobre o repositório -** Se você faz parte dessa equipe, lembre-se: crie uma branch para realizar os versionamentos de código (jamais realize um commit na branch main).
**Sobre as reuniões periódicas -** Reuniões na Sala de Bate Papo do Discord nos seguintes dias e horários:
- Segunda, quarta e sexta às 20:00 (15 minutos).
- Sábados às 20:00 (45 minutos).
<i>*Horários e dias pendentes de confirmação coletiva, dúvidas entre em contato.*</i>
## Equipe
- Bruno José Marques Da Silva (Lancelotti-Beta) · [GitHub](https://www.github.com/Lancelotti-beta) · [LinkedIn](https://www.linkedin.com/in/bruno-jose-front-end/)
- Ronnei Teixeira (RoniDev) · [GitHub](https://github.com/ronneiteixeira) · [LinkedIn](https://www.linkedin.com/in/ronnei-teixeira-316860179/)
- Alberto Moises (DevAlbertoMoiseis) · [GitHub](https://github.com/devalbertomoiseis) · [LinkedIn](https://www.linkedin.com/in/albertomoiseisdev/)
- Avner Caleb (AvnerCaleb) · [GitHub](https://github.com/avnercaleb) · [LinkedIn](https://www.linkedin.com/in/avner-caleb/)
- Antonio Alves do Rosário Junior (Arjios) · [GitHub](https://www.github.com/arjios)
- Victor Hugo Ferreira da Silva (EuVictorhfs) · [GitHub](https://www.github.com/euvictorhfs) · [LinkedIn](https://www.linkedin.com/in/victorhfs)
- Rafael Camilo de Oliveira (Rafael-co) · [GitHub](https://github.com/Rafael-co) · [LinkedIn](https://www.linkedin.com/in/rafael-camilo-developer)
| Barber Shop | css3,html5,javascript | 2023-03-05T15:31:36Z | 2023-03-17T00:50:46Z | null | 10 | 3 | 10 | 0 | 1 | 2 | null | MIT | CSS |
arthurqueiroz4/Gestao-de-comercio | main | # Gestão de Comércio
<h2>Documentação Back-end</h2>
//descricação do projeto
<h4>Produto</h4>
- Cadastro de produtos: (POST - /api/produtos))
- Funcionalidade: ao criar um produto com um código de barras que já existe, é retornado uma exception com código 400.
- Corpo do json:
- ```json
{
"codBarras":"123496789",
"descricao":"Biscoito Bono Sabor Chocolate 200g"
}
```
- Retorno: ```201 - Created```.
- Busca por produtos: (GET - /api/produtos)
- Funcionalidade: retorna todos os produtos cujo a descrição contém "Biscoito ".
- Corpo do json:
- ```json
{
"descricao":"Biscoito "
}
```
- Retorno: ```200 - OK```.
- Atualização do nome do produto: (PATCH - /api/produtos/nomeProduto)
- Corpo do json:
- ```json
{
"novoNome":"Biscoito Bono Sabor Chocolate 350g",
"codigoBarras":"123496789"
}
```
- Retorno: ```204 - No Content```
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
<h4> Mercado:</h4>
- Cadastro de usuario: (POST - /api/usuarios)
- Funcionalidade: ao criar um produto com um código de barras que já existe, é retornado uma exception com código 400.
- Corpo do json:
- ```json
{
"login":"java",
"cnpj":"0000000",
"senha":"123",
"admin":false
}
```
- Retorno: ```201 - Created```
- Autenticação de Mercado: (POST - /api/usuarios/auth)
- Funcionalidade: Recebe um usuario e uma senha e retorna o login e o Token JWT.
- Corpo do json:
- ```json
{
"login":"java",
"senha":"123"
}
```
- Retorno: ```200 - OK```
- Busca por usuário: (GET - /api/usuarios)
- Funcionalidade: retorna um json com o login e o admin.
- Corpo do json:
- ```json
{
"login":"java"
}
```
- Retorno: ```200 - OK```.
- Deletar usuário: (DELETE- /api/usuarios)
- Funcionamento: ao passar o login (string) pelo path, ela é deletada no banco de dados.
- Corpo do json:
- ```json
{
"login":"java"
}
```
- Retorno: ```204 - No Content```
- Mudar senha: (PATCH - /api/usuarios)
- Corpo do json:
- ```json
{
"login":"java",
"cnpj":"0000000",
"senha":"1234"
}
```
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
<h4> ESTOQUE - Documentação da api:</h4>
- Cadastro de estoque: (POST - /api/estoque)
- Funcionamento: ao passar o json, é necessário que o nome do Mercado e o código de barras passados já tenha sido previamente cadastros, caso contrário, a api retornará ```404 - NOT FOUND```.
- Corpo do json:
- ```json
{
"codigoBarras":"123498709",
"nomeMercado":"java",
"quantidade":10,
"precoUnitario":3.5
}
```
- Retorno: ```201 - Created```.
- Atualização do estoque: (PUT - /api/estoque)
- Funcionamento: é necessário ter o atributo quantidade ou precoUnitario, mas não é necessário passar os dois ao mesmo tempo. É possível atualizar somente a quantidade ou somente o precoUnitario, basta passar o atributo que irá atualizar e o outro nulo ou não passar. Se o atributo codigoBarras ou nomeMercado não forem encontrados no banco de dados será retornado ```404 - NOT FOUND```.
- Corpo json:
- ```json
{
"codigoBarras":"123438700",
"nomeMercado":"java2",
"quantidade":1,
"precoUnitario":null
}
```
- Retorno: ```200 - OK```
- Listar o estoque de um Mercado: (GET - /api/estoque)
- Funcionamento: será retornado sempre uma lista, se o Mercado passado tiver estoque cadastrado, então a lista estará composta pelos estoques encontrados.
- Corpo json:
- ```json
{
"login":"java03"
}
```
- Retorno ```200 - OK```.
- Verificar venda: (GET - /api/estoque/verificar)
- Funcionamento: Verifica se o produto passado existe no estoque do mercado e se tiver, é verificado se a quantidade que tem no banco é maior na quantidade passada.
- Corpo json:
- ```json
{
"codigoBarras":"7891991010086",
"quantidade":100,
"login":"JAVA35"
}
```
- Retorno: ```204 - NO CONTENT```
- Vender produto: (GET - /api/estoque/vender)
- Funcionamento: vai no estoque do mercado passado e retira a quantidade que foi passada do banco. Dentro do "list" é passado um Array de objeto que possui duas chaves: "codigoBarras" e "quantidade.
- Corpo json:
- ```json
{
"login":"JAVA35",
"list":[
{
"codigoBarras":"7891991010086",
"quantidade":9
},
{
"codigoBarras":"7891000100106",
"quantidade":8
}
]
}
```
- Retorno: ```200 - OK```
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
<h4>Vendas:</h4>
- Listar vendas pelo Mercado: (GET - /api/vendas?login=***)
- Funcionamento: ao passar o nome do Mercado é retornado todas as vendas daquele mercado.
- Retorno: ```200 - OK```
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
<h4>Autorizações:</h4>
- Há duas roles: ADMIN e USER.
- ADMIN tem acesso a todos end-points.
- USER não tem autorização de apagar um Mercado, mas tem acesso ao restante dos end-points.
- Passar no Header --> *header* = Authorization e *value* = Bearer {token}.
- Token expira em 30min desde a geração do próprio.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
<h4>Organizaçao e relação das tabelas no banco de dados</h4>
<img src="https://user-images.githubusercontent.com/110779984/232353340-4c44c421-45c2-45ae-82d3-65965000147c.png">
| Projeto feito com Spring Framework e Bootstrap possui o intuito de auxíliar comércios na organização de estoque e vendas. | java,spring,rest,bootstrap,javascript,postgresql | 2023-03-10T21:39:41Z | 2023-06-13T18:58:48Z | null | 3 | 28 | 135 | 1 | 1 | 2 | null | null | Java |
tigmansh/short-rod-3165 | main | # short-rod-3165
Team Project JS201 (Quikr Clone)
## Features
<b>Featured Products</b>
| Feature | Coded? | Description |
|----------|:-------------:|:-------------|
| Add a Product | ✔ | Ability of Add a Product on the System |
| List Products | ✔ | Ability of List Products |
| Edit a Product | ✔ | Ability of Edit a Product |
| Delete a Product | ✔ | Ability of Delete a Product |
| Stock | ✔ | Ability of Update the Stock |
| Stock History | ✔ | Ability to see the Stock History |
<b>Purchase Features</b>
| Feature | Coded? | Description |
|----------|:-------------:|:-------------|
| Create a Cart | ✔ | Ability of Create a new Cart |
| See Cart | ✔ | Ability to see the Cart and it items |
| Remove a Cart | ✔ | Ability of Remove a Cart |
| Add Item | ✔ | Ability of add a new Item on the Cart |
| Remove a Item | ✔ | Ability of Remove a Item from the Cart |
| Checkout | ✔ | Ability to Checkout |
Navigation: The website has a clear and intuitive navigation menu that allows users to easily find the products they are looking for. The menu includes links to the different product categories, as well as a link to the cart and the account page.
**Navigation Bar**

**Megamenu Bar**

**Login Page**

Catalog: The product catalog displays all the products available on the website, organized by category. Users can filter the products by price, brand, or other attributes to find the products they are looking for. Each product in the catalog includes an image, a title, a brief description, and the price.
**Catalog**

Product Page: The product page provides detailed information about the product, including images, description, features, and reviews. Users can also select the quantity and add the product to their cart from this page.
**Mobiles**

**Furnitures**

Shopping Cart: The shopping cart page shows the items that the user has added to the cart, the total price, and the option to proceed to checkout. Users can also update the quantity of items in the cart or remove items from the cart from this page.
**Shopping Cart**

Checkout: The checkout page allows users to enter their shipping and billing information, select a shipping method, and make the payment. The website supports multiple payment methods, such as credit card and PayPal.
**Checkout**

Customer account: The website also includes a customer account functionality that allows users to view their order history, update their personal information, and see their wish list.
**Order Page**

Admin portal: The website's admin portal allows the website owner to manage the products, inventory, orders, and customers. It also provides analytics and reports on the website's performance and user activity.
**Admin Portal**

Security: The website uses encryption and secure connections to protect the user's personal and payment information. It also implements standard security measures to protect against data breaches and unauthorized access.
Support: The website provides a contact page with an email address and a phone number where users can reach out to the website's support team with any questions or issues. The website also includes a FAQ page and a knowledgebase where users can find answers to common questions.
Overall, this website provides a comprehensive e-commerce platform that is easy to use, well-designed, and secure. It provides all the necessary features for an e-commerce website and it is designed to provide a great user experience for the customers.
| Team Project JS201 (Quikr Clone) | css,firebase-auth,html5,javascript,sweetalert | 2023-03-07T09:44:26Z | 2023-02-06T13:09:28Z | null | 5 | 0 | 75 | 0 | 0 | 2 | null | null | HTML |
dissorial/Reprex | master | # Reprex
Reprex is a online database of exercise built with TypeScript, React, RapidAPI, and TailwindCSS. The project allows users to search for and filter exercises by target muscle, available equipment and body part.
The project makes use of [ExerciseDB API](https://rapidapi.com/justin-WFnsXH_t6/api/exercisedb) to access the fetch exercise data.






| Online database of exercise built with JavaScript, React, RapidAPI, and TailwindCSS. | javascript,rapidapi,reactjs,tailwindcss,react,tailwind,typescript | 2023-02-28T02:42:31Z | 2023-05-28T18:38:08Z | null | 1 | 0 | 8 | 0 | 0 | 2 | null | null | TypeScript |
ShahariarRahman/javascript-for-backend | main | ## Javascript For Backend Development
- [Synchronous vs Asynchronous Node.js](https://github.com/ShahariarRahman/javascript-for-backend-development/tree/main/Synchronous%20vs%20Asynchronous%20Node.js)
- [Promises and Handling Multiple Promises](https://github.com/ShahariarRahman/javascript-for-backend-development/tree/main/Promises%20and%20Handling%20Multiple%20Promises)
- [Async Await](https://github.com/ShahariarRahman/javascript-for-backend-development/tree/main/Async%20Await)
- [Errors and Error Handling](https://github.com/ShahariarRahman/javascript-for-backend-development/tree/main/Errors%20and%20Error%20Handling)
- [Import Export](https://github.com/ShahariarRahman/javascript-for-backend-development/tree/main/Import%20Export)
| Javascript Basic Concepts For Backend Development | javascript | 2023-02-28T20:37:14Z | 2023-03-03T06:57:22Z | null | 1 | 0 | 41 | 0 | 0 | 2 | null | null | JavaScript |
AbtahiHasan/phone-hunter | main | # phone-hunter
i am create this website using html tailwind and javascript or es6 api
live url https://abtahihasan.github.io/phone-hunter
| i am create this website using html tailwind and javascript or es6 api | api,es6,javascript,javascript-project | 2023-02-25T17:51:19Z | 2023-02-25T19:30:26Z | null | 1 | 0 | 6 | 0 | 0 | 2 | null | null | HTML |
nisha270/nisha270.github.io | main | null | Personal Portfolio Website. Don't Need Much Info About It, Just Scroll Down. You're Here Only! | css,html5,javascript | 2023-03-07T19:53:08Z | 2023-07-18T17:26:20Z | null | 1 | 0 | 53 | 0 | 0 | 2 | null | null | CSS |
presh-031/tweeter | main | 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 `pages/index.tsx`. The page auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
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.
| Blazingly fast and real-time Twitter clone powered by NEXT.js, TYPESCRIPT and FIREBASE for users to experience real-time updates, sleek design, and seamless interactions in this modern social media platform. Tweet, connect, and engage effortlessly! Built with:, NEXT.js, TYPESCRIPT, REACT.js, TAILWIND, REACT-HOOK-FORM, YUP, REACT-HOT-TOAST. | firebase,javascript,nextjs,react,react-firebase-hooks,tailwind,typescript | 2023-03-04T20:02:39Z | 2023-09-30T23:17:28Z | null | 1 | 0 | 222 | 0 | 0 | 2 | null | null | TypeScript |
Ferst1/Webstudio | main | # goit-markup-hw-01
| Webstudio-Seit-adaptive | css,html,javascript | 2023-03-05T13:24:56Z | 2023-12-03T19:35:50Z | null | 1 | 0 | 17 | 0 | 0 | 2 | null | null | CSS |
younusaliakash/vanilla-js-speeh-to-text-reader | master | ## Speech Text Reader
A text to speech app for non-verbal people. Pre-made buttons and custom text speech. This project uses the Web Speech API
## Project Specifications
- Create responsive UI (CSS Grid) with picture buttons
- Speaks the text when button clicked
- Drop down custom text to speech
- Speaks the text typed in
- Change voices and accents
<img src="./speech-text-reader.png" alt="speech to text reader">
| A text to speech app for non-verbal people. Pre-made buttons and custom text speech. This project uses the Web Speech API | css,dom,html,javascript,speech-synthesis | 2023-03-06T17:51:11Z | 2023-04-04T11:05:40Z | null | 1 | 0 | 2 | 0 | 0 | 2 | null | null | JavaScript |
beginner-cryptonyx/Study-Page | main | # About :
Small project I have worked on to store formulae from the various textbooks I use/need
The Main goal, which was to get hands on with reach is full-filled
Will receive regular updates | A Website For Storing My School Stuff | css,excel,formulae,html,javascript,js,textbooks,nodejs,npm,postcss | 2023-03-10T17:48:54Z | 2023-12-25T09:01:04Z | null | 2 | 5 | 201 | 0 | 0 | 2 | null | null | TypeScript |
ICEI-PUC-Minas-PMV-ADS/pmv-ads-2023-1-e1-proj-web-t12-Scholar-Planner | main | # Scholar Planner
`Análise e Desenvolvimento de Sistemas`
`Projeto: Densenvolvimento de Aplicação Web Front-end - Turma 12`
`1º Semestre DE 2023`
Uma aplicação de gerenciamento de tarefas para estudantes universitários que oferece recursos como um organizador de atividades pendentes e concluídas, permitindo que eles rastreiem o progresso e o andamento de suas tarefas. Além disso, a função de crônometro "Focus Time" para ajudá-los a manter o foco e a concentração em momentos específicos, aumentando a produtividade e o aproveitamento do tempo disponível. Com uma aplicação fácil de usar e personalizável, os estudantes universitários podem se sentir mais organizados e eficientes em suas tarefas acadêmicas e extracurriculares.
## Integrantes
* João Leonardo Ohasi Amorim
* Shigery França Dutra Sasaki
* Mirella Gabriela Silva Bonutty De Freitas
* Lucas Marlon Oliveira De Jesus
* Alice Coelho de Moura
* Renan Stankevicius
## Orientador
* Marcos Andre Silveira Kutova
## Instruções de utilização
[Tutorial](https://www.youtube.com/watch?v=wUMEPKcWEeY)
# Documentação
<ol>
<li><a href="docs/01-Documentação de Contexto.md"> Documentação de Contexto</a></li>
<li><a href="docs/02-Especificação do Projeto.md"> Especificação do Projeto</a></li>
<li><a href="docs/03-Metodologia.md"> Metodologia</a></li>
<li><a href="docs/04-Projeto de Interface.md"> Projeto de Interface</a></li>
<li><a href="docs/05-Arquitetura da Solução.md"> Arquitetura da Solução</a></li>
<li><a href="docs/06-Template padrão do Site.md"> Template padrão do Site</a></li>
<li><a href="docs/07-Programação de Funcionalidades.md"> Programação de Funcionalidades</a></li>
<li><a href="docs/08-Plano de Testes de Software.md"> Plano de Testes de Software</a></li>
<li><a href="docs/09-Registro de Testes de Software.md"> Registro de Testes de Software</a></li>
<li><a href="docs/10-Apresentação do Projeto.md"> Apresentação do Projeto</a></li>
<li><a href="docs/11-Referências.md"> Referências</a></li>
</ol>
# Hospedagem
* [Scholar Planner](https://icei-puc-minas-pmv-ads.github.io/pmv-ads-2023-1-e1-proj-web-t12-Scholar-Planner/src/index.html)
# Armazenamento do Código-Fonte
* <a href="src/README.md">Código Fonte</a>
# Armazenamento da Apresentação
* <a href="presentation/README.md">Apresentação da solução</a>
| Uma aplicação de gerenciamento de tarefas para estudantes universitários que oferece recursos como um organizador de atividades pendentes e concluídas, permitindo que eles rastreiem o progresso e o andamento de suas tarefas. | css,html,javascript | 2023-03-02T00:21:02Z | 2023-08-23T23:13:02Z | null | 41 | 27 | 263 | 2 | 7 | 2 | null | null | CSS |
AnkitMajee/SwasthHelp | main | # MedCare
Google Solution Challenge Project
#### Deployed
- [swasthhelp.web.app](https://swasthhelp.web.app)
#### Links
- [CONTRIBUTING.md](docs/CONTRIBUTING.md)
- [Web App APK](https://github.com/CinexSoft/swasthhelpapk/blob/main/Apks/SwasthHelp.apk)
- [swasthhelp.web.app/test.html](https://swasthhelp.web.app/test.html)
| Google Solution Challenge Project | css,firebase,html5,javascript | 2023-02-26T18:05:48Z | 2023-03-31T16:57:17Z | null | 4 | 15 | 160 | 0 | 0 | 2 | null | null | HTML |
alexanyernas/Work-Portfolio | main | # Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
## Recommended IDE Setup
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
| Desarrollo de portafolio personal de trabajo utilizando Vue.js 3, Vuetify, Vue-Route, i18n, entre otros. | i18n,javascript,vue-router,vue3,vuetify | 2023-03-08T01:51:40Z | 2023-03-08T17:45:09Z | null | 1 | 1 | 3 | 0 | 0 | 2 | null | null | Vue |
Faizarabhi/Moroccan_Freight_Network | main | null | La société MFN connecte les transitaires du Royaume Chérifien du Maroc avec une large gamme d'outils conçus pour une mise en réseau réussie (Application Mobile MFN). | javascript,mongodb,nodejs,react,react-native | 2023-03-09T17:34:13Z | 2023-03-24T14:32:59Z | null | 1 | 0 | 14 | 0 | 0 | 2 | null | null | TypeScript |
anamiikajha/University_website | main | # University-website
Simple multi-page wesbite with pure vanilla HTML, CSS, JavaScript
# University-website Preview
- Home page overview
>

>
- Responsive home-page navbar overview
>

>
- Courses overview

>
- Campus insights overview
>

>
- Facility overview
>

>
- Testimonials overview
>

>
- Onlines courses and about overview
>

>
| Simple responsive university wesbite design. | javascript,html-css | 2023-03-02T15:22:44Z | 2023-10-06T17:42:09Z | null | 1 | 0 | 32 | 0 | 0 | 2 | null | null | HTML |
shotit/shotit-frontend | main | # shotit-frontend
The frontend of shotit, with full documentation.
# Website
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
### Installation
```
$ yarn
```
### Local Development
```
$ yarn start
```
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
### Build
```
$ yarn build
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.
### Deployment
Using SSH:
```
$ USE_SSH=true yarn deploy
```
Not using SSH:
```
$ For Linux/OSX:
$ GIT_USER=<Your GitHub username> yarn deploy
$ For Windows:
$ cmd /C "set "GIT_USER=<GITHUB_USERNAME>" && yarn deploy"
```
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
| The frontend of shotit, with full documentation. | anns,approximate-nearest-neighbor-search,distributed,embedding-similarity,faiss,image-search,javascript,liresolr,nearest-neighbor-search,node | 2023-02-26T16:54:00Z | 2024-02-26T11:36:07Z | null | 1 | 33 | 103 | 1 | 0 | 2 | null | Apache-2.0 | MDX |
bamarcheti/blog-next | main | # __Fullstack App With Strapi and Nextjs__
Projeto construído em curso pela Digital Ocean para o desenvolvimento de um Fullstack App com Strapi e Next.js.
**[🔗 Clique aqui para acessar o repositório com o Strapi](https://github.com/Bamarcheti/fullstack-strapi-nextjs)**
## **🛠 Tecnologias**
>### *Server*


>### *Frontend*




>### *Bibliotecas e Ferramentas*



# **✨ Como executar**
- **_[README-install](./README-install.md)_**
## **💛 Contato**
[<img src='https://img.shields.io/badge/website-000000?style=for-the-badge&logo=About&logoColor=white' alt='Website' height='30'>](https://my-resume-bamarcheti.vercel.app/)
[<img src='https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white' alt='Discord' height='30'>](https://discord.com/channels/@ba_marcheti#3824)
[<img src='https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge&logo=instagram&logoColor=white' alt='Instagram' height='30'>](https://www.instagram.com/ba_marcheti)
[<img src='https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white' alt='Linkedin' height='30'>](https://www.linkedin.com/in/barbara-marcheti-fiorin/)
[<img src='https://img.shields.io/badge/Gmail-D14836?style=for-the-badge&logo=gmail&logoColor=white' alt='Gmail' height='30'>](bmarchetifiorin@gmail.com)
| Projeto construído em curso pela Digital Ocean para o desenvolvimento de um Fullstack App com Strapi e Next.js. | css,html,insomnia,javascript,nextjs,nodejs,strapi | 2023-02-28T01:05:40Z | 2024-01-09T20:46:32Z | null | 1 | 0 | 10 | 0 | 0 | 2 | null | null | CSS |
DreaUltimate/Project_Morent | main | # Morent
| Web-based platform that allows users to search, book, and manage car rentals from various providers, providing a convenient and efficient solution for transportation needs. | car-rental,javascript,reactjs | 2023-03-05T04:52:43Z | 2023-03-06T11:35:06Z | null | 1 | 0 | 3 | 0 | 0 | 2 | null | null | JavaScript |
MariferVL/Outsy | main | <div id="volver"></div>
<br/>
<div align="center">
<img src="https://user-images.githubusercontent.com/99364311/235281958-f39c0eee-4f47-4cef-b98b-2c8c734abefe.png" alt="Logo" width="660px">
<br/>
<br/>
<br/>
<b>Autoras</b>
<br/>
[Gabriela Gomez](https://github.com/GaabsG)<br/>
[María-Fernanda Villalobos](https://github.com/MariferVL) <br/>
[Xóchitl Jara](https://github.com/Xoch09)
<br/>
<p align="center">
</summary>
<br/>
<br/>
<a href="https://github.com/MariferVL/Outsy" target="_blank"><strong>Acceso a Documentos »</strong></a>
<br/>
<a href="https://outsy.web.app/" target="_blank"><strong>Acceso a Despliegue »</strong></a>
<br/>
</p>
</div>
<br/>
<br/>
## Índice
* [1. Acerca del proyecto](#1-acerca-del-proyecto)
* [2. Objetivos de aprendizaje cumplidos](#2-objetivos-de-aprendizaje-cumplidos)
* [3. Proyecto](#3-proyecto)
* [4. Demo](#4-demo)
* [5. Referencias](#5-referencias)
***
## 1. Acerca del proyecto
El proyecto "Outsy" es una aplicación de red social que tiene como objetivo reconectar a las personas a través de eventos sociales. Con el uso de Firebase y Firestore, se crea un perfil en la aplicación donde los usuarios pueden publicar eventos sociales a los que les gustaría asistir y buscar compañeros para acompañarlos. En cada publicación, se pueden agregar toda la información necesaria del evento y una foto para captar la atención de los usuarios de Outsy. Además, los usuarios pueden recibir comentarios y reacciones de interés sobre su evento. En caso de no estar satisfecho con un evento, se puede editar o eliminar. "Outsy" utiliza tecnologías como Firestore, Firebase, HTML, CSS, Bootstrap y JavaScript para brindar una experiencia intuitiva y atractiva.
Únete a "Outsy" y descubre nuevas conexiones sociales a través de eventos inolvidables.
### Lenguaje de programación
- [Javascript](https://www.javascript.com/)
### Framework
- [Bootstrap](https://getbootstrap.com/)
<br/>
<p align="left"><a href="#volver">Volver</a></p>
## 2. Objetivos de aprendizaje cumplidos
<summary>Mediante la estructuración y creación de este proyecto logramos<b> adquirir conocimientos</b> en las siguientes temáticas:</summary>
<details>
<br/>
<summary>1. CSS</summary>
<ul>
<li>
- [x] Uso de selectores de CSS
</li>
<li>
- [x] Modelo de caja (box model): borde, margen, padding
</li>
<li>
- [x] Uso de flexbox en CSS
</li>
<li>
- [x] Uso de flexbox en CSS
</li>
<li>
- [x] Uso de CSS Grid Layout
</li>
</ul>
</details>
<details>
<summary>2. Web APIs</summary>
<ul>
<li>
- [x] Uso de selectores del DOM
</li>
<li>
- [x] Manejo de eventos del DOM (listeners, propagación, delegación)
</li>
<li>
- [x] Manipulación dinámica del DOM
</li>
<li>
- [x] Ruteado
</li>
</ul>
</details>
<details>
<summary>3. JavaScript</summary>
<ul>
<li>
- [x] Arrays (arreglos)
</li>
<li>
- [x] Objetos (key, value)
</li>
<li>
- [x] Diferenciar entre tipos de datos primitivos y no primitivos
</li>
<li>
- [x] Variables (declaración, asignación, ámbito)
</li>
<li>
- [x] Uso de condicionales (if-else, switch, operador ternario, lógica booleana)
</li>
<li>
- [x] Uso de bucles/ciclos (while, for, for..of)
</li>
<li>
- [x] Funciones (params, args, return)
</li>
<li>
- [x] Pruebas unitarias (unit tests)
</li>
<li>
- [x] Uso de mocks y espías
</li>
<li>
- [x] Módulos de ECMAScript (ES Modules)
</li>
<li>
- [x] Uso de linter (ESLINT)
</li>
<li>
- [x] Uso de identificadores descriptivos (Nomenclatura y Semántica)
</li>
<li>
- [x] Diferenciar entre expresiones (expressions) y sentencias (statements)
</li>
<li>
- [x] Callbacks
</li>
<li>
- [x] Promesas
</li>
</ul>
</details>
<details>
<summary>4. Control de Versiones (Git y GitHub)</summary>
<ul>
<li>
- [x] Git: Instalación y configuración
</li>
<li>
- [x] Git: Control de versiones con git (init, clone, add, commit, status, push, pull, remote)
</li>
<li>
- [x] Git: Integración de cambios entre ramas (branch, checkout, fetch, merge, reset, rebase, tag)
</li>
<li>
- [x] GitHub: Creación de cuenta y repos, configuración de llaves SSH
</li>
<li>
- [x] GitHub: Despliegue con GitHub Pages
</li>
<li>
- [x] GitHub: Colaboración en Github (branches | forks | pull requests | code review | tags)
</li>
<li>
- [x] GitHub: Organización en Github (projects | issues | labels | milestones | releases)
</li>
</ul>
</details>
<details>
<summary>5. Centrado en el usuario</summary>
<ul>
<li>
- [x] Diseñar y desarrollar un producto o servicio poniendo a las usuarias en el centro
</li>
</ul>
</details>
<details>
<summary>6. Diseño de producto</summary>
<ul>
<li>
- [x] Crear prototipos de alta fidelidad que incluyan interacciones
</li>
<li>
- [x] Seguir los principios básicos de diseño visual
</li>
</ul>
</details>
<details>
<summary>7. Investigación</summary>
<ul>
<li>
- [x] Planear y ejecutar testeos de usabilidad de prototipos en distintos niveles de fidelidad
</li>
</ul>
</details>
<details>
<summary>8. Firebase</summary>
<ul>
<li>
- [x] Firebase Auth
</li>
<li>
- [x] Firestore
</li>
</ul>
</details>
<br/>
<br/>
## 3. Proyecto
<details>
<summary><b>Hito 1</b></summary>
<ul>
<li>
- [x] Pasa linter (npm run pretest)
</li>
<li>
- [x] Pasa tests (npm test)
</li>
<li>
- [x] Pruebas unitarias cubren un mínimo del 70% de statements, functions y lines y branches
</li>
<li>
- [x] Incluye Definición del producto clara e informativa en README
</li>
<li>
- [x] Incluye historias de usuario en README
</li>
<li>
- [x] Incluye sketch de la solución (prototipo de baja fidelidad) en README
</li>
<li>
- [x] Incluye Diseño de la Interfaz de Usuario (prototipo de alta fidelidad) en README
</li>
<li>
- [x] Incluye el listado de problemas que detectaste a través de tests de usabilidad en el README
</li>
<li>
- [x] UI: Muestra lista y/o tabla con datos y/o indicadores
</li>
<li>
- [x] UI: Permite ordenar data por uno o más campos (asc y desc)
</li>
<li>
- [x] UI: Permite filtrar data en base a una condición
</li>
<li>
- [x] UI: Es responsive
</li>
</ul>
</details>
<br/>
<br/>
### Modelo de Negocio Canvas
<div align="center">
<img height="440" alt="modelo canvas" src="https://user-images.githubusercontent.com/99364311/225202517-9fa7e231-015d-494e-8f4c-2b442217941e.svg">
<br/>
<br/>
</div>
### Historias de Usuario
<details>
<summary><b>Usuario 1</b></summary>
<ul>
<li> Yo como estudiante universitario quiero saber donde se realizan eventos culturales de muestra de obras artísticas para poder asistir e invitar a mis amigos. </li>
</ul>
<ol> <b>Criterios de Aceptación</b>
<li>Se puede registrar a la aplicación utilizando su correo </li>
<li>Puede agregar a personas a la app </li>
<li>Comparte imágenes, y post</li>
<li>Puede buscar eventos e información de otras personas</li>
</ol>
<ul> <b> Definición de terminado </b>
<li>Debe ser una SPA.</li>
<li>Debe ser responsive.</li>
<li>Deben haber recibido code review de al menos una compañera de otro equipo.</li>
<li>Hicieron los test unitarios</li>
<li>Testearon manualmente buscando errores e imperfecciones simples.</li>
<li>Hicieron pruebas de usabilidad e incorporaron el feedback de los usuarios como mejoras.</li>
<li>Desplegaron su aplicación y etiquetaron la versión (git tag)</li>
</ul>
</details>
<details>
<summary><b>Usuario 2</b></summary>
<ul>
<li>Yo como trabajadora en oficina quiero saber qué planes tienen mis compañeros para salir de casa, mirar sus post y ponerme de acuerdo con ellos.</li>
</ul>
<ol> <b>Criterios de aceptación </b>
<li>Se puede registrar a la aplicación utilizando su correo</li>
<li>Puede agregar a personas a la app</li>
<li>Comparte imágenes, y post</li>
<li>Puede buscar eventos e información de otras personas</li>
<li>Puede ponerse en contacto con mas personas agregadas a su red</li>
<li></li>
</ol>
<ul> <b> Definición de terminado </b>
<li>Debe ser una SPA.</li>
<li>Debe ser responsive.</li>
<li>Deben haber recibido code review de al menos una compañera de otro equipo.</li>
<li>Hicieron los test unitarios</li>
<li>Testearon manualmente buscando errores e imperfecciones simples.</li>
<li>Hicieron pruebas de usabilidad e incorporaron el feedback de los usuarios como mejoras.</li>
<li>Desplegaron su aplicación y etiquetaron la versión (git tag)</li>
</ul>
</details>
<details>
<summary><b>Usuario 3</b></summary>
<ul>
<li>Yo como usuario de redes sociales quiero poder, dar like a los post y poderlos eliminar, y poder llevar un conteo de los likes que recibo.</li>
</ul>
<ol> <b> Criterios de aceptación </b>
<li>Se puede registrar a la aplicación utilizando su correo</li>
<li>Puede agregar a personas a la app</li>
<li>Comparte imágenes, y post</li>
<li>Puede dar y quitar likes</li>
<li>Lleva un conteo de likes</li>
<li>Puede eliminar un post</li>
<li>Recibe confirmación para eliminar un post</li>
</ol>
<ul> <b> Definición de terminado </b>
<li>Debe ser una SPA.</li>
<li>Debe ser responsive.</li>
<li>Deben haber recibido code review de al menos una compañera de otro equipo.</li>
<li>Hicieron los test unitarios</li>
<li>Testearon manualmente buscando errores e imperfecciones simples.</li>
<li>Hicieron pruebas de usabilidad e incorporaron el feedback de los usuarios como mejoras.</li>
<li>Desplegaron su aplicación y etiquetaron la versión (git tag)</li>
</ul>
</details>
<br/>
<br/>
### Prototipo de baja y alta fidelidad
<div align="center">
<img height="350" alt="prototipo baja fidelidad" src="https://raw.githubusercontent.com/MariferVL/Social-Network/main/src/images/Prototipobaja1.jpg">
<img height="350" alt="prototipo-alta-fidelidad" src="https://user-images.githubusercontent.com/120422565/225206876-dd363d2b-8a01-475d-a666-dd0603437e5e.svg">
<br/>
</div>
<br/>
<p align="left"><a href="#volver">Volver</a></p>
<br/>
## 4. Demo
<br/>
https://user-images.githubusercontent.com/99364311/235281995-30663797-3afa-4d6d-887d-11dbd15d29b2.mp4
<br/>
<p align="left"><a href="#volver">Volver</a></p>
## 5. Referencias
- [StackOverflow](https://stackoverflow.com/)
- [MDN WebDocs](https://developer.mozilla.org/en-US/)
- [W3Schools](https://www.w3schools.com/)
- [Programiz](https://www.programiz.com/)
- [Geeks for Geeks](https://www.geeksforgeeks.org/)
<p align="left"><a href="#volver">Volver</a></p>
| "Outsy" is a social network app that reconnects people through social events. Create a profile, publish events, and find companions. With HTML, CSS, Bootstrap, Firebase and JS, it's user-friendly. Receive comments and reactions. Edit or delete events as needed. Join Outsy and rediscover social connections. | css,firebase,firestore,javascript,bootstrap5,html5 | 2023-03-08T03:09:15Z | 2023-05-19T03:33:35Z | null | 3 | 51 | 334 | 0 | 2 | 2 | null | null | JavaScript |
softenguvu/chess-se | main | # ♘ Chess SE
[Chess SE](https://chess-se.netlify.app/) is a browser-based two-player chess game that
is meant to be played by two people on the same device. The game was developed as an
exercise in Software Engineering, including **requirements engineering**, **architectural
design**, **agile software development**, and **testing**, all through **scrum**. The technologies
used for the project include `HTML`, `CSS`, `JavaScript (ES6)`, `Bootstrap (v5.2)`,
and `QUnit (v2.19)`.
## Developed by...
- [Jacob Bañuelos](https://github.com/jbeBan)
- Natalina Mateaki
- Jason McMillan
- Braden Hintze
- Kyle Tanner
| A browser-based two-player chess game. | css,html,javascript,qunit,bootstrap | 2023-02-25T23:07:59Z | 2023-04-27T00:29:57Z | null | 5 | 83 | 329 | 0 | 0 | 2 | null | GPL-3.0 | CSS |
amanindian/Add-to-Cart | master | # Add-to-Cart
Hi everyone, this is my first simple React JS project "Add-to-Cart".
# Technologies Used
HTML
CSS
JavaScript
Bootstrap
React JS
# Description
This "Add-to-Cart" page is a fully functional project that allows users to add products to the cart with their name and price, increment and decrement the quantity of each product, remove products from the cart, calculate the total amount, and reset the quantity.
# Installation
Clone this repository: git clone https://github.com/amanindian/Add-to-Cart.git
Install the dependencies: npm install
Start the development server: npm start
Open your browser and go to http://localhost:3000
# Usages/Features
Enter product details such as name and price and click on the "Add Product" button to add them to the cart.
Use the "+" and "-" buttons to increment or decrement the quantity of each product in the cart.
Click on the "Remove" button to remove a product from the cart.
The "Total" section will display the calculated total amount of all products in the cart.
Use the "Reset" button to reset the quantity of all products in the cart to zero.
# Deployment
This project is deployed on Netlify at https://amanaddtocart.netlify.app/
# Credits
This project was created by Aman Kumar.
# License
This project is licensed under the MIT License. See the LICENSE file for more details. | Add to Cart page of E-Commerce Website | addtocart,ecommerce,javascript,reactjs | 2023-02-27T07:38:53Z | 2023-04-04T06:07:44Z | null | 1 | 0 | 5 | 0 | 0 | 2 | null | null | JavaScript |
fuadmoin/TODOLIST | master | <a name="readme-top"></a>
<div align="center">
<img src="./img/logo2.png" alt="logo" width="140" height="auto" />
<br/>
<h3><b>To-do List</b></h3>
</div>
# 📗 Table of Contents
- [📖 About the Project](#about-project)
- [🛠 Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [💻 Getting Started](#getting-started)
- [Setup](#setup)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Deployment](#triangular_flag_on_post-deployment)
- [👥 Authors](#authors)
- [🔭 Future Features](#future-features)
- [🤝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [🙏 Acknowledgements](#acknowledgements)
- [📝 License](#license)
# 📖 To Do List <a name="about-project"></a>
**To-Do List** is a simple project built to help users stay organized, productive, and motivated in their work and life. Users can create tasks. The created tasks will be saved to local storage and will be displayed. Then, users can edit and mark tasks as complete on the website. They can also delete a single task or multiple tasks at once.
## 🛠 Built With <a name="built-with"></a>
### Tech Stack <a name="tech-stack"></a>
- **HTML, CSS, and JavaScript**
### Key Features <a name="key-features"></a>
- **HTML styled with css and javascript**
- **Uses webpack**
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 🚀 Live Demo <a name="live-demo"> </a>
> Check out the live demo for this project [here](https://fuadmoin.github.io/TODOLIST/dist/).
<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.
### Prerequisites
Web Browser, Code Editor.
### Setup
Clone this repository to your desired folder:
Example commands:
```sh
cd my-folder
git clone https://github.com/fuadmoin/TODOLIST.git
```
### Install
VS CODE
### Usage
```
code .
open the index file with live server
```
### Run tests
change the value of the index to see if the order of the task is being changed.
### Deployment
You can deploy this project using Github-Page.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 👥 Author <a name="authors"></a>
👤 **Fuad Abdlemoin**
- GitHub: [@fuadmoin](https://github.com/fuadmoin)
- Twitter: [@Fuad01804580](https://twitter.com/Fuad01804580)
- LinkedIn: [Fuad Moin](https://www.linkedin.com/in/fuad-moin-a7b126259/)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 🔭 Future Features <a name="future-features"></a>
- [ ] **[users will be able to input tasks]**
- [ ] **[tasks will be displayed based on their order]**
- [ ] **[users will be able to delete tasks that are completed]**
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 🤝 Contributing <a name="contributing"></a>
Contributions, [issues](https://github.com/fuadmoin/TODOLIST/issues), and feature requests are welcome!
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## ⭐️ Show your support <a name="support"></a>
If you like this project please consider starring it.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 🙏 Acknowledgments <a name="acknowledgements"></a>
I would like to thank my coding partner [@Baqar](https://github.com/baqar-abbas) for helping me on this project with me.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 📝 License <a name="license"></a>
This project is [MIT](./MIT.md) licensed.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
| To-do-lists is a simple project built to help users stay organized. Users can create, edit and delete a task. Built with HTML, CSS, and JavaScript. And bundled with Webpack. | css,html5,javascript,webpack | 2023-03-01T09:32:14Z | 2023-03-07T08:32:03Z | null | 1 | 4 | 23 | 2 | 0 | 2 | null | null | JavaScript |
JoelDeonDsouza/Tiut | master | # Tiut
Educational videos playing hybrid app - Built with React-native(expo) and Typescript.
| Educational videos playing hybrid app - Built with React-native(expo) and Typescript. | expo,javascript,react,react-native,typescript | 2023-03-08T12:15:09Z | 2023-03-21T09:29:33Z | null | 1 | 1 | 6 | 0 | 0 | 2 | null | MIT | TypeScript |
KhaledMostafa990/personal-portfolio | main | # Minimalist portfolio website
A solution to the [Minimalist portfolio website challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/designo-multipage-website-G48K6rfUT).
## Table of contents
- [Screenshots](#screenshots)
- [The challenge](#the-challenge)
- [Links](#links)
- [Built with](#built-with)
- [Getting started](#getting-started)
- [Useful resources](#useful-resources)
## Screenshots



## The challenge
Users should be able to:
- View the optimal layout for each page depending on their device's screen size
- See hover states for all interactive elements throughout the site
- Click the "About Me" call-to-action on the homepage and have the screen scroll down to the next section
- Receive an error message when the contact form is submitted if:
- The Name, Email Address or Message fields are empty should show "This field is required"
- The Email Address is not formatted correctly should show "Please use a valid email address"
additional enhancement:
Frontend:
- Awesome animations
- Stiky navigation bar
- SEO optimization
Backend:
- leveraging backend server to provide both hard-coded data and/or persist it via APIs
- adjusting helemt and cors for security
- CRUD operation over the website data (currently frontend consuming "GET" only)
- avaliable on demand contact form stored in MongoDB database (currently disabled)
- Image uploading
### Links
- Live Site URL: [designo-company-portfolio.vercel.app](https://designo-portfolio-website.vercel.app/)
- Solution URL: [www.frontendmentor.io](https://www.frontendmentor.io/solutions/designo-multi-page-website-portfolio-mfxrYwp8Wm)
## Built with
Frontned:
- Semantic HTML5 markup
- CSS
- Js
- Typescript
- Mobile-first workflow
- React - JS library
- Next.js 13 - React framework
- TawilindCss - CSS Library for styles
- Formik.js and Yup - for contact form
- Gsap - for advanced animations capability
Backend:
- Node.js - for backend environment and js backend modules
- Express.js - for running server
- MongoDB - for backend data storage
- Multer - for image uploads
- Helmet - for security protection setting againest web vulnerabilities
- Morgan - for requests logging
- and more!
## Getting started
- Clone the repository to your local machine from your terminal:
```
git clone https://github.com/KhaledMostafa990/personal-portfolio.git
```
This will create a copy of the project on your local machine.
- Navigate to the project directory:
```
cd <repo-name>
```
- Open another terminal in the project directory and do the following
```
cd frontend (in the first terminal)
cd backend (in the second terminal)
```
This will change your current working directory to the front and back end directory.
- Install the dependencies for each one:
```
npm install
```
This will install all the necessary dependencies required for running the project.
- Start the development server:
```
npm run dev
```
This will start the development server for frontend at http://localhost:3000 .
This will start the development server at http://localhost:8000 || your env.
- Setup evnironment vairables files to store your sercet values for front and back end.
Frontned:
For Mac
```
touch .env.local
```
For Win
```
echo > .env.local
```
Backend:
For Mac
```
touch config.env
```
For Win
```
echo > config.env
```
- To set up environment variables, you'll need to gather the necessary information for as following for front and back end:
Frontend:
```
NODE_ENV=
BASE_API_URL=
APIS_PATH=
MAIN_INFO_API_PATH=
PROJECTS_API_PATH=
CONTACT_API_PATH=
```
Backend:
```
PORT=
DB_CONNECTION_URI=
NODE_ENV=
FRONTEND_URL=
API_PATH=
MAIN_INFO_ROUTE=
PROJECTS_ROUTE=
CONTACT_ROUTE=
```
## Useful resources
- [Elzero Web School](https://www.youtube.com/@ElzeroWebSchool) - Arab developers
- [Maxmilian Academind ](https://www.youtube.com/@academind) - Javascript
- [FrontendExpert & AlgoExpert](https://www.algoexpert.io/frontend) - frontend developers
- [Meta Frontend Developer](https://www.coursera.org/professional-certificates/meta-front-end-developer) - frontend developers
- [Dave Grey](https://www.youtube.com/@DaveGrayTeachesCode) - Typescript and node.js
- [Code with Jay](https://www.youtube.com/@DaveGrayTeachesCode) - node.js
- [Traversy Media](https://www.youtube.com/@TraversyMedia) - Javasciprt and CSS
- [Linkedin Learning](https://www.linkedin.com/learning/) - Developers
- [Next.js Documentations](https://beta.nextjs.org/docs)
- [TailwindCSS](https://tailwindcss.com/)
- [Gsap Documentations](https://greensock.com/docs/) | A 5-page personal portfolio website with over 15 screen. | express,html5,javascript,nextjs,nodejs,portfolio,typescript,tailwindcss | 2023-03-09T07:57:59Z | 2023-05-09T13:10:18Z | null | 1 | 14 | 45 | 0 | 0 | 2 | null | null | TypeScript |
Rafa-KozAnd/Ignite_React-Native_Activity_01 | main |
<p align="center">
<img src="http://img.shields.io/static/v1?label=STATUS&message=Concluded&color=blue&style=flat"/>
<img alt="GitHub language count" src="https://img.shields.io/github/languages/count/Rafa-KozAnd/Ignite_React-Native_Activity_01">
<img alt="GitHub language count" src="https://img.shields.io/github/languages/top/Rafa-KozAnd/Ignite_React-Native_Activity_01">
<img alt="GitHub repo file count" src="https://img.shields.io/github/directory-file-count/Rafa-KozAnd/Ignite_React-Native_Activity_01">
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/Rafa-KozAnd/Ignite_React-Native_Activity_01">
<img alt="GitHub language count" src="https://img.shields.io/github/license/Rafa-KozAnd/Ignite_React-Native_Activity_01">
</p>
# Ignite_React-Native_Activity_01
React Native activity done with 'Rocketseat' Ignite course. ("Chapter I")
## 💻 Sobre o capítulo - Fundamentos React Native.
Nesse capítulo, vamos aprender o ecossistema do desenvolvimento mobile com React Native, criar e compreender a estrutura de projetos React Native com a CLI além de conhecer os principais conceitos por volta da biblioteca como componentes, propriedades, estado, imutabilidade, hooks, estilização e utilização do TypeScript.
<h1 align="center">
<img src="Print/Print01.jpg" width="250" height="500">
</h1>
| React Native activity done with 'Rocketseat' Ignite course. ("Chapter I") | ignite,ignite-react-native,ignite-rocketseat,java,javascript,react-native,rocketseat,ruby,typescript | 2023-03-07T21:59:20Z | 2023-04-13T15:35:07Z | null | 1 | 0 | 8 | 0 | 0 | 2 | null | null | Java |
kuldeepkd13/Rentomojo-clone | main | # Rentomojo Clone
It is an online rental platform that allows customers to rent furniture, appliances and other household items.
## Deployment
The project has been deployed using the following platforms:
- Frontend: Netlify
- URL: [Rentomojo-clone](https://joyful-valkyrie-7a303c.netlify.app/)
## Project Overview
Elite lease is developed using the following technologies:
- Frontend: HTML, CSS , JavaScripts
- Backend: Json Server
## Features
Elite lease project includes the following features:
- Product Page
- Cart Page
- User/Admin login/signup
- CRUD operations
## Project Timeline!
The Elite lease project was completed within 5 working days.
| It is an online rental platform that allows customers to rent furniture, appliances and other household items. | css,html,javascript,json-server | 2023-02-25T11:48:31Z | 2023-09-25T08:03:16Z | null | 4 | 0 | 18 | 0 | 0 | 2 | null | null | CSS |
ritikarawat220/LEADERBOARD- | dev | <a name="readme-top"></a>
<div align="center">
<h1><b>Leaderboard</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)
- [👥 Authors](#authors)
- [🔭 Future Features](#future-features)
- [🤝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [🙏 Acknowledgements](#acknowledgements)
- [❓ FAQ](#faq)
- [📝 License](#license)
<!-- PROJECT DESCRIPTION -->
# 📖 Leaderboard <a name="about-project"></a>
Leaderboard is a simple web app that fetches data from api and display them, it can also send requests to the same api to save data, it uses modular architechture aswell as webpack.
<table>
<td style="border: 1px solid black;"><img src="src/ss/desktp-ss.png" alt="Leaderboard" /></td>
<img src="src/ss/mobile-ss.png" alt="Leaderboard" />
</table>
## 🛠 Built With <a name="built-with"></a>
HTML, CSS, NodeJS
### Tech Stack <a name="tech-stack"></a>
<details>
<summary>Structure</summary>
<ul>
<li><a href="https://html.com/">HTML</a></li>
</ul>
</details>
<details>
<summary>Style</summary>
<ul>
<li><a href="https://www.w3schools.com/css/">CSS</a></li>
</ul>
</details>
<details>
<summary>Module Bundler</summary>
<ul>
<li><a href="https://webpack.js.org/">Webpack</a></li>
</ul>
</details>
<details>
<summary>Linters</summary>
<ul>
<li><a href="https://webhint.io/">Webhint</a></li>
<li><a href="https://stylelint.io/">Stylelint</a></li>
<li><a href="https://eslint.org/">ESLint</a></li>
</ul>
</details>
<!-- Features -->
### Key Features <a name="key-features"></a>
- Modular JS architecture.
- Use Modules.
- Module Bundler.
- Use Webpack.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- LIVE DEMO -->
## 🚀 Live Demo <a name="live-demo"></a>
- Check **Live Demo** [here.](https://ritikarawat220.github.io/LEADERBOARD-/)
<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:
Open terminal on the same folder of the project and run:
```sh
npm install
```
### Setup
Clone this repository to your desired folder:
```sh
cd my-folder
git clone https://github.com/ritikarawat220/LEADERBOARD-.git
```
### Install
Install this project with:
```sh
cd Leaderboard
npm install
```
### Usage
Run Dev Server (Port 3000)
```
npm run dev
```
### Build for production
```
npm run build
```
### Run tests
- ### Linter Tests
To run tests, run the following command:
To check for html errors run:
```sh
npx hint .
```
To check for css errors run:
```sh
npx stylelint "**/*.{css,scss}"
```
To check for js errors run:
```sh
npx eslint .
```
<!-- AUTHORS -->
## 👥 Authors <a name="authors"></a>
👤 **Ritika Rawat**
- GitHub: [ritikarawat220](https://github.com/ritikarawat220)
- Twitter: [@ritikarawat22](https://twitter.com/Ritikarawat22)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/rawatritika/)
<!-- FUTURE FEATURES -->
## 🔭 Future Features <a name="future-features"></a>
- Hit the API.
<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/ritikarawat220/LEADERBOARD-/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 send your feedback to encourage me to do more.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- ACKNOWLEDGEMENTS -->
## 🙏 Acknowledgments <a name="acknowledgements"></a>
I would like to thank Microverse for offering me this opportunity to learn, and practice my skills.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- FAQ (optional) -->
## ❓ FAQ <a name="faq"></a>
-Why use linters?
- The use of linters helps to diagnose and fix technical issues, also linters can help teams achieve a more readable and consistent style, through the enforcement of its rules.
-Why use modular programming?
- Modular programming usually makes your code easier to read because it means separating it into functions that each only deal with one aspect of the overall functionality.
-Why use a Bundler?
- It keeps track of which files depend on which other files and ensures they are loaded in the right order. This helps make your code more modular and easier to maintain.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- LICENSE -->
## 📝 License <a name="license"></a>
This project is [LICENSE](https://github.com/codedit334/Leaderboard/blob/main/LICENSE) licensed.
(Check the LICENSE file)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
| The leaderboard website displays scores submitted by different players. It also allows you to submit your score. All data is preserved thanks to the external Leaderboard API service. | html,css,gitflow,javascript,api,es6,leaderboard,webpack,leaderboard-api,jest | 2023-03-11T07:03:09Z | 2023-05-16T09:41:17Z | null | 1 | 4 | 32 | 0 | 0 | 2 | null | MIT | JavaScript |
UmakanthKaspa/Netflix-Clone | main | # Movie App 🎬
Welcome to the **Movie App** repository! Lights, camera, fun! 🍿 Get ready to dive into the world of movies and explore the possibilities with our exciting Movie App. It's not just another project; it's a playground of creativity and learning. where I learned a lot of things in React! 🌟
## Description 📝
The **Movie App** is a mini-project that represents the result of my dedication to learning and mastering React. It allowed me to apply my skills and knowledge gained during my MERN stack development course and have a blast along the way. 🎓💻✨
It's my personal mini project created purely for learning and enjoyment. It provided me with an opportunity to explore the magic of React and create something unique and exciting. 🚀
## Notable Features 🌟
- **Trending Now** 🌟: Discover the latest movie trends and stay up-to-date with the hottest releases.
- **Popular Movies** 🎥: Dive into a collection of popular movies and explore the favorites of movie enthusiasts worldwide.
- **Top Rated** ⭐: Explore top-rated films that have captured hearts and received critical acclaim.
- **Search** 🔎: Find movies based on title, genre, or cast, and unleash your inner movie detective.
- **Dynamic Slider** 🎞️: Experience an interactive and visually appealing display of movie posters with our dynamic slider.
- **Dynamic Home Page Poster** 🌆: Enjoy a surprise every time you visit the home page as the poster changes dynamically with each refresh.
- **User-Friendly Interface** 🖥️: Enjoy a seamless and intuitive user interface designed for an engaging movie browsing experience.
## Technologies and Tools Used 🛠️
- **React.js** ⚛️: The powerhouse behind the app, allowing for efficient and dynamic UI components.
- **JavaScript** 🚀: The language that adds interactivity and logic to our movie app.
- **HTML5** 🌐: The foundation of our app's structure and content.
- **CSS3** 🎨: The magic that brings our app to life with stunning styles and layouts.
- **Git version control** 🗂️: Ensuring a smooth development process and easy collaboration.
- **Visual Studio Code** 💻: The trusty code editor for crafting our movie app masterpiece.
Other tools and libraries used in the project include:
- 🍪 **js-cookie**: A lightweight JavaScript library for handling browser cookies, used for managing user authentication.
- ⚙️ **React Loader Spinner**: A React component that displays a loading spinner, used to enhance the user experience during data fetching.
## Getting Started 🚀
1. Clone the repository to your local machine.
2. Install the necessary dependencies using `npm install`.
3. Start the development server with `npm start`.
4. Access the app via `localhost` on your web browser.
5. Play around with the app, customize it, and unleash your creativity!
## Live Demo 🎥
Curious to see the Movie App Playground in action? Check out our live demo [here](https://umakanthkaspa5m.ccbp.tech/) and have fun exploring the world of movies in a playful environment! 🚀🎥
| Lights. Camera. Movies! 🍿 Discover, explore, and search for your favorite movies with our sleek Movie App. 🎬 Powered by React.js and the TMDb API, it brings you the latest trends, popular flicks, and top-rated gems. 🌟 Lights up, curtains open, and let the movie magic begin! 🚀 | api,css3,html5,javascript,react,tmdb-api | 2023-03-04T12:34:19Z | 2023-07-09T06:27:08Z | null | 1 | 0 | 5 | 0 | 1 | 2 | null | null | JavaScript |
fk652/Galactic-Defender | main | # Galactic Defender
## [Click here to play](https://fk652.github.io/Galactic-Defender/)
## Background
Galactic Defender is a galaxy shooter game, based off the classic [Space Invaders](https://en.wikipedia.org/wiki/Space_Invaders) and [Galaga](https://en.wikipedia.org/wiki/Galaga) games. The main gameplay involves the player controlling a ship that moves around in a fixed 2d screen and shoots down enemy ships/aliens, while also avoiding enemies and their projectiles.
In Galactic Defender the player's goal is to survive waves of enemies.
<img src="./src/assets/screenshots/enemy_wave.png" alt="enemy wave" title="enemy wave" width="1000">
...and defeat the boss at the end.
<img src="./src/assets/screenshots/boss_fight.png" alt="boss fight" title="boss fight" width="1000">
It's game over if the player loses all their health points (HP) before defeating the boss. Enemies also have their own HP that must be depleted to be destroyed, with scaling difficulty.
## Instructions
Controls are simply:
- arrow keys or WASD to move in any direction
- spacebar or left click to shoot (can be held down to continously shoot)
Setting options include:
- toggle mute
- pause
- mouse/touch follow mode
Playable on touch screen mobile devices when touch follow is enabled.
Touch follow is automatically enabled at the start if a touch screen device is detected.
Control everything with just a single finger!
- move finger around the screen to move the ship.
- continously shoot while touching the screen.
<img src="./src/assets/screenshots/controls.png" alt="game controls" title="game controls" width="300">
## Functionality & MVPs
* [x] The player can move anywhere across the game screen using WASD or arrow keys and can shoot projectiles with spacebar or left click.
* [x] All enemies spawn in from the top of the game screen, move from top to bottom, and shoot projectiles.
* [x] Waves of around 5-20 enemies, and all must either be destroyed or have moved off the screen to get to the next wave.
* [x] Boss spawns in after 5 waves, and will be a giant ship moving along the top of the screen with multiple phases of shooting patterns, and has alot more HP compared to normal enemies.
* [x] Start game screen, game over screen, and win screen.
* [x] Player can retry on win or lose.
## How the game is being rendered
The GameView animate function updates and draws the current state of the game on canvas using requestAnimationFrame
```javascript
class GameView {
...
animate(time) {
if (this.game.startScreen || this.game.gameOver || this.game.win) {
if (this.pause) this.handlePauseToggle();
this.drawStartWinGameOver();
} else if (!this.pause) {
this.draw();
this.updateGameInfo();
const timeDelta = time - this.lastTime;
this.game.step(timeDelta);
}
this.lastTime = time;
requestAnimationFrame(this.animate.bind(this));
}
...
}
```
The GameView draw function clears the canvas screen and redraws all objects contained in the game.allMovingObjects attribute, at their newest positions.
```javascript
class GameView {
...
draw() {
this.ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
this.drawBackground();
for (let key in this.game.allMovingObjects) {
Object.values(this.game.allMovingObjects[key]).forEach(obj => obj.draw(this.ctx));
}
}
...
}
```
The Game step function applies game logic to determine the next state of the game such as where objects are positioned next, placing/removing enemies and projectiles, and collision detection.
```javascript
class Game {
...
step(timeDelta) {
this.checkCollisions();
if (!this.bossFight) this.setEnemies();
this.moveObjects(timeDelta);
this.shootProjectiles();
}
...
}
```
## Wireframe
<img src="./src/assets/screenshots/Wireframe.png" alt="wireframe" title="wireframe" width="1000">
* Nav links include a link to this project's Github repo and my LinkedIn.
* Game instructions include basic controls and any rules about the game.
* Game information is dynamically updated with the current state of the game.
* Game screen is a Canvas element that renders the actual gameplay.
## Technologies, Libraries, APIs
* This project is written with HTML, CSS, and JavaScript.
* Canvas API to render the game.
* npm to manage project dependencies.
* Webpack and Babel to bundle and transpile the source JavaScript code.
## Implementation Timeline
* Thursday (March 11):
* Planning and research. Setup project, work on setting up the HTML page and Canvas game screen.
* Friday Afternoon & Weekend (March 10-12):
* Finishing up the webpage. Completing minimum gameplay functionalities.
* Monday (March 13):
* Complete starting and end game screen, views, logic, and transitions.
* Tuesday (March 14):
* Polishing up the minimal product, and start working on extra features.
* Wednesday (March 15):
* Continue working on extra features.
* Thursday Morning (March 16):
* Polish and deploy product.
* Afterwards:
* Continue Working on bonus features and extra implementations.
## Bonus features
* [x] Music and sound effects, with the option to mute.
* [x] Scrolling background that moves along with the game.
* [ ] Player can collect upgrades, dropped randomly from destroyed enemies, that will improve their shooting pattern and damage.
* [ ] Enemy variety with different movement and shooting patterns.
* [ ] Indestructable obstacles like asteroids that the player must avoid.
* [ ] Multiple levels with different backgrounds and final bosses. Player must then beat all levels to win the game.
* [x] Player can also control the ship with mouse and touch movements.
## Credits
* All assets were provided as free open source material from [itch.io](https://itch.io/)
* Game backgrounds were generated [here](https://deep-fold.itch.io/space-background-generator)
* Images, sound effects, and background music were made by [GameSupplyGuy](https://gamesupply.itch.io/ultimate-space-game-mega-asset-package) | A galaxy shooter game, based off the classic Space Invaders and Galaga games. Built with vanilla JavaScript. Also playable on mobile devices! | game,javascript,html-css-javascript | 2023-03-09T15:13:02Z | 2023-07-21T21:30:28Z | null | 1 | 0 | 194 | 0 | 1 | 2 | null | null | JavaScript |
abbishekprabhu/project-holi | main | **I have hosted my first react single page app in Netlify and I have mentioned the link near the about section.**
| This is my First React Front end project. I have both designed and developed this. | css3,javascript,jsx,react,reactjs | 2023-03-06T11:38:05Z | 2023-04-03T05:41:30Z | null | 1 | 0 | 10 | 0 | 0 | 2 | null | null | CSS |
GracieCreates/coffee-quote-minisite | master | # Coffee Quote Minsite
[**Demo**](https://graciecreates.github.io/coffee-quote-minisite/)

---
## **Project Overview:**
- A minisite using HTML, CSS, JAVASCRIPT
- Create a Image Gallery using **Flexbox** to structure the elements
- **Dark Mode** Toggle (CSS + Javascript)
- Clickable Images (see below) (CSS + Javascript)
## **Clickable** Images
- Make **clickable image** and Enlarge it on click using CSS+Jacascript
- Add a class of "gallery-img" to each of your images.
- Wrap your images in an anchor tag with a class of "gallery-link" and a data attribute "data-image" that points to the path of the larger version of the image.
- Style the anchor tags in the css styleshee and make anchor tags and images display inline and remove the default underline from anchor tags.
- Add to the Javascript page **forEach() and addEventListener()** functions to 1) handle the click event on the anchor tags and 2) display the larger version of the image in a modal dialog:
- **forEach()** is a method used to execute a function on each element in an array, while add
- **EventListener()** is a method used to attach an event handler to the specified element.
- Finally, style the modal dialog in the CSS stylesheet.
## **Design Tools:**
- Design tool [canva](https://www.canva.com)
- Font Tool: [Google Fonts](https://fonts.google.com/)
| Build a minisite with flexbox with dark mode toggle and clickable-image features | flexbox-css,flexbox-grid,flexbox-layout,javascript,html-css-javascript,website-design,website-development | 2023-02-27T16:50:51Z | 2023-03-01T16:28:03Z | null | 1 | 0 | 4 | 0 | 0 | 2 | null | null | CSS |
Drako01/lonne-open-ReactApp | main | # Proyecto React JS
<p align="center">
<a href="https://reactjs.org/" target="_blank" rel="Drako01"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/react/react-original-wordmark.svg" alt="react" width="150" height="150"/> </a>
</p>
<h3 align="center">Herramientas complementarias</h3>
<p align="center">
<a href="https://www.w3.org/html/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="100" height="100"/></a>
<a href="https://www.w3schools.com/css/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="100" height="100"/></a>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="Javascript" width="90" height="90"/></a>
</p>
---
## Desarrollo de un E-Commerce Funcional desde el FrontEnd utilizando la Librería REACT JS
<p align="center">
<a href="https://lonne-open-proshop.vercel.app/" target="_blank">
<img src="https://lonneopen.com/img/logo.png" alt="CoderHouse" height="300"/>
</a>
</p>
<h2 align="center"> PRO SHOP </h2>
---
<p align="center">
<img src="https://jobs.coderhouse.com/assets/logos_coderhouse.png" alt="CoderHouse" height="100"/>
</p>
---
### Autor: Alejandro Daniel Di Stefano
---
# 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.
## 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)
| eCommerce de Productos de Tenis | css,javascript,reactjs,html5,jsx,nodejs,yarn | 2023-02-28T01:10:23Z | 2023-04-12T22:41:00Z | 2023-04-12T22:41:00Z | 1 | 2 | 39 | 0 | 0 | 2 | null | null | JavaScript |
pierrick-marie/simple-js-gallery | main | Simple JavaScript Image Gallery
==================================
This is a very simple, lightweight and standalone image gallery developed in JavaScript with JQuery and Scss.
# Demonstration
The online demonstration is available here: https://pierrick-marie.github.io/simple-js-gallery
# Why another image gallery in JavaScript ?
I had to install a lightweight image gallery on a USB key. The gallery had to run without any internet connection. Moreover I wanted to be absolutely sure of the behavior of the programme: displaying images whatever their size and no more!
I concluded I will spend less time in developing my own image gallery instead of reviewing existing ones.
The gallery is programmed to run in "full screen" mode. To reduce the size of the gallery, you have to modify the CSS.
# Features
* Display images whatever their size
* Possible to display images in full screen mode
* Support image's title
* Very simple and lightweight HTML5 and Scss code
* Thumbnails are generated automatically
* Run with few dependencies and without internet connection
* Support keyboard interactions
# Clone the repository
Get the source code with the following command
```
git clone https://github.com/pierrick-marie/simple-js-gallery.git
```
# Architecture of the project
```
-src/
|__ sass/
| |__ body.scss (Scss code of gallery)
| |__ custom.scss (Scss code of gallery)
| |__ gallery.scss (Scss code of gallery)
| |__ simple-gallery.scss (Scss code of gallery)
|__ js/
| |__ simple-gallery.js (JS code of the gallery - copy from public by CI)
|__ img/
|__ utils/
|__ left-arrow.png (Left arrow of gallery)
|__ right-arrow.png (Right arrow of gallery)
|__ background.jpg (Background for the demonstration)
|__ logo.png (The favicon for the example)
|__ gallery/
|__ ... (Images to test the gallery)
-example/
|__ sass/
| |__ simple-gallery.css (CSS code of the gallery - transpile from *.scss files)
|__ js/
| |__ simple-gallery.js (JS code of the gallery)
| |__ jquery-3.6.3.min.js (the dependency)
|__ img/
|__ utils/
|__ left-arrow.png (Left arrow of gallery)
|__ right-arrow.png (Right arrow of gallery)
|__ background.jpg (Background for the demonstration)
|__ logo.png (The favicon for the example)
|__ gallery/
|__ ... (Images to test the gallery)
|__ index.html (example page of the gallery)
```
# Dependencies
The gallery requires JQuery in version 3.6.3: https://code.jquery.com/jquery-3.6.3.min.js
The dependency is included in source code.
# Installation
### 1. Setup Scss / CSS
You can directly use css file transpiled from the Scss source files.
The CSS file is in folder **example/css/**.
Copy **simple-gallery.css** in your CSS folder.
Import **simple-gallery.css** in your *head* section:
```html
<link rel="stylesheet" href="./css/simple-gallery.css" />
```
You can use Scss source files from **src/sass** folder.
In that case you have to transpile Scss files into CSS.
### 2. Setup JavaScript
Copy **\*.js** from **src/js/** to your JavaScrip folder
Import both **JavaScript files** at the end of your html file
```html
<script type="text/javascript" src="./js/jquery-3.6.3.min.js"></script>
<script type="text/javascript" src="./js/simple-gallery.js"></script>
```
### 3. Copy images of left and right arrow
Copy **utils/** folder from **src/img/** to your images folder
### 4. Setup the images of the gallery
Copy the following code where you want to place the gallery
```html
<!-- Main place for the gallery: titles, images and thumbnails -->
<section class="simple-gallery"> <!-- === USE THAT CLASS TO SETUP THE GALLERY === -->
<!-- Titles and are generated from title attribute -->
<!-- Thumbnails are generated automatically from images -->
<!-- === PUT ALL YOUR IMAGES HERE ACCORDING TO THE FOLLOWING EXAMPLES === -->
<img src="./img/gallery/0.jpg" title="Lights in a circle"/>
<img src="./img/gallery/1.jpg" title="A city by night"/>
<!-- ETC. -->
</section>
```
Add your images in section *.simple-js-gallery* according to the examples
### 5. Optional: Customize the gallery
To change position, size or decoration of your gallery, modify the following classes. Those classes are in **src/sass/custom.scss**.
```css
/**
* === POSITION OF THE GALLERY ===
*/
.positionOfGallery {
...
}
/**
* === SIZE OF THE GALLERY ===
*
* For full screen mode ==> width: 98%; height: 95%;
* Sub elements of the gallery resize automatically.
*/
.sizeOfGallery {
...
}
/**
* === Decorations of the gallery ===
*
* Change them according to the design of your web site
*/
.decorationOfGallery {
...
}
```
To change the other elements, use the following classes in **src/sass/gallery.scss**
* main image in default view -> *.defaultView*
* main image in full screen view -> *.fullScreenView*
* thumbnails area -> *.nav .thumbnails*
* arrows -> *.arrows*
### 6. Enjoy your gallery!
#### Navigate through the images
There are three options to navigate through images:
* click on "left" or "right" arrow
* click on the thumbnails
* press "left" or "right" key
#### Display image in default view mode
There are three options to display image in default view mode:
* click on the image or press "f" key to toggle in full screen view
* press "escape" key to exit full screen view and go back in default view
# Authors and acknowledgment
Developer: Pierrick MARIE contact at pierrickmarie.info
# License
This project is under *3-Clause BSD License*.
# Contributing
Do not hesitate to improve to this program. Feel free to send PR or contact me to send comments. You are welcome to fork this project also ;)
# Badges
[](https://opensource.org/licenses/BSD-3-Clause) [](https://www.javascript.com) [](https://html.spec.whatwg.org/multipage/) [](https://www.w3.org/TR/css-2022/)
| A simple Javascript gallery | css3,gallery,html5,javascript | 2023-02-25T09:01:16Z | 2023-03-08T21:29:41Z | 2023-03-08T21:44:47Z | 1 | 0 | 97 | 0 | 0 | 2 | null | BSD-3-Clause | JavaScript |
dharmikpuri/LensKart-Clone | main | # Lensekart-Clone, Eyecare website
This is a construct week project of cloning https://www.lenskart.com/ that is built in 5 days .
# Vercel Deployed link
https://eyecare.vercel.app/
# AIM-
To provide designer glasses at lower cost.
# Duration -
5 Days
# AIM-
To provide designer glasses at lower cost.
# Tech Stacks Used-
HTML,
CSS,
Advance Javascript
# Key Features:
1.Landing Page with Mega Navbar, Footer, Sliders
2.Sign in and Signup Page with validation functionality
3.Multiple Types of Product's Pages with Filter , Sort ,Search
4.Dynamic Individual Product Page with Add To Cart, Delivery Check at pin your code functionality
5.Cart Page with Removing Product and apply Coupon functionality
6.Details form and Checkout Page for payments.
7.Admin Page
| Lenskart is an Eyecare Website which provides Eyeglasses/Sunglasses at affordable prices. | css,javascript,html | 2023-03-04T10:33:52Z | 2023-03-04T10:41:46Z | null | 1 | 0 | 3 | 0 | 0 | 2 | null | null | HTML |
michojekunle/ARCHITECT-WEBSITE | master | # ARCHITECT-WEBSITE
This is a CSS(Responsive Design) Challenge project.
## Table of contents
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)
- [Acknowledgments](#acknowledgments)
## Overview
### The challenge
Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- See hover states for all interactive elements on the page.
### Screenshot

### Links
- Solution URL: [https://github.com/michojekunle/ARCHITECT-WEBSITE/](https://github.com/michojekunle/ARCHITECT-WEBSITE/)
- Live Site URL: [https://architect-website-nine.vercel.app/](https://architect-website-nine.vercel.app/)
## My process
### Built with
- Semantic HTML5 markup
- CSS3
- Flexbox
- CSS Grid
- Desktop-first workflow
- [Vanilla-tilt](https://micku7zu.github.io/vanilla-tilt.js/) - JS library
### What I learned
In the course of this Project as Interesting and Refreshing as it was, I grabbed a few Important concepts such as:
- Effectively Building Responsive websites and apps with vanilla css.
- Utilizing Vanilla-tilt.js to add interesing tilt effects to the teams section of the project.
```html
<a href='#' data-content='home'></a>
<div class="card" data-tilt-glare data-tilt-max-glare="0.8"></div>
```
```css
.proud-of-this-css
a::after {
content: attr(data-content);
}
```
<!-- ```js
const proudOfThisFunc = () => {
console.log('🎉')
} -->
### Continued development
```
Going forward, I'll be working on more animated, responsive, dynamic and interactive websites with vanilla CSS and other CSS & JS Libraries.
```
### Useful resources
- [Resource 1 (The Effect on mouse Over)](https://www.youtube.com/watch?v=UqEmFSlx4ps) - This helped me for understand vanill-tilt.js and building this effect from scratch. I really liked this pattern and will use it going forward.
- [Resource 2 (Customizing Scrollbar)](https://css-tricks.com/almanac/properties/s/scrollbar/) - This is an amazing article. I'd recommend it to anyone still learning this concept.
- If you want more help with writing markdown, we'd recommend checking out [The Markdown Guide](https://www.markdownguide.org/) to learn more.
## Author
- Website - [AMD](https://github.com/michojekunle)
- Twitter - [@MichaelOjekunl2](https://www.twitter.com/MichaelOjekunl2)
- LinkedIn - [Michael Ojekunle](https://www.linkedin.com/in/michael-ojekunle-651a8a232/)
## Acknowledgments
Special Credits to
- [Code and Create](https://youtube.com/@codeandcreate)
- [Coding Journey](https://youtube.com/@CodingJourney)
- [CSS Tricks](https://css-tricks.com/)
| Architect Website | css3,html5,javascript,css-animations,css-responsive | 2023-03-08T16:10:00Z | 2023-03-14T08:46:11Z | null | 1 | 0 | 17 | 0 | 0 | 2 | null | null | CSS |
EnzoSylvestrin/MyLab | main | <h1 align="center">
🚀MyLab
</h1>
## ⭐ Introdução
Seja bem vindo! Esse é um projeto que vou utilizar para aplicar conceitos de física, matemática e até programação, dos quais estou estudando na faculdade (ou fora dela). Para que desta forma consiga estudar fazendo algo que gosto que é programar e também conseguir entender e aplicar tais conceitos, para entendê-los de maneira mais profunda e completa!
## 📚 Conceitos (até agora)
...
## 💼 Tecnologias utilizadas
Algumas das tecnologias utilizadas para o desenvolvimento foram:
- HTML;
- CSS;
- Tailwindcss;
- TypeScript;
- Next;
- Framer motion.
---
<h2>👻 Autor</h2>
<table>
<tr>
<td align="center">
<a href="https://github.com/EnzoSylvestrin">
<img src="https://avatars.githubusercontent.com/u/88488844?v=4" width="100px;" alt="Minha foto no GitHub"/><br>
<sub>
<b>Enzo Sylvestrin</b>
</sub>
</a>
</td>
</tr>
</table>
| Projeto em que vou tentar aplicar conceitos de física e matemática que estou aprendendo. | javascript,math,nextjs,typescript,tailwindcss,storybook,physics | 2023-02-28T00:37:05Z | 2023-03-29T12:00:20Z | null | 1 | 0 | 64 | 0 | 0 | 2 | null | MIT | TypeScript |
Orillusion/orillusion | main | 
## Orillusion
[](https://github.com/Orillusion/orillusion/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/@orillusion/core)
`Orillusion` is a pure Web3D rendering engine which is fully developed based on the `WebGPU` standard. It aims to achieve desktop-level rendering effects and supports 3D rendering of complex scenes in the browser.
## Need to know
Beta version, **NOT** recommended for any commercial application.
## Install
### NPM
We recommend using front-end build tools for developing Web3D applications, such [Vite](https://vitejs.dev/) or [Webpack](https://webpack.js.org/).
- Install dependencies:
```text
npm install @orillusion/core --save
```
- Import on-demand:
```javascript
import { Engine3D, Camera3D } from '@orillusion/core'
```
- Import globally:
```javascript
import * as Orillusion from '@orillusion/core'
```
### CDN
In order to use the engine more conveniently, we support to use native `<script>` tag to import `Orillusion`. Three different ways to import using the official `CDN` link:
- **Global Build:** You can use `Orillusion` directly from a CDN via a script tag:
```html
<script src="https://unpkg.com/@orillusion/core/dist/orillusion.umd.js"></script>
<script>
const { Engine3D, Camera3D } = Orillusion
</script>
```
The above link loads the global build of `Orillusion`, where all top-level APIs are exposed as properties on the global `Orillusion` object.
- **ESModule Build:** We recommend using the [ESModule](https://developer.mozilla.org/docs/Web/JavaScript/Guide/Modules) way for development. As most browsers have supported `ES` module, we just need to import the `ES` build version of `orillusion.es.js`
```html
<script type="module">
import { Engine3D, Camera3D } from "https://unpkg.com/@orillusion/core/dist/orillusion.es.js"
</script>
```
- **Import Maps:** In order to manage the name of dependencies, we recommend using [Import Maps](https://caniuse.com/import-maps)
```html
<!-- Define the name or address of ES Module -->
<script type="importmap">
{
"imports": { "@orillusion/core": "https://unpkg.com/@orillusion/core/dist/orillusion.es.js" }
}
</script>
<!-- Customerized names could be imported -->
<script type="module">
import { Engine3D, Camera3D } from "@orillusion/core"
</script>
```
## Usage
### Create Engine3D instance
At the beginning, we need to use `Engine3D.init()` and then the instance `Engine3D` will be created for further use
```javascript
import { Engine3D } from '@orillusion/core'
Engine3D.init().then(()=>{
// Next
})
```
As `Engine3D.init()` is asynchronous, we recommend using `async/await` in the code
```javascript
import { Engine3D } from '@orillusion/core'
async function demo(){
await Engine3D.init();
// Next
}
demo()
```
### Create canvas
In default, `Engine3D.init()`will create a `canvas` the same size with the window. Also, we could create a `canvas` manually using tag `<canvas>` with a `id`
```html
<canvas id="canvas" width="800" height="500" />
```
Next, we need to get the `<canvas>` via `id` and then init engine by passing the `<canvas>` to `canvasConfig`
```javascript
import { Engine3D } from '@orillusion/core';
let canvas = document.getElementById('canvas')
await Engine3D.init({
canvasConfig: { canvas }
})
```
Please read the [Docs](https://www.orillusion.com/guide/) to Learn More.
## Platform
**Windows/Mac/Linux:**
- Chrome 113+
- Edge: 113+
**Android (Behind the `enable-unsafe-webgpu` flag):**
- Chrome Canary 113+
- Edge Canary 113+
## Useful links
- [Official Web Site](https://www.orillusion.com/)
- [Documentation](https://www.orillusion.com/guide/)
- [Forum](https://forum.orillusion.com/)
## Dev and Contribution
Please make sure to read the [Contributing Guide](.github/contributing.md) before developing or making a pull request.
## License
Orillusion engine is released under the [MIT](https://opensource.org/licenses/MIT) license.
| Orillusion is a pure Web3D rendering engine which is fully developed based on the WebGPU standard. | webgpu,3d,graphics,html5,typescript,web3d,orillusion,javascript,wgsl | 2023-03-14T16:37:43Z | 2024-01-29T09:13:47Z | 2024-01-26T14:10:43Z | 13 | 259 | 293 | 60 | 440 | 3,769 | null | MIT | TypeScript |
KudoAI/chatgpt.js | main | <div id="repo-cover" align="center">
<div align="center">
<h6>
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs">
<picture>
<source type="image/svg+xml" media="(prefers-color-scheme: dark)" srcset="https://media.chatgptjs.org/images/icons/earth-americas-white-padded-icon17x15.svg?714b6a1">
<img src="https://media.chatgptjs.org/images/icons/earth-americas-padded-icon17x15.svg?714b6a1">
</picture>
</a>
English |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/zh-cn#readme">简体中文</a> |
<a href="zh-tw#readme">繁體中文</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/ja#readme">日本</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/ko#readme">한국인</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/hi#readme">हिंदी</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/np#readme">नेपाली</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/de#readme">Deutsch</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/es#readme">Español</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/fr#readme">Français</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/it#readme">Italiano</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/nl#readme">Nederlands</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/pt#readme">Português</a> |
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs/vi#readme">Việt</a>
</h6>
</div>
<br>
<a href="https://chatgpt.js.org">
<picture>
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.chatgptjs.org/images/logos/chatgpt.js/with-reflection/darkmode.png?bc68d0c">
<img width=800 src="https://media.chatgptjs.org/images/logos/chatgpt.js/with-reflection/lightmode.png?bc68d0c">
</picture>
</a>
### 🤖 A powerful client-side JavaScript library for ChatGPT
</div>
<br>
<div id="shields" align="center">
[](https://github.com/KudoAI/chatgpt.js/stargazers)
[](https://github.com/KudoAI/chatgpt.js/blob/main/LICENSE.md)
[](https://github.com/KudoAI/chatgpt.js/commits/main)
[](https://github.com/KudoAI/chatgpt.js/tree/v2.9.2/dist/chatgpt.min.js)
[](https://www.codefactor.io/repository/github/kudoai/chatgpt.js)
[](https://sonarcloud.io/component_measures?metric=new_vulnerabilities&id=kudoai_chatgpt.js)
[](https://github.com/sindresorhus/awesome-chatgpt#javascript)
[](https://www.producthunt.com/posts/chatgpt-js)

</div>
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7">
<div id="intro">
## 💡 About
</div>
<span style="color: white">chatgpt.js</span> is a <span style="color: white">powerful</span> JavaScript library that allows for <span style="color: white">super easy</span> interaction w/ the ChatGPT DOM.
- Feature-rich
- Object-oriented
- Easy-to-use
- Lightweight (yet optimally performant)
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7">
<div id="importing">
## ⚡ Importing the library
</div>
> **Note** _To always import the latest version (not recommended in production!) replace the versioned jsDelivr URL with: `https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js/chatgpt.min.js`_
### ES6:
```js
(async () => {
await import('https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.9.2/dist/chatgpt.min.js');
// Your code here...
})();
```
### ES5:
```js
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.9.2/dist/chatgpt.min.js');
xhr.onload = function () {
if (xhr.status === 200) {
var chatgptJS = document.createElement('script');
chatgptJS.textContent = xhr.responseText;
document.head.append(chatgptJS);
yourCode(); // runs your code
}
};
xhr.send();
function yourCode() {
// Your code here...
}
```
### <img style="margin: 0 2px -0.065rem 0" height=17 src="https://media.chatgptjs.org/images/icons/platforms/tampermonkey/icon28.png?a3e53bf7"><img style="margin: 0 2px -0.035rem 1px" height=17.5 src="https://media.chatgptjs.org/images/icons/platforms/violentmonkey/icon25.png?a3e53bf7"> Greasemonkey:
> **Note** _To use a starter template: [kudoai/chatgpt.js-greasemonkey-starter](https://github.com/KudoAI/chatgpt.js-greasemonkey-starter)_
```js
...
// @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.9.2/dist/chatgpt.min.js
// ==/UserScript==
// Your code here...
```
### <img style="margin: 0 2px -1px 0" height=16 src="https://media.chatgptjs.org/images/icons/platforms/chrome/icon16.png?8c852fa5"> Chrome:
> **Note** _To use a starter template: [kudoai/chatgpt.js-chrome-starter](https://github.com/KudoAI/chatgpt.js-chrome-starter)_
Since Google does not allow remote code, importing chatgpt.js locally is required:
1. Save https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/chatgpt.js to a subdirectory (`lib` in this example)
2. Add ES6 export statement to end of `lib/chatgpt.js`
```js
...
export { chatgpt }
```
3. In project's (V3) `manifest.json`, add `lib/chatgpt.js` as a web accessible resource
```json
"web_accessible_resources": [{
"matches": ["<all_urls>"],
"resources": ["lib/chatgpt.js"]
}],
```
4. In scripts that need `chatgpt.js` (foreground/background alike), import it like so:
```js
(async () => {
const { chatgpt } = await import(chrome.runtime.getURL('lib/chatgpt.js'));
// Your code here...
})();
```
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7">
<div id="npm">
## 💾 Downloading via npm:
</div>
To download **chatgpt.js** for local customization, run the following command in your project's root:
```bash
npm install @kudoai/chatgpt.js
```
After installation, navigate to `node_modules/@kudoai/chatgpt.js` to find the library source.
</div>
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7">
<div id="usage">
## 💻 Usage
</div>
**chatgpt.js** was written w/ ultra flexibility in mind.
For example:
```js
chatgpt.getLastResponse();
chatgpt.getLastReply();
chatgpt.response.getLast();
chatgpt.get('reply', 'last');
```
Each call equally fetches the last response. If you think it works, it probably will... so just type it!
If it didn't, check out the extended [userguide](https://github.com/KudoAI/chatgpt.js/blob/v2.9.2/docs/USERGUIDE.md), or simply submit an [issue](https://github.com/KudoAI/chatgpt.js/issues) or [PR](https://github.com/KudoAI/chatgpt.js/pulls) and it will be integrated, ezpz!
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7">
<div id="showcase">
## 🤖 Made with chatgpt.js
</div>
https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3140b0f8a4
#
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.autoclearchatgpt.com/images/icons/openai/white/icon48.png?cece513"><img width=21 src="https://media.autoclearchatgpt.com/images/icons/openai/black/icon48.png?cece513"></picture> [Autoclear ChatGPT History](https://autoclearchatgpt.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://media.autoclearchatgpt.com/images/badges/awesome/badge.svg?2c0d9fc" style="margin:0 0 -2px 5px"></a>
> Auto-clear your ChatGPT query history for maximum privacy.
<br>[Install](https://docs.autoclearchatgpt.com/#-installation) /
[Readme](https://docs.autoclearchatgpt.com/#readme) /
[Discuss](https://github.autoclearchatgpt.com/discussions)
### <img width=24 src="https://media.bravegpt.com/images/icons/bravegpt/icon48.png?0a9e287"> [BraveGPT](https://bravegpt.com) <a href="https://www.producthunt.com/posts/bravegpt?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-bravegpt" target="_blank" rel="noopener"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=385630&theme=light" style="width: 112px; height: 24px; margin:0 0 -4px 5px;" width="112" height="24" /></a>
> Display ChatGPT answers in Brave Search sidebar (powered by GPT-4!)
<br>[Install](https://docs.bravegpt.com/#-installation) /
[Readme](https://docs.bravegpt.com/#readme) /
[Discuss](https://github.bravegpt.com/discussions)
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.chatgptautocontinue.com/images/icons/openai/white/icon48.png?7bbd222"><img width=21 src="https://media.chatgptautocontinue.com/images/icons/openai/black/icon48.png?7bbd222"></picture> [ChatGPT Auto-Continue ⏩](https://chatgptautocontinue.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://media.chatgptautocontinue.com/images/badges/awesome/badge.svg?3c80c0c" style="margin:0 0 -3px 3px"></a>
> Automatically continue generating multiple ChatGPT responses.
<br>[Install](https://docs.chatgptautocontinue.com/#-installation) /
[Readme](https://docs.chatgptautocontinue.com/#readme) /
[Discuss](https://github.chatgptautocontinue.com/discussions)
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.chatgptautorefresh.com/images/icons/openai/white/icon48.png?a45cf1e"><img width=21 src="https://media.chatgptautorefresh.com/images/icons/openai/black/icon48.png?a45cf1e"></picture> [ChatGPT Auto Refresh ↻](https://chatgptautorefresh.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://media.chatgptautorefresh.com/images/badges/awesome/badge.svg?1080f44" style="margin:0 0 -2px 5px"></a>
> Keeps ChatGPT sessions fresh to eliminate network errors + Cloudflare checks.
<br>[Install](https://docs.chatgptautorefresh.com/#-installation) /
[Readme](https://docs.chatgptautorefresh.com/#readme) /
[Discuss](https://github.chatgptautorefresh.com/discussions)
### <img width=23 src="https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302"> [DuckDuckGPT](https://duckduckgpt.com) <a href="https://www.producthunt.com/posts/duckduckgpt?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-duckduckgpt" target="_blank" rel="noopener"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=379261&theme=light" style="width: 112px; height: 24px; margin:0 0 -4px 5px;" width="112" height="24" /></a>
> Display ChatGPT answers in DuckDuckGo sidebar (powered by GPT-4!)
<br>[Install](https://docs.ddgpt.com/#-installation) /
[Readme](https://docs.ddgpt.com/#readme) /
[Discuss](https://github.ddgpt.com/discussions)
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.googlegpt.io/images/icons/googlegpt/white/icon32.png?8652a6e"><img width=21 src="https://media.googlegpt.io/images/icons/googlegpt/black/icon32.png?8652a6e"></picture> [GoogleGPT](https://googlegpt.io) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://media.googlegpt.io/images/badges/awesome/badge.svg?699c63d" style="margin:0 0 -2px 5px"></a>
> Display ChatGPT answers in Google Search sidebar (powered by GPT-4!)
<br>[Install](https://greasyfork.org/scripts/478597-googlegpt) /
[Readme](https://docs.googlegpt.io/#readme) /
[Discuss](https://github.googlegpt.io/discussions)
### <img width=23 src="https://media.chatgptjs.org/images/icons/platforms/thunderbird/icon32.png?313a9c5"> [ThunderAI](https://micz.it/thunderdbird-addon-thunderai/)
> Use ChatGPT in Thunderbird to enhance you emails, even with a free account!
<br>[Install](https://addons.thunderbird.net/thunderbird/addon/thunderai/) /
[Readme](https://micz.it/thunderdbird-addon-thunderai/) /
[Support](https://github.com/micz/ThunderAI/issues)
<p><br>
<a href="https://chatgptinfinity.com" target="_blank" rel="noopener">
<img width=555 src="https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@0f48c4e/chrome/media/images/tiles/marquee-promo-tile-1400x560.png">
</a>
<p><br>
<a href="https://chatgptwidescreen.com" target="_blank" rel="noopener">
<img width=555 src="https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@3ed0950/chrome/media/images/tiles/marquee-promo-tile-1400x560.png">
</a>
<p><br>
<p id="showcase-cta">
If you've made something w/ chatgpt.js you want to share, email <a href="mailto:showcase@chatgptjs.org">showcase@chatgptjs.org</a> or just open a <a href="https://github.com/KudoAI/chatgpt.js/pulls" target="_blank" rel="noopener">pull request</a>!
</p>
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7">
<div id="contributors">
## 🧠 Contributors
</div>
This library exists thanks to code, translations, issues & ideas from the following contributors:
<div align="center"><br>
[](https://github.com/adamlui)
[](https://github.com/mefengl)
[](https://github.com/Zin6969)
[](https://github.com/madruga8)
[](https://github.com/XiaoYingYo)
[](https://github.com/AliAlSarre)
[](https://github.com/madkarmaa)
[](https://github.com/wamoyo)
[](https://github.com/meiraleal)
[](https://github.com/eltociear)
[](https://github.com/Rojojun)
[](https://github.com/iamnishantgaharwar)
[](https://github.com/hakimel)
[](https://github.com/omahs)
[](https://www.linkedin.com/in/najam-ul-arfeen-khan/)
[](https://github.com/iambijayd)
[](https://github.com/abhinavm24)
[](https://github.com/deyvisml)
[](https://github.com/philly88r)
[](https://github.com/thomasgauthier)
[](https://github.com/pranav-bhatt)
[](https://github.com/hopana)
[](https://github.com/emtry)
[](https://github.com/thedayofcondor)
[](https://github.com/Luwa-Tech)
[](https://github.com/micz)
[](https://github.com/imranaalam)
[](https://github.com/dependabot)
<a href="https://chatgpt.com"><picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://images.weserv.nl/?url=https://cdn.jsdelivr.net/gh/KudoAI/chatgpt.js@main/media/images/icons/platforms/chatgpt/black-on-white/icon189.png?h=46&w=46&mask=circle&maxage=7d"><img src="https://images.weserv.nl/?url=https://cdn.jsdelivr.net/gh/KudoAI/chatgpt.js@main/media/images/icons/platforms/chatgpt/white-on-black/icon189.png?h=46&w=46&mask=circle&maxage=7d" title="ChatGPT"></picture></a>
<a href="https://poe.com"><picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://images.weserv.nl/?url=https://cdn.jsdelivr.net/gh/KudoAI/chatgpt.js@main/media/images/icons/platforms/poe/w-purple-blue-stripes/black-on-white/icon175.png?h=46&w=46&mask=circle&maxage=7d"><img src="https://images.weserv.nl/?url=https://cdn.jsdelivr.net/gh/KudoAI/chatgpt.js@main/media/images/icons/platforms/poe/w-purple-blue-stripes/white-on-black/icon175.png?h=46&w=46&mask=circle&maxage=7d" title="Poe"></picture></a>
[](https://github.com/ImgBotApp)
</div><br>
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7">
<div id="partners">
## 🤝 Partners
</div>
**chatgpt.js** is funded in part by:
<div id="partners-collage" align="center">
<picture>
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.chatgptjs.org/images/logos/partners/collage/white.png?3109608">
<img width=888 src="https://media.chatgptjs.org/images/logos/partners/collage/black.png?3109608">
</picture>
</div>
<br>
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7">
<div align="center">
**[Releases](https://github.com/KudoAI/chatgpt.js/releases)** /
[Userguide](https://github.com/KudoAI/chatgpt.js/blob/v2.9.2/docs/USERGUIDE.md) /
[Discuss](https://github.com/KudoAI/chatgpt.js/discussions) /
<a href="#--------------------------------------------------------------------------------english---------简体中文---------繁體中文---------日本---------한국인---------हिंदी---------नेपाली---------deutsch---------español---------français---------italiano---------nederlands---------português---------việt----">Back to top ↑</a>
</div>
| 🤖 A powerful, open source client-side JavaScript library for ChatGPT | ai,artificial-intelligence,chatgpt,nlp,bot,chat,chatbot,clientside,conversational-ai,conversational-bots | 2023-03-15T07:53:55Z | 2024-05-20T06:40:05Z | 2024-05-17T20:13:06Z | 18 | 190 | 3,771 | 2 | 117 | 1,792 | null | MIT | JavaScript |
deiucanta/chatpad | main | 
<h1 align="center">Chatpad AI</h1>
<h2 align="center">Premium quality UI for ChatGPT</h2>
<!-- <p align="center"><a href="https://chatpad.ai">Web App</a> & <a href="https://download.chatpad.ai">Desktop App</a></p> -->
<p align="center"><a href="https://chatpad.ai">Web App</a> & <a href="https://dl.todesktop.com/230313oyppkw40a">Desktop App</a></p>
Recently, there has been a surge of UIs for ChatGPT, making it the new "to-do app" that everyone wants to try their hand at. Chatpad sets itself apart with a broader vision - to become the ultimate interface for ChatGPT users.
### ⚡️ Free and open source
This app is provided for free and the source code is available on GitHub.
### 🔒 Privacy focused
No tracking, no cookies, no bullshit. All your data is stored locally.
### ✨ Best experience
Crafted with love and care to provide the best experience possible.
---
## Self-host using Docker
```
docker run --name chatpad -d -p 8080:80 ghcr.io/deiucanta/chatpad:latest
```
## Self-host using Docker with custom config
```
docker run --name chatpad -d -v `pwd`/config.json:/usr/share/nginx/html/config.json -p 8080:80 ghcr.io/deiucanta/chatpad:latest
```
## One click Deployments
<!-- Easypanel -->
[](https://easypanel.io/docs/templates/chatpad)
<!-- Netlify -->
[](https://app.netlify.com/start/deploy?repository=https://github.com/deiucanta/chatpad)
<!-- Vercel -->
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fdeiucanta%2Fchatpad&project-name=chatpad&repository-name=chatpad-vercel&demo-title=Chatpad&demo-description=The%20Official%20Chatpad%20Website&demo-url=https%3A%2F%2Fchatpad.ai&demo-image=https%3A%2F%2Fraw.githubusercontent.com%2Fdeiucanta%2Fchatpad%2Fmain%2Fbanner.png)
<!-- Railway -->
[](https://railway.app/template/Ak6DUw?referralCode=9M8r62)
[](https://cloud.digitalocean.com/apps/new?repo=https://github.com/deiucanta/chatpad/tree/main)
## Give Feedback
If you have any feature requests or bug reports, go to [feedback.chatpad.ai](https://feedback.chatpad.ai).
## Contribute
This is a React.js application. Clone the project, run `npm i` and `npm start` and you're good to go.
## Credits
- [ToDesktop](https://todesktop.com) - A simple way to make your web app into a beautiful desktop app
- [DexieJS](https://dexie.org) - A Minimalistic Wrapper for IndexedDB
- [Mantine](https://mantine.dev) - A fully featured React component library
| Not just another ChatGPT user-interface! | chatgpt,chatgpt-api,electron,javascript,openai,openai-api,react | 2023-03-17T18:18:06Z | 2024-02-05T20:19:06Z | null | 15 | 40 | 87 | 62 | 242 | 1,285 | null | AGPL-3.0 | TypeScript |
BishopFox/jsluice | main | null | Extract URLs, paths, secrets, and other interesting bits from JavaScript | javascript,security | 2023-03-14T01:49:31Z | 2024-01-10T14:51:40Z | null | 220 | 17 | 84 | 4 | 77 | 1,212 | null | MIT | Go |
ferrislucas/promptr | main | # Promptr
Promptr is a CLI tool that lets you use plain English to instruct OpenAI LLM models to make changes to your codebase. Changes are applied directly to the files that you reference from your prompt.<br /><br />
## Usage
`promptr [options] -p "your instructions" <file1> <file2> <file3> ...`
<br />
I've found this to be a good workflow:
- Commit any changes, so you have a clean working area.
- Author your prompt in a file. The prompt should be specific clear instructions.
- Make sure your prompt contains the relative paths of any files that are relevant to your instructions.
- Use Promptr to execute your prompt. Provide the path to your prompt file using the `-p` option:
`promptr -p my_prompt.txt`
Promptr will apply the model's code directly to your files. Use your favorite git UI to inspect the results.
<br /><br />
<br />
<br />
## Examples
The PR's below are good examples of what can be accomplished using Promptr. You can find links to the individual commits and the prompts that created them in the PR descriptions.
- https://github.com/ferrislucas/promptr/pull/38
- https://github.com/ferrislucas/promptr/pull/41
<br /><br />
## Templating
Promptr supports templating using [liquidjs](https://liquidjs.com/), which allows users to incorporate templating commands within their prompt files. This feature enhances the flexibility and reusability of prompts, especially when working on larger projects with repetitive patterns or standards.
#### Using Includes
Projects can have one or more "includes"—reusable snippets of code or instructions—that can be included from a prompt file. These includes may contain project-specific standards, instructions, or code patterns, enabling users to maintain consistency across their codebase.
For example, you might have an include file named `_poject.liquid` with the following content:
```liquid
This project uses Node version 18.
Use yarn for dependency management.
Use import not require in Javascript.
Don't include `module.exports` at the bottom of Javascript classes.
Alphabetize method names and variable declarations.
```
In your prompt file, you can use the `render` function from liquidjs to include this include file in a prompt file that you're working with:
```liquid
{% render '_project.liquid' %}
// your prompt here
```
This approach allows for the development of reusable include files that can be shared across multiple projects or within different parts of the same project.
#### Example Use Cases
- **Project-Wide Coding Standards**: Create an include file with comments outlining coding standards, and include it in every new code file for the project.
- **Boilerplate Code**: Develop a set of boilerplate code snippets for different parts of the application (e.g., model definitions, API endpoints) and include them as needed.
- **Shared Instructions**: Maintain a set of instructions or guidelines for specific tasks (e.g., how to document functions) and include them in relevant prompt files.
By leveraging the templating feature, prompt engineers can significantly reduce redundancy and ensure consistency in prompt creation, leading to more efficient and standardized modifications to the codebase.
<br /><br />
## Options
| Option | Description |
| ------ | ----------- |
| `-p, --prompt <prompt>` | Specifies the prompt to use in non-interactive mode. A path or a url can also be specified - in this case the content at the specified path or url is used as the prompt. The prompt can leverage the liquidjs templating system. |
| `-m, --model <model>` | Optional flag to set the model, defaults to `gpt-4o`. Using the value "gpt3" will use the `gpt-3.5-turbo` model. |
| `-d, --dry-run` | Optional boolean flag that can be used to run the tool in dry-run mode where only the prompt that will be sent to the model is displayed. No changes are made to your filesystem when this option is used. |
| `-i, --interactive` | Optional boolean flag that enables interactive mode where the user can provide input interactively. If this flag is not set, the tool runs in non-interactive mode. |
| `-t, --template <templateName | templatePath | templateUrl>` | Optional string flag that specifies a built in template name, the absolute path to a template file, or a url for a template file that will be used to generate the output. The default is the built in `refactor` template. The available built in templates are: `empty`, `refactor`, `swe`, and `test-first`. The prompt is interpolated with the template to form the payload sent to the model. |
| `-x` | Optional boolean flag. Promptr parses the model's response and applies the resulting operations to your file system when using the default template. You only need to pass the `-x` flag if you've created your own template, and you want Promptr to parse and apply the output in the same way that the built in "refactor" template output is parsed and applied to your file system. |
| `-o, --output-path <outputPath>` | Optional string flag that specifies the path to the output file. If this flag is not set, the output will be printed to stdout. |
| `-v, --verbose` | Optional boolean flag that enables verbose output, providing more detailed information during execution. |
| `-dac, --disable-auto-context` | Prevents files referenced in the prompt from being automatically included in the context sent to the model. |
| `--version` | Display the version and exit |
Additional parameters can specify the paths to files that will be included as context in the prompt. The parameters should be separated by a space.
<br />
<br />
## Requirements
- Node 18
- [API key from OpenAI](https://beta.openai.com/account/api-keys)
- [Billing setup in OpenAI](https://platform.openai.com/account/billing/overview)
<br />
## Installation
#### With yarn
```
yarn global add @ifnotnowwhen/promptr
```
#### With npm
```
npm install -g @ifnotnowwhen/promptr
```
#### With the release binaries
You can install Promptr by copying the binary for the current release to your path. Only MacOS is supported right now.
#### Set OpenAI API Key
An environment variable called `OPENAI_API_KEY` is expected to contain your OpenAI API secret key.
#### Build Binaries using PKG
```
npm run bundle
```
```
npm run build:<platform win|macos|linux>
```
```
npm run test-binary
```
## License
Promptr is released under the [MIT License](https://opensource.org/licenses/MIT).
| Promptr is a CLI tool that lets you use plain English to instruct GPT3 or GPT4 to make changes to your codebase. | ai,cli,command-line,chatgpt,gpt-3,gpt-35-turbo,gpt-4,gpt3,gpt4,prompt-engineering | 2023-03-24T02:38:38Z | 2024-05-22T00:36:26Z | 2024-05-18T23:26:25Z | 5 | 42 | 344 | 5 | 33 | 884 | null | MIT | JavaScript |
xenova/whisper-web | main | # Whisper Web
ML-powered speech recognition directly in your browser! Built with [🤗 Transformers.js](https://github.com/xenova/transformers.js).
Check out the demo site [here](https://huggingface.co/spaces/Xenova/whisper-web).
https://github.com/xenova/whisper-web/assets/26504141/fb170d84-9678-41b5-9248-a112ecc74c27
## Running locally
1. Clone the repo and install dependencies:
```bash
git clone https://github.com/xenova/whisper-web.git
cd whisper-web
npm install
```
2. Run the development server:
```bash
npm run dev
```
> Firefox users need to change the `dom.workers.modules.enabled` setting in `about:config` to `true` to enable Web Workers.
> Check out [this issue](https://github.com/xenova/whisper-web/issues/8) for more details.
3. Open the link (e.g., [http://localhost:5173/](http://localhost:5173/)) in your browser.
| ML-powered speech recognition directly in your browser | javascript,transformers,whisper | 2023-03-17T17:41:18Z | 2024-05-07T10:40:51Z | null | 4 | 12 | 74 | 15 | 97 | 575 | null | MIT | TypeScript |
WICG/observable | master | # Observable
This is the explainer for the Observable API proposal for more ergonomic and
composable event handling.
## Introduction
### `EventTarget` integration
This proposal adds an `.on()` method to `EventTarget` that becomes a better
`addEventListener()`; specifically it returns a [new
`Observable`](#the-observable-api) that adds a new event listener to the target
when its `subscribe()` method is called. The Observable calls the subscriber's
`next()` handler with each event.
Observables turn event handling, filtering, and termination, into an explicit, declarative flow
that's easier to understand and
[compose](https://stackoverflow.com/questions/44112364/what-does-this-mean-in-the-observable-tc-39-proposal)
than today's imperative version, which often requires nested calls to `addEventListener()` and
hard-to-follow callback chains.
#### Example 1
```js
// Filtering and mapping:
element
.on('click')
.filter((e) => e.target.matches('.foo'))
.map((e) => ({ x: e.clientX, y: e.clientY }))
.subscribe({ next: handleClickAtPoint });
```
#### Example 2
```js
// Automatic, declarative unsubscription via the takeUntil method:
element.on('mousemove')
.takeUntil(document.on('mouseup'))
.subscribe({next: e => … });
// Since reduce and some other terminators return promises, they also play
// well with async functions:
await element.on('mousemove')
.takeUntil(element.on('mouseup'))
.reduce((soFar, e) => …);
```
<details>
<summary>Imperative version</summary>
```js
// Imperative
const controller = new AbortController();
element.addEventListener(
'mousemove',
(e) => {
element.addEventListener('mouseup', (e) => controller.abort());
console.log(e);
},
{ signal: controller.signal },
);
```
</details>
#### Example 3
Tracking all link clicks within a container
([example](https://github.com/whatwg/dom/issues/544#issuecomment-351705380)):
```js
container
.on('click')
.filter((e) => e.target.closest('a'))
.subscribe({
next: (e) => {
// …
},
});
```
#### Example 4
Find the maximum Y coordinate while the mouse is held down
([example](https://github.com/whatwg/dom/issues/544#issuecomment-351762493)):
```js
const maxY = await element
.on('mousemove')
.takeUntil(element.on('mouseup'))
.map((e) => e.clientY)
.reduce((soFar, y) => Math.max(soFar, y), 0);
```
#### Example 5
Multiplexing a `WebSocket`, such that a subscription message is send on connection,
and an unsubscription message is send to the server when the user unsubscribes.
```js
const socket = new WebSocket('wss://example.com');
function multiplex({ startMsg, stopMsg, match }) {
if (socket.readyState !== WebSocket.OPEN) {
return socket
.on('open')
.flatMap(() => multiplex({ startMsg, stopMsg, match }));
} else {
socket.send(JSON.stringify(startMsg));
return socket
.on('message')
.filter(match)
.takeUntil(socket.on('close'))
.takeUntil(socket.on('error'))
.map((e) => JSON.parse(e.data))
.finally(() => {
socket.send(JSON.stringify(stopMsg));
});
}
}
function streamStock(ticker) {
return multiplex({
startMsg: { ticker, type: 'sub' },
stopMsg: { ticker, type: 'unsub' },
match: (data) => data.ticker === ticker,
});
}
const googTrades = streamStock('GOOG');
const nflxTrades = streamStock('NFLX');
const googController = new AbortController();
const googSubscription = googTrades.subscribe({next: updateView}, {signal: googController.signal});
const nflxSubscription = nflxTrades.subscribe({next: updateView, ...});
// And the stream can disconnect later, which
// automatically sends the unsubscription message
// to the server.
googController.abort();
```
<details>
<summary>Imperative version</summary>
```js
// Imperative
function multiplex({ startMsg, stopMsg, match }) {
const start = (callback) => {
const teardowns = [];
if (socket.readyState !== WebSocket.OPEN) {
const openHandler = () => start({ startMsg, stopMsg, match })(callback);
socket.addEventListener('open', openHandler);
teardowns.push(() => {
socket.removeEventListener('open', openHandler);
});
} else {
socket.send(JSON.stringify(startMsg));
const messageHandler = (e) => {
const data = JSON.parse(e.data);
if (match(data)) {
callback(data);
}
};
socket.addEventListener('message', messageHandler);
teardowns.push(() => {
socket.send(JSON.stringify(stopMsg));
socket.removeEventListener('message', messageHandler);
});
}
const finalize = () => {
teardowns.forEach((t) => t());
};
socket.addEventListener('close', finalize);
teardowns.push(() => socket.removeEventListener('close', finalize));
socket.addEventListener('error', finalize);
teardowns.push(() => socket.removeEventListener('error', finalize));
return finalize;
};
return start;
}
function streamStock(ticker) {
return multiplex({
startMsg: { ticker, type: 'sub' },
stopMsg: { ticker, type: 'unsub' },
match: (data) => data.ticker === ticker,
});
}
const googTrades = streamStock('GOOG');
const nflxTrades = streamStock('NFLX');
const unsubGoogTrades = googTrades(updateView);
const unsubNflxTrades = nflxTrades(updateView);
// And the stream can disconnect later, which
// automatically sends the unsubscription message
// to the server.
unsubGoogTrades();
```
</details>
#### Example 6
Here we're leveraging observables to match a secret code, which is a pattern of
keys the user might hit while using an app:
```js
const pattern = [
'ArrowUp',
'ArrowUp',
'ArrowDown',
'ArrowDown',
'ArrowLeft',
'ArrowRight',
'ArrowLeft',
'ArrowRight',
'b',
'a',
'b',
'a',
'Enter',
];
const keys = document.on('keydown').map((e) => e.key);
keys
.flatMap((firstKey) => {
if (firstKey === pattern[0]) {
return keys
.take(pattern.length - 1)
.every((k, i) => k === pattern[i + 1]);
}
})
.filter((matched) => matched)
.subscribe({
next: (_) => {
console.log('Secret code matched!');
},
});
```
<details>
<summary>Imperative version</summary>
```js
const pattern = [...];
// Imperative
document.addEventListener('keydown', e => {
const key = e.key;
if (key === pattern[0]) {
let i = 1;
const handler = (e) => {
const nextKey = e.key;
if (nextKey !== pattern[i++]) {
document.removeEventListener('keydown', handler)
} else if (pattern.length === i) {
console.log('Secret code matched!');
document.removeEventListener('keydown', handler)
}
}
document.addEventListener('keydown', handler)
}
})
```
</details>
### The `Observable` API
Observables are first-class objects representing composable, repeated events.
They're like Promises but for multiple events, and specifically with
[`EventTarget` integration](#eventtarget-integration), they are to events what
Promises are to callbacks. They can be:
- Created by script or by platform APIs, and passed to anyone interested in
consuming events via `subscribe()`
- Fed to [operators](#operators) like `Observable.map()`, to be composed &
transformed without a web of nested callbacks
Better yet, the transition from event handlers ➡️ Observables is simpler than
that of callbacks ➡️ Promises, since Observables integrate nicely on top of
`EventTarget`, the de facto way of subscribing to events from the platform [and
custom script](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/EventTarget#examples).
As a result, developers can use Observables without migrating tons of code on
the platform, since it's an easy drop-in wherever you're handling events today.
The proposed API shape can be found in
https://wicg.github.io/observable/#core-infrastructure.
The creator of an Observable passes in a callback that gets invoked
synchronously whenever `subscribe()` is called. The `subscribe()` method can be
called _any number of times_, and the callback it invokes sets up a new
"subscription" by registering the caller of `subscribe()` as a Observer. With
this in place, the Observable can signal any number of events to the Observer
via the `next()` callback, optionally followed by a single call to either
`complete()` or `error()`, signaling that the stream of data is finished.
```js
const observable = new Observable((subscriber) => {
let i = 0;
setInterval(() => {
if (i >= 10) subscriber.complete();
else subscriber.next(i++);
}, 2000);
});
observable.subscribe({
// Print each value the Observable produces.
next: console.log,
});
```
While custom Observables can be useful on their own, the primary use case they
unlock is with event handling. Observables returned by the new
`EventTarget#on()` method are created natively with an internal callback that
uses the same [underlying
mechanism](https://dom.spec.whatwg.org/#add-an-event-listener) as
`addEventListener()`. Therefore calling `subscribe()` essentially registers a
new event listener whose events are exposed through the Observer handler
functions and are composable with the various
[combinators](#operators) available to all Observables.
#### Constructing & converting objects to Observables
Observables can be created by their native constructor, as demonstrated above,
or by the `Observable.from()` static method. This method constructs a native
Observable from objects that are any of the following, _in this order_:
- `Observable` (in which case it just returns the given object)
- `AsyncIterable` (anything with `Symbol.asyncIterator`)
- `Iterable` (anything with `Symbol.iterator`)
- `Promise` (or any thenable)
Furthermore, any method on the platform that wishes to accept an Observable as a
Web IDL argument, or return one from a callback whose return type is
`Observable` can do so with any of the above objects as well, that get
automatically converted to an Observable. We can accomplish this in one of two
ways that we'll finalize in the Observable specification:
1. By making the `Observable` type a special Web IDL type that performs this
ECMAScript Object ➡️ Web IDL conversion automatically, like Web IDL does for
other types.
2. Require methods and callbacks that work with Observables to specify the type
`any`, and have the corresponding spec prose immediately invoke a conversion
algorithm that the Observable specification will supply. This is similar to
what the Streams Standard [does with async iterables
today](https://streams.spec.whatwg.org/#rs-from).
The conversation in https://github.com/domfarolino/observable/pull/60 leans
towards option (1).
#### Lazy, synchronous delivery
Crucially, Observables are "lazy" in that they do not start emitting data until
they are subscribed to, nor do they queue any data _before_ subscription. They
can also start emitting data synchronously during subscription, unlike Promises
which always queue microtasks when invoking `.then()` handlers. Consider this
[example](https://github.com/whatwg/dom/issues/544#issuecomment-351758385):
```js
el.on('click').subscribe({next: () => console.log('One')});
el.on('click').find(() => {…}).then(() => console.log('Three'));
el.click();
console.log('Two');
// Logs "One" "Two" "Three"
```
#### Firehose of synchronous data
By using `AbortController`, you can unsubscribe from an Observable even as it
synchronously emits data _during_ subscription:
```js
// An observable that synchronously emits unlimited data during subscription.
let observable = new Observable((subscriber) => {
let i = 0;
while (true) {
subscriber.next(i++);
}
});
let controller = new AbortController();
observable.subscribe({
next: (data) => {
if (data > 100) controller.abort();
}}, {signal: controller.signal},
});
```
#### Teardown
It is critical for an Observable subscriber to be able to register an arbitrary
teardown callback to clean up any resources relevant to the subscription. The
teardown can be registered from within the subscription callback passed into the
`Observable` constructor. When run (upon subscribing), the subscription callback
can register a teardown function via `subscriber.addTeardown()`.
If the subscriber has already been aborted (i.e., `subscriber.signal.aborted` is
`true`), then the given teardown callback is invoked immediately from within
`addTeardown()`. Otherwise, it is invoked synchronously:
- From `complete()`, after the subscriber's complete handler (if any) is
invoked
- From `error()`, after the subscriber's error handler (if any) is invoked
- The signal passed to the subscription is aborted by the user.
### Operators
We propose the following operators in addition to the `Observable` interface:
- `takeUntil(Observable)`
- Returns an observable that mirrors the one that this method is called on,
until the input observable emits its first value
- `finally()`
- Like `Promise.finally()`, it takes a callback which gets fired after the
observable completes in any way (`complete()`/`error()`).
- Returns an `Observable` that mirrors the source observable exactly. The callback
passed to `finally` is fired when a subscription to the resulting observable is terminated
for _any reason_. Either immediately after the source completes or errors, or when the consumer
unsubscribes by aborting the subscription.
Versions of the above are often present in userland implementations of
observables as they are useful for observable-specific reasons, but in addition
to these we offer a set of common operators that follow existing platform
precedent and can greatly increase utility and adoption. These exist on other
iterables, and are derived from TC39's [iterator helpers
proposal](https://github.com/tc39/proposal-iterator-helpers) which adds the
[following
methods](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype) to
`Iterator.prototype`:
- `map()`
- `filter()`
- `take()`
- `drop()`
- `flatMap()`
- `reduce()`
- `toArray()`
- `forEach()`
- `some()`
- `every()`
- `find()`
And the following method statically on the `Iterator` constructor:
- `from()`
We expect userland libraries to provide more niche operators that integrate with
the `Observable` API central to this proposal, potentially shipping natively if
they get enough momentum to graduate to the platform. But for this initial
proposal, we'd like to restrict the set of operators to those that follow the
precedent stated above, similar to how web platform APIs that are declared
[Setlike](https://webidl.spec.whatwg.org/#es-setlike) and
[Maplike](https://webidl.spec.whatwg.org/#es-maplike) have native properties
inspired by TC39's
[Map](https://tc39.es/ecma262/#sec-properties-of-the-map-prototype-object) and
[Set](https://tc39.es/ecma262/#sec-properties-of-the-set-prototype-object)
objects. Therefore we'd consider most discussion of expanding this set as
out-of-scope for the _initial_ proposal, suitable for discussion in an appendix.
Any long tail of operators could _conceivably_ follow along if there is support
for the native Observable API presented in this explainer.
Note that the operators `every()`, `find()`, `some()`, and `reduce()` return
Promises whose scheduling differs from that of Observables, which sometimes
means event handlers that call `e.preventDefault()` will run too late. See the
[Concerns](#concerns) section which goes into more detail.
## Background & landscape
To illustrate how Observables fit into the current landscape of other reactive
primitives, see the below table which is an attempt at combining
[two](https://github.com/kriskowal/gtor#a-general-theory-of-reactivity)
other [tables](https://rxjs.dev/guide/observable) that classify reactive
primitives by their interaction with producers & consumers:
<table>
<thead>
<tr>
<th></th>
<th colspan="2">Singular</th>
<th colspan="2">Plural</th>
</tr>
<tr>
<th></td>
<th>Spatial</th>
<th>Temporal</th>
<th>Spatial</th>
<th>Temporal</th>
</tr>
</thead>
<tbody>
<tr>
<th>Push</th>
<td>Value</td>
<td>Promise</td>
<td colspan="2">Observable</td>
</tr>
<tr>
<th>Pull</th>
<td>Function</td>
<td>Async iterator</td>
<td>Iterable</td>
<td>Async iterator</td>
</tr>
</tbody>
</table>
### History
Observables were first proposed to the platform in [TC39](https://github.com/tc39/proposal-observable)
in May of 2015. The proposal failed to gain traction, in part due to some opposition that
the API was suitable to be a language-level primitive. In an attempt to renew the proposal
at a higher level of abstraction, a WHATWG [DOM issue](https://github.com/whatwg/dom/issues/544) was
filed in December of 2017. Despite ample [developer demand](https://foolip.github.io/spec-reactions/),
_lots_ of discussion, and no strong objectors, the DOM Observables proposal sat mostly still for several
years (with some flux in the API design) due to a lack of implementer prioritization.
Later in 2019, [an attempt](https://github.com/tc39/proposal-observable/issues/201) at reviving the
proposal was made back at the original TC39 repository, which involved some API simplifications and
added support for the synchronous "firehose" problem.
This repository is an attempt to again breathe life into the Observable proposal with the hope
of shipping a version of it to the Web Platform.
### Userland libraries
In [prior discussion](https://github.com/whatwg/dom/issues/544#issuecomment-1433955626),
[Ben Lesh](https://github.com/benlesh) has listed several custom userland implementations of
observable primitives, of which RxJS is the most popular with "47,000,000+ downloads _per week_."
- [RxJS](https://github.com/ReactiveX/rxjs/blob/9ddc27dd60ac23e95b2503716ae8013e64275915/src/internal/Observable.ts#L10): Started as a reference implementation of the TC39 proposal, is nearly identical to this proposal's observable.
- [Relay](https://github.com/facebook/relay/blob/af8a619d7f61ea6e2e26dd4ac4ab1973d68e6ff9/packages/relay-runtime/network/RelayObservable.js): A mostly identical contract with the addition of `start` and `unsubscribe` events for observation and acquiring the `Subscription` prior to the return.
- [tRPC](https://github.com/trpc/trpc/blob/21bcb5e6723023d3acb0b836b63627922407c682/packages/server/src/observable/observable.ts): A nearly identical implemention of observable to this proposal.
- [XState](https://github.com/statelyai/xstate/blob/754afa022047518ef4813f7aa85398218b39f960/packages/core/src/types.ts#L1711C19-L1737): uses an observable interface in several places in their library, in particular for their `Actor` type, to allow [subscriptions to changes in state, as shown in their `useActor` hook](https://github.com/statelyai/xstate/blob/754afa022047518ef4813f7aa85398218b39f960/packages/xstate-solid/src/useActor.ts#L47-L51). Using an identical observable is also a [documented part](https://github.com/statelyai/xstate/blob/754afa022047518ef4813f7aa85398218b39f960/packages/xstate-solid/README.md?plain=1#L355-L368) of access state machine changes when using XState with SolidJS.
- [SolidJS](https://github.com/solidjs/solid/blob/46e5e78710cdd9f170a7afd0ddc5311676d3532a/packages/solid/src/reactive/observable.ts#L46): An identical interface to this proposal is exposed for users to use.
- [Apollo GraphQL](https://github.com/apollographql/apollo-client/blob/a1dac639839ffc5c2de332db2ee4b29bb0723815/src/utilities/observables/Observable.ts): Actually re-exporting from [zen-observable](https://github.com/zenparsing/es-observable) as [their own thing](https://github.com/apollographql/apollo-client/blob/a1dac639839ffc5c2de332db2ee4b29bb0723815/src/core/index.ts#L76), giving some freedom to reimplement on their own or pivot to something like RxJS observable at some point.
- [zen-observable](https://github.com/zenparsing/zen-observable/tree/8406a7e3a3a3faa080ec228b9a743f48021fba8b): A reference implementation of the TC39 observable proposal. Nearly identical to this proposal.
- [React Router](https://github.com/remix-run/react-router/tree/610ce6edf0993384300ff3172fc6db00ead50d33): Uses a `{ subscribe(callback: (value: T) => void): () => void }` pattern in their [Router](https://github.com/remix-run/react-router/blob/610ce6edf0993384300ff3172fc6db00ead50d33/packages/router/router.ts#L931) and [DeferredData](https://github.com/remix-run/react-router/blob/610ce6edf0993384300ff3172fc6db00ead50d33/packages/router/utils.ts#L1338) code. This was pointed out by maintainers as being inspired by Observable.
- [Preact](https://github.com/preactjs/preact/blob/ac1f145877a74e49f4c341e6acbf888a96e60afe/src/jsx.d.ts#LL69C1-L73C3) Uses a `{ subscribe(callback: (value: T) => void): () => void }` interface for their signals.
- [TanStack](https://github.com/TanStack/query/blob/878d85e44c984822e2e868af94003ec260ddf80f/packages/query-core/src/subscribable.ts): Uses a subscribable interface that matches `{ subscribe(callback: (value: T) => void): () => void }` in [several places](https://github.com/search?q=repo%3ATanStack/query%20Subscribable&type=code)
- [Redux](https://github.com/reduxjs/redux/blob/c2b9785fa78ad234c4116cf189877dbab38e7bac/src/createStore.ts#LL344C12-L344C22): Implements an observable that is nearly identical to this proposal's observable as a means of subscribing to changes to a store.
- [Svelte](https://github.com/sveltejs/svelte): Supports [subscribing](https://github.com/sveltejs/svelte/blob/3bc791bcba97f0810165c7a2e215563993a0989b/src/runtime/internal/utils.ts#L69) to observables that fit this exact contract, and also exports and uses a [subscribable contract for stores](https://github.com/sveltejs/svelte/blob/3bc791bcba97f0810165c7a2e215563993a0989b/src/runtime/store/index.ts) like `{ subscribe(callback: (value: T) => void): () => void }`.
- [Dexie.js](https://github.com/dexie/Dexie.js): Has an [observable implementation](https://github.com/solidjs/solid/blob/46e5e78710cdd9f170a7afd0ddc5311676d3532a/packages/solid/src/reactive/observable.ts#L46) that is used for creating [live queries](https://github.com/dexie/Dexie.js/blob/bf9004b26228e43de74f7c1fa7dd60bc9d785e8d/src/live-query/live-query.ts#L36) to IndexedDB.
- [MobX](https://github.com/mobxjs/mobx): Uses [similar interface](https://github.com/mobxjs/mobx/blob/7cdc7ecd6947a6da10f10d2e4a1305297b816007/packages/mobx/src/types/observableobject.ts#L583) to Observable internally for observation: `{ observe_(callback: (value: T)): () => void }`.
### UI Frameworks Supporting Observables
- [Svelte](https://github.com/sveltejs/svelte): Directly supports implicit subscription and unsubscription to observables simply by binding to them in templates.
- [Angular](https://github.com/angular/angular): Directly supports implicit subscription and unsubscription to observables using their `| async` "async pipe" functionality in templates.
- [Vue](https://github.com/vuejs/vuejs): maintains a [dedicated library](https://github.com/vuejs/vue-rx) specifically for using Vue with RxJS observables.
- [Cycle.js](https://github.com/cyclejs/cyclejs): A UI framework built entirely around observables
Given the extensive prior art in this area, there exists a public
"[Observable Contract](https://reactivex.io/documentation/contract.html)".
Additionally many JavaScript APIs been trying to adhere to the contract defined by the [TC39 proposal from 2015](https://github.com/tc39/proposal-observable).
To that end, there is a library, [symbol-observable](https://www.npmjs.com/package/symbol-observable?activeTab=dependents),
that ponyfills (polyfills) `Symbol.observable` to help with interoperability between observable types that adheres to exactly
the interface defined here. `symbol-observable` has 479 dependent packages on npm, and is downloaded more than 13,000,000 times
per week. This means that there are a minimum of 479 packages on npm that are using the observable contract in some way.
This is similar to how [Promises/A+](https://promisesaplus.com/) specification that was developed before `Promise`s were
adopted into ES2015 as a first-class language primitive.
## Concerns
One of the main [concerns](https://github.com/whatwg/dom/issues/544#issuecomment-351443624)
expressed in the original WHATWG DOM thread has to do with Promise-ifying APIs on Observable,
such as the proposed `first()`. The potential footgun here with microtask scheduling and event
integration. Specifically, the following innocent-looking code would not _always_ work:
```js
element
.on('click')
.first()
.then((e) => {
e.preventDefault();
// Do something custom...
});
```
If `Observable#first()` returns a Promise that resolves when the first event is fired on an
`EventTarget`, then the user-supplied Promise `.then()` handler will run:
- ✅ Synchronously after event firing, for events triggered by the user
- ❌ Asynchronously after event firing, for all events triggered by script (i.e., `element.click()`)
- This means `e.preventDefault()` will have happened too late and effectively been ignored
<details>
To understand why this is the case, you must understand how and when the microtask queue is flushed
(and thus how microtasks, including Promise resolution handlers, are invoked).
In WebIDL after a callback is invoked, the HTML algorithm
_[clean up after running script](https://html.spec.whatwg.org/C#clean-up-after-running-script)_
[is called](https://webidl.spec.whatwg.org/#ref-for-clean-up-after-running-script%E2%91%A0), and
this algorithm calls _[perform a microtask checkpoint](https://html.spec.whatwg.org/C#perform-a-microtask-checkpoint)_
if and only if the JavaScript stack is empty.
Concretely, that means for `element.click()` in the above example, the following steps occur:
1. To run `element.click()`, a JavaScript execution context is first pushed onto the stack
1. To run the internal `click` event listener callback (the one created natively by the
`Observable#from()` implementation), _another_ JavaScript execution context is pushed onto
the stack, as WebIDL prepares to run the internal callback
1. The internal callback runs, which immediately resolves the Promise returned by `Observable#first()`;
now the microtask queue contains the Promise's user-supplied `then()` handler which will cancel
the event once it runs
1. The top-most execution context is removed from the stack, and the microtask queue **cannot be
flushed**, because there is still JavaScript on the stack.
1. After the internal `click` event callback is executed, the rest of the event path continues since
event was not canceled during or immediately after the callback. The event does whatever it would
normally do (submit the form, `alert()` the user, etc.)
1. Finally, the JavaScript containing `element.click()` is finished, and the final execution context
is popped from the stack and the microtask queue is flushed. The user-supplied `.then()` handler
is run, which attempts to cancel the event too late
</details>
Two things mitigate this concern. First, there is a very simple workaround to _always_ avoid the
case where your `e.preventDefault()` might run too late:
```js
element
.on('click')
.map((e) => (e.preventDefault(), e))
.first();
```
...or if Observable had a `.do()` method (see https://github.com/whatwg/dom/issues/544#issuecomment-351457179):
```js
element
.on('click')
.do((e) => e.preventDefault())
.first();
```
...or by [modifying](https://github.com/whatwg/dom/issues/544#issuecomment-351779661) the semantics of
`first()` to take a callback that produces a value that the returned Promise resolves to:
```js
el.on('submit')
.first((e) => e.preventDefault())
.then(doMoreStuff);
```
Second, this "quirk" already exists in today's thriving Observable ecosystem, and there are no serious
concerns or reports from that community that developers are consistently running into this. This gives
some confidence that baking this behavior into the web platform will not be dangerous.
## Standards venue
There's been much discussion about which standards venue should ultimately host an Observables
proposal. The venue is not inconsequential, as it effectively decides whether Observables becomes a
language-level primitive like `Promise`s, that ship in all JavaScript browser engines, or a web platform
primitive with likely (but technically _optional_) consideration in other environments like Node.js
(see [`AbortController`](https://nodejs.org/api/globals.html#class-abortcontroller) for example).
Observables purposefully integrate frictionlessly with the main event-emitting interface
(`EventTarget`) and cancellation primitive (`AbortController`) that live in the Web platform. As
proposed here, observables join this existing strongly-connected component from the [DOM
Standard](https://github.com/whatwg/dom): Observables depend on AbortController/AbortSignal, which
depend on EventTarget, and EventTarget depends on both Observables and AbortController/AbortSignal.
Because we feel that Observables fits in best where its supporting primitives live, the WHATWG
standards venue is probably the best place to advance this proposal. Additionally, non-Web
ECMAScript embedders like Node.js and Deno would still be able to adopt Observables, and are even
likely to, given their commitment to Web platform [aborting and
events](https://github.com/whatwg/dom/blob/bf5f6c2a8f2d770da884cb52f5625c59b5a880e7/PULL_REQUEST_TEMPLATE.md).
This does not preclude future standardization of event-emitting and cancellation primitives in TC39
in the future, something Observables could theoretically be layered on top of later. But for now, we
are motivated to make progress in WHATWG.
In attempt to avoid relitigating this discussion, we'd urge the reader to see the following
discussion comments:
- https://github.com/whatwg/dom/issues/544#issuecomment-351520728
- https://github.com/whatwg/dom/issues/544#issuecomment-351561091
- https://github.com/whatwg/dom/issues/544#issuecomment-351582862
- https://github.com/whatwg/dom/issues/544#issuecomment-351607779
- https://github.com/whatwg/dom/issues/544#issuecomment-351718686
## User needs
Observables are designed to make event handling more ergonomic and composable.
As such, their impact on end users is indirect, largely coming in the form of
users having to download less JavaScript to implement patterns that developers
currently use third-party libraries for. As stated [above in the
explainer](https://github.com/domfarolino/observable#userland-libraries), there
is a thriving userland Observables ecosystem which results in loads of excessive
bytes being downloaded every day.
In an attempt to codify the strong userland precedent of the Observable API,
this proposal would save dozens of custom implementations from being downloaded
every day.
Additionally, as an API like `EventTarget`, `AbortController`, and one related
to `Promise`s, it enables developers to build less-complicated event handling
flows by constructing them declaratively, which may enable them to build more
sound user experiences on the Web.
## Authors:
- [Dominic Farolino](https://github.com/domfarolino)
- [Ben Lesh](https://github.com/benlesh)
| Observable API proposal | observable,observables,reactive-programming,dom,whatwg,html,javascript,web-application | 2023-03-18T16:24:03Z | 2024-05-05T14:49:32Z | null | 22 | 59 | 91 | 35 | 12 | 516 | null | NOASSERTION | Bikeshed |
Thysrael/Ficus | main | <p align = "center">
<img src="https://i.postimg.cc/NfqfDkRb/001.png" width="270px" />
<br><br>
<img src="https://img.shields.io/github/languages/top/thysrael/ficus" />
<img src="https://img.shields.io/github/downloads/thysrael/ficus/total" />
<img src="https://img.shields.io/github/issues/thysrael/ficus" />
<img src="https://img.shields.io/github/issues-pr-closed-raw/thysrael/ficus">
<img src="https://img.shields.io/github/release-date/thysrael/ficus">
<br><br>
</p>
<h1 align="center">Ficus</h1>
README: [中文](./README-zh.md) | [English](./README.md)
$\tt{Ficus}$ is a software for editing and managing `markdown` documents, developed by the $\tt{gg=G}$ team.
$\tt{Ficus}$ is named after the fig tree, which has the characteristics of "umbrella-like canopy, and one tree forming a forest". This is also the core service that this software wants to provide to users: to allow users' md documents to be browsed and edited like a fig tree, and to allow users' multiple md documents to be associated in various forms like a fig forest. We hope that users' experience is like the slogan of this software:
<p align = "center">
<img src="./img/slogan.png"/>
</p>
$\tt{Ficus}$ is developed based on the `Vue3, Electron` framework and provides installation packages for Windows, macOS, and Linux systems.
Detailed information can be obtained on the [ficus website](https://ficus.world/).
## Preview
**Rich Text Mode**
<p align = "center">
<img src="./img/rtext.png"/>
</p>
**Source Code Mode**
<p align = "center">
<img src="./img/src.png"/>
</p>
**Ficus Tree Mode**
<p align = "center">
<img src="./img/ftree.png"/>
</p>
**Ficus Forest Mode**
<p align = "center">
<img src="./img/fforest.png"/>
</p>
**Ficus Graph Mode**
<p align = "center">
<img src="./img/fgraph.png"/>
</p>
## Build
You can download the packaged application directly from the [download link](https://ficus.world/pages/53ff34/).
If you want to build it yourself, it is recommended to use the node v16.19.1 version and install the yarn package manager. Run the following commands in the shell:
```shell
git clone git@github.com:Thysrael/Ficus.git
cd ./Ficus/
yarn install
yarn electron:build
```
The resulting build can be found in `Ficus/dist_electron/linux_unpacked` or `Ficus/dist_electron/win_unpacked`.
Please note that the installation path cannot contain **Chinese**, and for Windows users, only the `Only for me` option is supported in the installation program:
<p align = "center">
<img src="./img/only.png"/>
</p>
## Run
It is recommended to use the node v16.19.1 version and install the yarn package manager. Run the following commands in the shell:
```shell
git clone git@github.com:Thysrael/Ficus.git
cd ./Ficus/
yarn install
yarn electron:serve
```
## Architecture
The project architecture is as shown in the figure.
<p align = "center">
<img src="https://github.com/Thysrael/Ficus/assets/72613958/71ae0189-964d-429c-8715-7bb4b8dd381a" />
</p>
The project directory structure is as follows:
```
├── build: Resources required for building
├── public: Art style resources
│ └── css
│ └── content-theme
├── src: Project source code
│ ├── common: Public resources
│ ├── IR: FicIR
│ │ ├── block: IR basic data structure
│ │ │ ├── base
│ │ │ │ ├── content: Node information
│ │ │ │ ├── linkedList
│ │ │ │ └── type: Type
│ │ │ └── factory: Factory method
│ │ ├── component: IR top-level data structure
│ │ ├── history: History record
│ │ ├── manager: Data manager, the only external interface
│ │ └── utils: External tools
│ │ └── marked: Markdown lexical analyzer
│ ├── main: Electron backend
│ │ ├── filesystem: File operation method
│ │ ├── helper: Utility method
│ │ └── update: Packaging method
│ └── renderer: Vue frontend
│ ├── assets: Front-end static resources
│ ├── components: Vue components
│ │ ├── header: Top bar
│ │ ├── mindEditor: Ficus mode editor
│ │ │ └── assets
│ │ ├── richTextEditor: Rich text editor
│ │ ├── sideBar: Sidebar
│ │ └── textArea: Text editor
│ ├── store: Storage
│ └── utils
│ └── keyboardbinding: Shortcut key binding
└── test: Unit test
├── IR: IR test
│ ├── data
│ ├── factory
│ └── manager
└── main: Main process method test
├── data
└── filesystem
```
We have also rewritten the software package repositories as follows:
- [ficus-editor](https://github.com/Hyggge/ficus-editor)
- [lute-for-ficus](https://github.com/Dofingert/lute-for-ficus)
- [vue3-mindmap](https://github.com/GwokHiujin/vue3-mindmap)
## Changelog
### v0.1.0
**Release Date**: April 26, 2023
**Description**: Alpha version release.
**Features Overview**:
- WYSIWYG markdown editor
- Open files, open folders
- Basic framework setup
- Hot updates
- Supports Ficus functionality, only supports Ficus diagram display, does not support Ficus diagram editing, and does not support Ficus forest functionality
- Please do not use Ficus to open important files at will, as this version poses a certain risk of clearing user files
### v0.1.3
**Release Date**: May 7, 2023
**Description**: Improved version of the alpha version.
**Features Overview**:
- New Ficus functionality plugin
- Mathematical formula completion
- Bug fixes based on user feedback
### v0.1.8
**Release Date**: June 5, 2023
**Description**: Pre-release of the beta version.
**Features Overview**:
- Ficus functionality fully developed
- Editing floating window
- Search and replace
- Preference settings
- Shortcut keys
- Image copy and paste
- After further polishing, startup interface design, and user experience improvement, the final version of beta will be released.
### v0.1.9
**Release Date**: June 8, 2023
**Description**: Pre-release 2 of the beta version.
**Features Overview**:
- Bug fixes based on user feedback
### v0.2.0
**Release Date**: June 13, 2023
**Description**: Beta version release.
**Features Overview**:
- Bug fixes based on user feedback
## Contribution
If you are interested in our project, please feel free to join us! You can [submit an issue](https://github.com/Thysrael/Ficus/issues/new) or submit a pull request.
For specific contributions or ways to support us, please refer to [here](https://ficus.world/pages/87ba98/).
## Team
<p align = "center">
<img src="https://github.com/Thysrael/Ficus/assets/72613958/504bc6aa-607c-417d-b6a5-87d18c7d8f9c" width="450px" />
</p>
gg=G is a software engineering team consisting of seven members from the BeiHang University, School of Computer Science and Engineering, Class of 2020. This is our [team blog](https://blog.csdn.net/gg_equal_G).
## License
[MIT](LICENSE) © gg=G
| Ficus is a software for editing and managing markdown documents, developed by the gg=G team. | electron,markdown-editor,notes-app,vue,javascript | 2023-03-16T08:57:48Z | 2023-06-13T15:32:54Z | 2023-06-21T12:31:11Z | 8 | 361 | 677 | 30 | 12 | 377 | null | MIT | Vue |
arakoodev/EdgeChains | ts | # EdgeChains : LLM chains on-the-edge
<div align="center">
<img src="https://img.shields.io/github/repo-size/arakoodev/EdgeChains?style=for-the-badge" />
<img src="https://img.shields.io/github/issues/arakoodev/EdgeChains?style=for-the-badge" />
<img src="https://img.shields.io/github/issues-pr/arakoodev/EdgeChains?style=for-the-badge" />
<img src="https://img.shields.io/github/issues-pr-closed-raw/arakoodev/EdgeChains?style=for-the-badge" />
<img src="https://img.shields.io/github/license/arakoodev/EdgeChains?style=for-the-badge" />
<img src="https://img.shields.io/github/forks/arakoodev/EdgeChains?style=for-the-badge" />
<img src="https://img.shields.io/github/stars/arakoodev/EdgeChains?style=for-the-badge" />
<img src="https://img.shields.io/github/contributors/arakoodev/EdgeChains?style=for-the-badge" />
<img src="https://img.shields.io/github/last-commit/arakoodev/EdgeChains?style=for-the-badge" />
</div>
---
**Join our [Discord](https://discord.gg/aehBPdPqf5) - we are one of the friendliest and nicest dev groups in Generative AI !**
Leveraging the full potential of Large language models (LLMs) often requires integrating them with other sources of computation or knowledge. Edgechains is specifically designed to **orchestrate** such applications.
EdgeChains is an open-source chain-of-thought engineering framework tailored for Large Language Models (LLMs)- like OpenAI GPT, LLama2, Falcon, etc. - With a focus on enterprise-grade deployability and scalability.
## Understanding EdgeChains
At EdgeChains, we take a unique approach to Generative AI - we think Generative AI is a deployment and configuration management challenge rather than a UI and library design pattern challenge. We build on top of a tech that has solved this problem in a different domain - Kubernetes Config Management - and bring that to Generative AI.
Edgechains is built on top of jsonnet, originally built by Google based on their experience managing a vast amount of configuration code in the Borg infrastructure.
Edgechains gives you:
* **Just One Script File**: EdgeChains is engineered to be extremely simple (whether Java, Python or JS). Executing production-ready GenAI applications is just one script file and one jsonnet file. You'll be pleasantly surprised!
* **Versioning for Prompts**: Prompts are written in jsonnet. Makes them easily versionable and diffable.
* **Automatic parallelism**: EdgeChains automatically parallelizes LLM chains & chain-of-thought tasks across CPUs, GPUs, and TPUs using the JVM.
* **Fault tolerance**: EdgeChains is designed to be fault-tolerant, and can continue to retry & backoff even if some of the requests in the system fail.
* **Scalability**: EdgeChains is designed to be scalable, and can be used to write your chain-of-thought applications on large number of APIs, prompt lengths and vector datasets.
## Why do you need Prompt & Chain Engineering
Most people who are new to Generative AI think that the way to use OpenAI or other LLMs is to simply ask it a question and have it magically reply. The answer is extremely different and complex.
### Complexity of Prompt Engineering
Generative AI, OpenAI and LLMs need you to write your prompt in very specific ways. Each of these ways to write prompts is very involved and highly complex - it is in fact so complex that there are research papers published for this. E.g.:
- [Reason & Act - REACT style prompt chains](https://ai.googleblog.com/2022/11/react-synergizing-reasoning-and-acting.html)
- [HyDE prompt chains - Precise Zero-Shot Dense Retrieval without Relevance Labels](https://arxiv.org/abs/2212.10496)
- [FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance](https://arxiv.org/abs/2305.05176)
### *Prompt Explosion* - Too many Prompts for too many LLMs
Moreover, these prompt techniques work on one kind of LLMs, but dont work on other LLMs. For e.g. prompts & chains that are written in a specific way for GPT-3.5 will need to be rewritten for Llama2 **to achieve the same goal**. This causes prompts to explode in number, making them challenging to version and manage.
### Prompt ***Drift***
Prompts change over time. This is called Prompt Drift. There is enough published research to show how chatGPT's behavior changes. Your infrastructure needs to be capable enough to version/change with this drift. If you use libraries, where prompts are hidden under many layers, then you will find it IMPOSSIBLE to do this.
Your production code will rot over time, even if you did nothing.
-[How is ChatGPT's behavior changing over time?](https://arxiv.org/abs/2307.09009)
### Testability in Production
One of the big challenge in production is how to keep testing your prompts & chains and iterate on them quickly. If your prompts sit beneath many layers of libraries and abstractions, this is impossible. But if your prompts ***live outside the code*** and are declarative, this is easy to do. In fact, in EdgeChains, you can have your entire prompt & chain logic sit in s3 or an API.
### Token costs & measurement
Each prompt or chain has a token cost associated with it. You may think that a certain prompt is very good...but it may be consuming a huge amount of tokens. For example, Chain-of-Thought style prompts consume atleast 3X as many **output tokens** as a normal prompt. you need to have fine-grained tracking and measurement built into your framework to be able to manage this. Edgechains has this built in.
---
# Setup
1. Clone the repo into a public GitHub repository (or fork [https://github.com/arakoodev/EdgeChains/fork](https://github.com/arakoodev/EdgeChains/fork)).
```
git clone https://github.com/arakoodev/EdgeChains/
```
2. Go to the project folder
```
cd EdgeChains
```
# Run the ChatWithPdf example
This section provides instructions for developers on how to utilize the chat with PDF feature. By following these steps, you can integrate the functionality seamlessly into your projects.
---
1. Go to the ChatWithPdfExample
```
cd JS/edgechains/examples/chat-with-pdf/
```
2. Install packages with npm
```
npm install
```
3. Setup you secrets in `secrets.jsonnet`
```
local SUPABASE_API_KEY = "your supabase api key here";
local OPENAI_API_KEY = "your openai api key here";
local SUPABASE_URL = "your supabase url here";
{
"supabase_api_key":SUPABASE_API_KEY,
"supabase_url":SUPABASE_URL,
"openai_api_key":OPENAI_API_KEY,
}
```
4. Database Configuration
- Ensure that you have a PostgreSQL Vector database set up at [Supabase](https://supabase.com/vector).
- Go to the SQL Editor tab in Supabase.
- Create a new query using the New Query button.
- Paste the following query into the editor and run it using the Run button in the bottom right corner.
```
create table if not exists documents (
id bigint primary key generated always as identity,
content text,
embedding vector (1536)
);
create or replace function public.match_documents (
query_embedding vector(1536),
similarity_threshold float,
match_count int
)
returns table (
id bigint,
content text,
similarity float
)
language sql
as $$
select
id,
content,
1- (documents.embedding <=> query_embedding) as similarity
from documents
where 1 - (documents.embedding <=> query_embedding) > similarity_threshold
order by documents.embedding <=> query_embedding
limit match_count;
$$;
```
- You should see a success message in the Result tab.

5. Run the example
```
npm run start
```
- Then you can run the ChatWithPdf example using npm run start and continue chatting with the example.pdf.
⚠️👉Remember: Comment out the InsertToSupabase function if you are running the code again; otherwise, the PDF data will be pushed again to the Supabase vector data.
---
# Compilation to webassembly for edge devices
## Setup
1. Select latest successful workflow run from [here](https://github.com/arakoodev/EdgeChains/actions/workflows/release-wasm.yml) .
2. Then scroll to bottom and download artifact . A zip will be downloaded to your system
3. Extract the zip .
4. You will have two binaries `arakoo` *(this is runtime)* and `javy` *(this is our extended javy compiler)*
5. Copy these two binaries to `~/.local/bin` or `/usr/bin` *(if you want all users to access the binaries )*
6. Open terminal and grant executable permission to installed binaries by running `chmod +x "<path of installed javy>"` and `chmod +x "<path of installed arakoo>"`
*You are now good to go ! Have look at below section which describe how you can create apis in hono and compile them to wasm*
## Compiling js to wasm
1. Open Terminal
2. Create a new directory `helloworld` by running
```mkdir helloworld && cd helloworld```
3. Initialize it
```npm init -y```
4. Add `"type":"module"` in package.json to use es6 syntax.
5. Install hono `npm install hono@^3.9` (as of now only this hono version is supported)
6. Create a `index.js` file and open it with your favourite editor.
7. Paste below code in it
```js
import {Hono} from "hono";
const app = new Hono();
app.get("/hello", async (c)=>{
return c.json({message : "hello world"})
})
app.fire();
```
8. Now since javy doesn't have capablity to require or imort module . So we will bundle the index.js with esbuild.
9. To do so , install esbuild as developer dependency
```
npm install esbuild --save-dev
```
10. Create a build file `build.js`
11. Paste below code in it
```js
import {build} from "esbuild";
build({
entryPoints: ["index.js"], // specify input file ( in this case this the index.js file we created earlier)
bundle: true, // this allows esbuild to find all dependencies and bundle them together in one file
outfile: "dist.js", // the name of the output bundle file you desire ( in this case we named it dist.js
platform:"node",
}).catch((error)=>{
console.log("Error ",error);
process.exit(1);
})
```
12. Now compile bundled file with javy
```
javy compile dist.js
```
13. You should see a new file `index.wasm` in the directory
## Executing wasm
You can execute the compiled wasm with installed `arakoo` runtime.
To do so simple run
```
arakoo index.wasm
```
You should see output as -

Send get request to http://localhost:8080/hello to test the api.
You should get response as shown below \-

---
## Contribution guidelines
**If you want to contribute to EdgeChains, make sure to read the [Contribution CLA](https://github.com/arakoodev/.github/blob/main/CLA.md). This project adheres to EdgeChains [code of conduct]( https://github.com/arakoodev/.github/blob/main/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.**
**We use [GitHub issues](https://github.com/arakoodev/edgechains/issues) for tracking requests and bugs.**
<!-- Add when discussions are present
please see [Automata Discussions](https://github.com/arakoodev/edgechains/discussions) for general questions and discussion, and please direct specific questions. -->
To ensure clean and effective pull request merges, we follow a specific approach known as **squash and merge**. It is crucial to avoid issuing multiple pull requests from the same local branch, as this will result in failed merges.
The solution is straightforward: adhere to the principle of **ONE BRANCH PER PULL REQUEST**. We strictly follow this practice to ensure the smooth integration of contributions.
If you have inadvertently created a pull request from your master/main branch, you can easily rectify it by following these steps:
> Note: Please ensure that you have committed all your changes before proceeding, as any uncommitted changes will be lost.
if you have created this pull request using your master/main branch, then follow these steps to fix it:
```
git branch newbranch # Create a new branch, saving the desired commits
git checkout master # checkout master, this is the place you want to go back
git reset --hard HEAD~3 # Move master back by required number of commits
git checkout newbranch # Go to the new branch that still has the desired commits.
```
Now, you can create a pull request.
The Edgechains project strives to abide by generally accepted best practices in open-source software development.
## Future
We are committed to the continuous improvement and expansion of EdgeChains. Here are some of the exciting developments we have planned for the future. Our team is dedicated to pushing the boundaries of what is possible with large language models and ensuring that EdgeChains remains at the forefront of innovation. We are actively exploring and incorporating the latest advancements in large language models, ensuring that EdgeChains stays up to date with cutting-edge technologies and techniques. We also have a strong focus on optimizing the scalability and performance of EdgeChains. Our goal is to improve parallelism, fault tolerance, and resource utilization, allowing applications built with EdgeChains to handle larger workloads and deliver faster responses.
To support our growing user community, we are expanding our documentation and resources. This includes providing comprehensive tutorials, examples, and guides to help developers get started and make the most out of EdgeChains
## 💌 Acknowledgements
We would like to express our sincere gratitude to the following individuals and projects for their contributions and inspiration:
- First Hat tip to [Spring](https://github.com/spring-projects/spring-framework).
- We draw inspiration from the spirit of [Nextjs](https://github.com/vercel/next.js/).
- We extend our appreciation to all the [contributors](https://github.com/wootzapp/wootz-browser/graphs/contributors) who have supported and enriched this project.
- Respect to LangChain, Anthropic, Mosaic and the rest of the open-source LLM community. We are deeply grateful for sharing your knowledge and never turning anyone away.
## ✍️ Authors and Contributors
- Sandeep Srinivasa ([@sandys](https://twitter.com/sandeepssrin))
- Arth Srivastava [@ArthSrivastava](https://github.com/ArthSrivastava)
- Harsh Parmar [@Harsh4902](https://github.com/Harsh4902)
- Rohan Guha ([@pizzaboi21](https://github.com/pizzaboi21))
- Anuran Roy ([@anuran-roy](https://github.com/anuran-roy))
## License
EdgeChains is licensed under the MIT license.
| EdgeChains.js Typescript/Javascript production-friendly Generative AI. Based on Jsonnet. Works anywhere that Webassembly does. Prompts live declaratively & "outside code in config". Kubernetes & edge friendly. Compatible with OpenAI GPT, Gemini, Llama2, Anthropic, Mistral and others | gpt,llm,openai,typescript,agent,ai,ai-agents,autogpt,generative-ai,web-development | 2023-03-20T06:04:40Z | 2024-05-22T06:47:46Z | 2024-05-13T18:35:25Z | 19 | 242 | 362 | 98 | 63 | 298 | null | MIT | JavaScript |
gitroomhq/super-star | main | 
<h1 align="center"><a href="https://github20k.com">GitHub 20K</a> - Super-Star ⭐️✨</h1>
<p align="center">
<a href="https://opensource.org/licenses/MIT" target="_blank">
<img alt="License: MIT License" src="https://img.shields.io/badge/License-MIT License-yellow.svg" />
</a>
<a href="https://docs.github20k.com" target="_blank">
<img alt="Docs" height="20" src="https://user-images.githubusercontent.com/100117126/228219809-26349cfa-de50-4a7e-8528-741730a9f786.png" />
</a>
<a href="https://github-20k.getrewardful.com" target="_blank">
<img alt="Affiliate" height="20" src="https://user-images.githubusercontent.com/100117126/228555730-e210ec6d-5922-4e77-ac64-d05942cc3ade.png" />
</a>
</p>
<p align="center">The open-source course sales page built with NextJS and Tailwind</p>
## Super-Star
What can you find here:
- A beautiful sales page for selling your course.
- Integration with payment providers.
- Integration with newsletter providers.
- Integration with CRM providers.
- Integration with Courses providers.
- Integration with CMSs for blogs.
## Installation
For a quick installation and docs please check:
https://docs.github20k.com
## Available Providers
### [Payment](https://github.com/github-20k/course/tree/main/src/services/payment/providers)
- [x] [Stripe](https://stripe.com)
- [ ] [Paddle](https://paddle.com)
- [ ] [Chargebee](https://www.chargebee.com)
- [ ] [Paypal](https://www.paypal.com)
- [ ] [FastSpring](https://fastspring.com)
- [ ] [2checkout](https://2checkout.com)
- [ ] [Bluesnap](https://bluesnap.com)
### [Newsletter](https://github.com/github-20k/course/tree/main/src/services/newsletter/providers)
- [x] [MailChimp](https://mailchimp.com)
- [x] [Beehiiv](https://beehiiv.com)
- [ ] [Sendinblue](https://sendinblue.com)
- [ ] [MailerLite](https://www.mailerlite.com)
- [ ] [Drip](https://www.drip.com)
- [ ] [Moosend](https://moosend.com)
### [CRM](https://github.com/github-20k/course/tree/main/src/services/crm/providers)
- [x] [PipeDrive](https://www.pipedrive.com)
- [ ] [Monday](https://monday.com)
- [ ] [Salesforce](https://www.salesforce.com)
- [ ] [Hubspot](https://www.hubspot.com)
- [ ] [Trello](https://trello.com)
### [Course](https://github.com/github-20k/course/tree/main/src/services/course/providers)
- [x] [Teachable](https://www.teachable.com)
- [ ] [Thinkific](https://thinkific.com)
- [ ] [Udemy Business](https://www.udemy.com)
- [ ] [SamCart](https://samcart.com)
- [ ] [Learnworlds](https://learnworlds.com)
- [ ] [Podia](https://podia.com)
- [ ] [Freshlearn](https://freshlearn.com)
<p> </p>
## Who am I?
| <img width="200" src="https://user-images.githubusercontent.com/100117126/226546227-7485f708-a2f4-4dc5-b97b-a207a241c34b.JPEG" /> | <p align="left"> <sub>Hi there, I'm [Nevo](https://github.com/nevo-david) ✨.</sub></p><p align="left"><sub>I started programming when I was 21, and now I'm 32.</sub></p><p align="left"><sub>For years, I've been working as a full-stack developer and team leader.</sub></p><p align="left"><sub>Three years ago, I started my own startup called Linvo and sold it.</sub></p><p align="left"><sub>It was a real struggle to grow.</sub></p><p align="left"><sub>Coding was the easy part, but getting people to use the product was a different story.</sub></p><p align="left"><sub>That experience made me want to help other startups succeed.</sub></p><p align="left"><sub>I decided to focus on growth strategies.</sub></p><p align="left"><sub>That's why I joined Novu, with the goal of letting everyone know about it.</sub></p> |
|-----------------------------------------------------------------------------------------------------------------------|-----------------|
Follow me on: [Twitter](https://twitter.com/nevodavid), [GitHub](https://github.com/nevo-david) and [DEV.to](https://dev.to/nevodavid)
<p> </p>
## Please help me out by starring this repository

</div>
| The open-source course landing page 🚀🚀🚀 | javascript,react,course,nextjs,nodejs,tailwindcss | 2023-03-20T15:48:47Z | 2023-06-28T18:23:31Z | 2023-04-15T04:02:37Z | 3 | 3 | 108 | 8 | 18 | 223 | null | MIT | TypeScript |
coderdost/JavaScript-Course-2023 | main | # JavaScript Full Course 2023
- [JavaScript Video](https://youtu.be/lGmRnu--iU8)
- [Course Notes Slide PDF](slides.pdf)
- [Advanced JavaScript Video](https://www.youtube.com/watch?v=gUUCmRJjVvo)
- [Advanced JavaScript Notes](https://coderdost.github.io/)
### Note: More questions to be updated in 24 Hours.
## Chapter 1 (Data Types)
### Assignments
**1.1:** Create a code to check difference between `null` and `undefined` data type. Also check their type using `typeof`.
**1.2:** Which type of variables (var, let or const) must be **initialized** at the time of declaration?
**1.3:** Guess the **Output** and Explain Why?
_[From video lecture 1.5]_
```js
let languages = 'java javaScript python cSharp';
let result = languages.lastIndexOf('S');
console.log(result);
```
**1.4:** Guess the **Output** and Explain Why?
_[From video lecture 1.8]_
```js
let variable = 'hello programmers';
let result = Number(variable);
console.log(result);
```
**1.5:** Guess the **Output** and Explain Why?
```js
let num1 = 32;
let num2 = '32';
let result1 = num1 !== num2;
let result2 = num1 != num2;
console.log(result1, result2);
```
**1.6:** Guess the **Output** and explain Why?
```js
let str = 'Hello Programmers';
let result = str.includes('r');
console.log(result);
```
**1.7:** Guess the **Output** and Explain Why?
_[From video lecture 1.6]_
```js
let num1 = 2;
let num2 = 5;
let result = num1 ** num2 * 2;
console.log(result);
```
**1.8:** Guess the **Output** and Explain Why?
```js
let num1 = [1, 2, 4, 5];
let num2 = [6, 5, 8, 0];
let result = num1.concat(num2);
console.log(result);
```
**1.9:** Guess the **Output** and Explain Why?
```js
let a = 5;
let b = 7;
let c = 8;
let result = a < b > c;
console.log(result);
```
**1.10:** If your State is split into **four** equal parts such that in each part there are **1/4** number of people live. You have to find how many people would live in each part? which operators will you use ?
_[From video lecture 1.6]_
## Chapter 2 (Control Flow / Conditional)
### Assignments:
**2.1:** Guess the **Output** And Explain Why?
```js
let i = 4;
for (let j = 0; i < 10; i++) {
if (j === 1 || i === 6) {
continue;
} else {
console.log(i, j);
if (i === 7) {
break;
}
}
}
```
**2.2:** Guess the **Output** and Explain Why?
```js
let i = 0;
for (i; i < 5; i++) {
console.log(i);
}
```
**2.3:** Write a simple **Program** in which You have to print first **10** numbers in **descending** order (10...1)?
**2.4:** Lets say `John` is looking a new `country` to live in. He want to live in a country that speaks `English`, has less than 10 million people. One of the `food` option between these two must present `Spanish food` OR `English food`.
**Write** an if/else if statement to help john figure out Your country is right for him?
_[From video lecture 2.4]_
**2.5:** Guess the **Output** And Explain Why?
```js
for (let i = 0; i < 10; i++) {
console.log(i);
}
console.log(i);
```
**2.6:** use **nested-if** statement to check your `age>18`
than check your height `height > 5.10`.
If **both** true show any message(**I can sit in exam**) in the console?
**2.7:** Create two variables `grade` and `passingYear`.Check if your `grade == "A"` and `passingYear < 2020` with the help of **ternary** operator(Not allowed to use any logical operator).If both condition `true` print on console **Qualify**. Otherwise **Fail**
_[From video lecture 2.9]_
## Chapter 3 (Functions)
### Assignments
**3.1:** Create a **function Declaration** called `describeYourState` Which take three parameters `Population`, `traditional food` and `historical place`. Based on this input function should return a `String` with this format.
**My state population is ** Its traditional food is ** and historical place name is \_\_\_**
**3.2:** Create a **function expression** which does the exact same thing as defined in **Question 1**
**3.3:** Create function **addition** which takes two numbers as an argument And return the result of **sum of two numbers**
**Important Note**: In the function call you are **not** passing any **parameter**. You can modify function to achieve this.
_[From video lecture 3.2]_
```js
Example;
function addition(num1, num2) {
return num1 + num2;
}
console.log(addition()); //You are not allowed to modify this line any more
```
**3.4:** Identify which **type** of value passed below into the function **greet()**. What will be the return value of greet ?
```js
let person = {
name: 'john',
age: 25,
};
function greet(person) {
person.name = `Mr ${person.name}`;
return `Welcome ${person.name}`;
}
greet(person);
```
**3.5:** Create **higher** order function named as `transformer` which take `string` and `firstUpperCaseWord` function as an arguments. `firstUpperCaseWord` is function which make first word UpperCase from a given `String`.
_[From video lecture 3.5]_
**3.6:** create function which will display Your name after every 5 seconds
_[From video lecture 3.8]_
```js
input
let yourName = "john";
output
"john" after 5 second
"john" after 5 second
"john" after 5 second
"john" after 5 second
.
.
.
and so on.
```
**3.7:** Guess the **Output** And Explain Why?
_[From video lecture 3.4]_
```js
let arrowFunction = (name = 'Coders') => {
`Welcome ${name}`;
};
console.log(arrowFunction('Programmers'));
```
**3.8:** Create a JavaScript **Function** to find the area of a triangle where lengths of the three of its sides are 5, 6, 7. : **Area = Square root of√s(s - a)(s - b)(s - c)** where **s** is half the perimeter, or **(a + b + c)/2**.
```js
input: area_of_triangle(5, 6, 7);
output: 14.69;
```
**3.9:** Create a JavaScript **Function** to capitalize the first letter of each word of a given string.
```js
input: capitalize('we are the champions');
output: 'We Are The Champions';
```
## Chapter 4 (Objects)
### Assignments
**4.1:** Guess the **Output** And Explain ?
```js
console.log(Math.round(Math.random() * 10));
```
**4.2:** Create an object called `country` for a country of your choice, containing properties `name` , `capital`, `language`, `population` and `neighbors`
1. Increase the country population by two million using **dot** notation.
2. Decrease the country population by one million using **bracket** notation.
3. Make `language` value in Uppercase.
_[From video lecture 4.1]_
**4.3:** Guess the **Output** and explain Why?
```js
let car = {
color: 'Blue',
model: 2021,
company: 'Toyota',
};
let carColor = 'Blue';
console.log(car[carColor]);
console.log(car.carColor);
```
**4.4:** Create a method **describeCar** inside `car` object in which you have to print like this in console using template literals
_[From video lecture 4.3]_
**Company of my car is ** . It color is** And Model of my car is \_\_**
**4.5:** Generate random numbers between 0 and 10 using **trunc** method of **MATH** object
```js
Example
getRandomNumbers(){
}
Ouput value 0-10
```
**4.6:** Guess the **Output** and Explain Why?
_[From video lecture 4.4]_
```js
let arr = [1,2,3,4];
arr.forEach(elem =>{
if(elem == 1){
continue;
}
console.log(elem);
})
```
**4.7:** Guess the **Output** And explain Why?
**Important Note**: if there is any error, How we can solve that **error**?
_[From video lecture 4.7]_
```js
let airplane = {
flightName: 'fly india',
atacode: 'FI',
ratings: 4.9,
book(passenger, flightNum) {
console.log(
`${passenger} Booked flight in ${this.flightName} with flight Number ${this.atacode}${flightNum}`
);
},
};
let bookMethod = airplane.book;
bookMethod('john', 8754);
```
**4.8:** Guess the **Output** And Explain Why?
_[From video lecture 4.9]_
```js
let arr = [1, 2, 3, 4];
for (let elem in arr) {
console.log(elem);
}
```
**4.9:** You have to create a **Shopping_Cart** array with following features :
- **addItem(itemName)** : this function should add string itemName to cart
- **removeItem(itemName)**: this function should remove any item which matches itemName. _Hint : search for index of itemName and then remove it_
- **cartSize()** : returns size of cart in terms of number of cart Items.
## Chapter 5 (DOM)
### Assignments
**5.1:** Explain difference between **innerText** and **innerHTML** in the following example?
_[From video lecture 5.4]_
**HTML**
```html
<div id="content">
<h2>Hello Coders</h2>
</div>
```
**JavaScript**
```js
let content = document.getElementById('content');
console.log(content.innerHTML);
console.log(content.innerText);
```
## Chapter 6 ( DOM - Forms )
### Assignments
**6.1:** Create regex for password with the following **validations**.
1. Length of password at least of 8 characters
2. contain at least one special character
3. contain at least one alphabet (a-z) character
_[From video lecture 6.2]_
**HTML**
```html
<form action="" class="testForm">
<input
type="password"
name=""
class="inputPass"
placeholder="Enter Password"
/>
<input type="submit" value="Check Password" />
</form>
```
**JavaScript**
```js
let form = document.querySelector('.testForm');
let inputPassword = document.querySelector('.inputPass');
let requiredPasswordPattern = 'create your regex here';
form.addEventListener('submit', (e) => {
e.preventDefault();
let password = inputPassword.value;
let result = requiredPasswordPattern.test(password);
if (result == true) {
console.log('Your password validated successfully');
} else {
console.log('try again with new password');
}
});
```
## Chapter 7 (Array Methods)
### Assignments
**7.1:** You have given array of **strings**. Your task is to obtain last **two** elements of given array using **slice** method?
```js
Input;
let admins = ['john', 'paul', 'Neha', 'harry'];
Ouput[('Neha', 'harry')];
```
**7.2:** You have given an array of **5** elements(1-5). Your task is defined as below.
_[From video lecture 7.2]_
```js
const arr = [1, 4, 7, 6, 8];
```
1. You have to delete **2** elements starting from index **2**.
2. You have to add **3** new elements on index **1** choice.
3. Display the **2 deleted** elements in console (from step 1)
**7.3:** What happens if we use **negative** number inside **slice** method?
```js
const arr = [1, 4, 7, 6, 8];
```
Example : arr.slice(-2);
**7.4:** Write **three** different methods/approaches to get **last** element of the array?
```js
const arr = [1, 4, 7, 6, 8];
```
_[From video lecture 7.3]_
**7.5:** You have given an array of **nums**. Create new Array with the help of **nums** array. In new Array each element will be a result of **multiplication by 2** of the original array element
```js
const arr = [1, 4, 7, 6, 8];
```
_[From video lecture 7.4]_
```js
Example: Input;
let nums = [1, 2, 3, 4, 5];
output;
updatedNums = [2, 4, 6, 8, 10];
```
**7.6** You have given an array of **scores** in which score of each student stored. Create a new array with the help of original **scores** array in which only those scores exist **greater** than 75%
```js
const arr = [10, 40, 70, 60, 80];
```
_[From video lecture 7.5]_
```js
let totalScore = 150;
let scores = [55, 76, 35, 77, 88, 97, 120, 136, 140];
```
**7.7:** You have given an array of numbers **nums**. You have to find **sum** of all array elements using **reduce** method?
```js
let nums = [2, 3, 5, 7, 8, 4, 9];
```
**7.8:** You have given an array of numbers **nums**. You have to find the index of value **8** using **built-in** method of array?
```js
let nums = [2, 3, 5, 6, 8, 6, 4, 8];
```
**7.9:** You have given an array of **objects** of users as below. Find the specified **user** with `name = "John" `
Also find the **position** `(index+1)` of that **user** inside the array?
```js
let users = [
{
name: 'Paul',
age: 24,
verified: true,
},
{
name: 'John',
age: 21,
verified: false,
},
{
name: 'Neha',
age: 19,
verify: true,
},
];
```
**7.10:** Guess the **Output** and explain Why?
```js
let nums = [1, 2, 4, 5, [6, [8]], [9, 0]];
let res1 = nums.flat(1);
let res2 = nums.flatMap((elem) => elem);
console.log(res1, res2);
```
**7.11:** You have given an array of `nums`. Write a program to `sort` the elements of array in `descending` order **using built-in** method of array.
```js
Input;
let nums = [5, 1, 4, 6, 8, 3, 9];
Output[(9, 8, 6, 5, 4, 3, 1)];
```
**7.12:** Guess the **Output** and Explain Why?
_[From video lecture 7.13]_
```js
let arr = [1, 2, 3, 4];
let result = arr.splice(1, 2).pop();
console.log(result);
```
**7.13:** You have given an array of numbers `nums` You have to check if all elements of the **array > 15** using **built-in** array method. return `true` or `false`
_[From video lecture 7.9]_
```js
let nums = [16, 17, 18, 28, 22];
```
### More Practice Questions (Arrays)
**Question 1:** Guess the **Output** And explain Why?
```js
let strArray = [1, 2, 3, 4, 5];
let result = strArray.reverse();
console.log(result == strArray);
```
**Question 2:** You have **given** two **arrays** below as an example. Your task is to **combine** them into one By using array method
```js
input;
let arr1 = [1, 2, 3, 4, 5];
let arr2 = [6, 7, 8, 9, 10];
ouput[(6, 7, 8, 9, 10, 1, 2, 3, 4, 5)];
```
**Question 3:** You have given an array of **letters** below. Convert that array into string of letters **Without Space**
```js
input;
let arr = ['a', 'b', 'h', 'i', 's', 'h', 'e', 'k'];
output;
('abhishek');
```
**Question 4:** Guess the **Output** and explain why?
```js
let arr = [11, 62, 1, 27, 8, 5];
let sorted = arr.sort();
console.log(sorted);
```
**Question 5:** Create a function 'calcAverageHumanAge', which accepts an arrays of dog's ages ('ages'), and does the following thing in order:
1. Calculate the dog `age` in human years using the following formula: if the `dogAge <= 2 years` old, `humanAge = 2 \* dogAg`e. If the `dog is > 2 years` old, `humanAge = 16 + dogAge`
```js
Test data
let arr = [12,2,5,12,8,13,9];
```
**Question 6:** Guess the **Output** and Explain Why?
```js
let arr = [1, 2, 3, 4, 5, 6, 7, 8];
let elem = arr.at(-1);
console.log(elem);
```
**Question 7:** Guess the **Output** and Explain why?
```js
let arr = [1, 2, 3, 4, 5, 6, 7, 8];
let result = arr.slice(2, 5).splice(0, 2, 21).pop();
console.log(result, arr);
```
## Chapter 8 (Date)
### Assignments
**8.1:** How can we get current time in **millisecond** of current time?
**8.2:** Guess the **Output** and Explain Why?
_[From video lecture 8.2]_
```js
let currentDate = new Date();
let result1 = currentDate.getDay();
let result2 = currentDate.getDate();
console.log(result1, result2);
```
## Chapter 9 (LocalStorage)
### Assignments
**9.1:** Create two variables **myHobby** , **age** . Now **set** their value in local storage (according to your hobby and age).
After setting also **get** value from local storage and display their values in **console**.
_[From video lecture 9.2]_
## Chapter 10 (OOP)
### Assignments
**10.1:** Your tasks:
1. Use a **constructor** function to implement a `Bike`. A bike has a `make` and a `speed` property. The `speed` property is the current speed of the bike in km/h
2. Implement an `accelerate` method that will increase the bike's speed by **50**, and log the new speed to the console
3. Implement a `brake` method that will decrease the bike's speed by **25**, and log the new speed to the console
4. Create **2** 'Bike' objects and experiment with calling `accelerate` and `brake` multiple times on each of them
**Sample Data**
Data car 1: `bike1` going at 120 km/h
Data car 2: `bike` going at 95 km/h
**10.2:** Re-create **Question 1** But this time using **ES6**
class.
_[From video lecture 10.4]_
**10.3:** Guess the **Output** And Explain Why?
_[From video lecture 10.2]_
```js
function Person(name) {
this.name = name;
}
let me = new Person('John');
console.log(me.__proto__ == Person.prototype);
console.log(me.__proto__.__proto__ == Object.prototype);
```
**10.4:** Create **constructor** function inside **Car** class with three properties **color** , **model** , **company**
```js
class Car {}
```
**10.5:** **Identify** all **mistakes** in the following class
```js
class Car = {
constructor(){
},
engineMethod = function(){
console.log("This is engine method of Car class");
}
}
```
**10.6:** Guess the **Output** and explain Why? And **if** there is any **error** How we can remove that error?
_[From video lecture 10.6]_
```js
function Person(name, age) {
this.name = name;
this.age = age;
this.brainMethod = function () {
console.log('This is brain method of Person');
};
}
Person.heartMethod = function () {
console.log('This is heart method of Person');
};
let me = new Person('john', 34);
me.brainMethod();
me.heartMethod();
```
**10.7:** Create a new class `Dog` (which will be child class) inherited from `Animal` class. In Addition in `Dog` class add some additional properties like **breedType**
_[From video lecture 10.7]_
**Question 8:** Guess the **Output** And Explain Why?
```js
class Car {
constructor() {}
}
let car = new Car();
console.log(Car.prototype.isPrototypeOf(Car));
console.log(Car.prototype.isPrototypeOf(car));
```
### More Practice Questions (OOP)
**Question 1:** Guess the **Output** and Explain Why?
```js
function carObject(name, model) {
let car = Object.create(constructorObject);
car.name = name;
car.model = model;
this.engineMethod = function () {
console.log('This is engine method of car');
};
return car;
}
let constructorObject = {
speak: function () {
return 'This is my car';
},
};
let myCar = carObject('Audi', 2023);
console.log(myCar.__proto__);
```
**Question 2:** You have given an example of **OOP** Code. Your task is to explain the use of `super` keyword in `Dog` class.
And you have to **change** the code again after removing `super` keyword from the `Dog` class (You have remove those lines/statements which are not **necessary** after **removing** super **keyword**)
```js
class Animals {
constructor(name, age) {
this.name = name;
this.age = age;
}
sing() {
return `${this.name} can sing`;
}
dance() {
return `${this.name} can dance`;
}
}
class Dogs extends Animals {
constructor(name, age, whiskerColor) {
super(name, age);
this.whiskerColor = whiskerColor;
}
whiskers() {
return `I have ${this.whiskerColor} whiskers`;
}
}
let newDog = new Dogs('Clara', 33, 'indigo');
console.log(newDog);
```
**Question 3:** What are the advantages of using **getter** and **setter** method in OOP?
**Question 4:** You have OOP code below. And there is **single** error in this code? Your task is to **remove that error**.
**Important Note**: To solve this error You need to know about **method chaining** concept.
```js
class Car {
constructor(id) {
this.id = id;
}
setMake(make) {
this.make = make;
}
setModel(model) {
this.model = model;
}
setFuelType(fuelType) {
this.fuelType = fuelType;
}
getCarInfo() {
return {
id: this.id,
make: this.make,
model: this.model,
fuelType: this.fuelType,
};
}
}
console.log(
new Car(233)
.setMake('Honda')
.setModel('Civic')
.setFuelType('Petrol')
.getCarInfo()
);
```
**Question 5:** What is difference between ** proto** and prototype property of Object? Try with **Example**?
**Question 6:** create class of `Person` with properties `name`, `age`.
Your main task is to add `static` method in that class of your choice ( e.g brainMethod)
```js
class Person {
constructor(name, age) {
this.name = name;
this.age = age;
}
}
let me = new Person('abhishek', 25);
console.log(me);
```
## Chapter 11( Async Js )
### Assignments
**11.1:** Guess the **Output** And Explain Why?
_[From video lecture 11.7]_
**Html Code**
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript-CoderDost</title>
<style>
</head>
<body>
<div id="content">
<h2 id = "heading" ></h2>
</div>
<script defer src = "./script.js"></script>
</script>
</body>
</html>
```
**JS Code**
```js
async function greeting() {
let myPromise = new Promise(function (resolve) {
setTimeout(function () {
resolve('I love Programming !!');
}, 2000);
});
document.getElementById('heading').innerHTML = await myPromise;
}
greeting();
```
**11.2:** Find the **Logical Error** in below code. And How can we solve them with **callback** function approach?
_[From video lecture 11.4]_
```js
const movies = [{ title: `Movie 1` }, { title: `Movie 2` }];
function getMovies() {
setTimeout(() => {
movies.forEach((movie, index) => {
console.log(movie.title);
});
}, 1000);
}
function createMovies(movie) {
setTimeout(() => {
movies.push(movie);
}, 2000);
}
getMovies();
createMovies({ title: `Movie 3` });
```
**11.3:** What are the **three** possible State of any promise?
**11.4:** Solve **Question 2** again But this time with the help of **promise**
**11.5:** Now re-factor **Question 2** with the help of **async-await** keyword?
**11.6:** Status code starting with **404** represent which type of message/error?
_[From video lecture 11.3]_
## Chapter 12 (ES6)
### Assignments
**12.1:** Guess the **Output** and Explain Why?
_[From video lecture 12.1]_
```js
let arr = [3, 4, 5, 7, 98, 0];
let [a, b, , c] = arr;
console.log(a, b, c);
```
**12.2:** Guess the **Output** And Explain Why?
_[From video lecture 12.1]_
```js
let arr = [1, 3, [2, 55], [9, 8, 7]];
let [a, , [b, c], d] = arr;
console.log(a, b, c, d);
```
**12.3:** Guess the **Output** and explain Why?
_[From video lecture 12.2]_
```js
let obj = {
name: 'John',
age: 25,
weight: 70,
};
let { name: objName, age } = obj;
console.log(name, age);
```
**12.4:** You have given an array of **nums**.Create **shallow** copy of that array and store them in another **variable**
_[From video lecture 12.3]_
```js
let nums = [5,7,4,9,2,8];
let newNums = "store Shallow copy of nums inside newNums variable")
```
**12.5:** You have given an array as below . Create a function which accept **multiple** elements as an argument and return last **4** element of the array
_[From video lecture 12.4]_
```js
Example:
let nums = [1,2,3,4,5,6,7,8];
input data: 1,2,3,4,5,6,7,8
output data: 5,6,7,8
```
**12.6:** Guess the **Output** And Explain Why?
_[From video lecture 12.6]_
```js
let nums = 0;
let result = nums ?? 50;
console.log(result);
```
**12.7:** You have given an object as below. You have to check wheather **physics** is the subject of that student or not, if true find the **score** of **physics** subject using **optional chaining**
```js
let student = {
Math: {
score: 75,
},
physics: {
score: 85,
},
};
```
**12.8:** Guess the **Output** And Explain Why?
_[From video lecture 12.7]_
```js
let nums = [2, 3, 4, 5, 6];
for (let key of nums) {
console.log(key);
}
```
### More Practice Questions
**Question 1:** Guess the **Output** and Explain Why?
```js
let arr = [1, 2, 3, 4, 5];
let arr1 = [...arr];
arr1[2] = 10;
console.log(arr, arr1);
```
**Question 2:** You have given a list of variable names written in underscore. You have to write a program to convert them into camel casing format
```js
List of variable names
Input
user_name
last_name
date_of_birth
user_password
Output
userName
lastName
dateOfBirth
userPassword
```
**Question 3:** Guess the **Output** and Explain why?
```js
function fun(a, b, ...c) {
console.log(`${a} ${b}`);
console.log(c);
console.log(c[0]);
console.log(c.length);
console.log(c.indexOf('google'));
}
fun('apple', 'sumsung', 'amazon', 'google', 'facebook');
```
**Question 4:** Guess the **Output** and Explain Why?
```js
const fruits = { apple: 8, orange: 7, pear: 5 };
const entries = Object.entries(fruits);
for (const [fruit, count] of entries) {
console.log(`There are ${count} ${fruit}s`);
}
```
**Question 5:** Write a program in which you have to set **Default** value in case of false input value using **Logical Assignment** Operator?
**Question 6:** Guess the **Output** and Explain Why?
```js
let arr = new Set([1, 2, 3, 1, 2, 1, 3, 4, 6, 7, 5]);
let length = arr.size;
console.log(arr, length);
```
**Question 7:** You have given **Set** below. Your task is to convert that **Set** into an **array**?
```js
input;
let set = new Set[(1, 2, 3, 2, 1, 3, 4, 12, 2)]();
output;
let arr = 'Do something here to convert....';
```
**Question 8:** Guess the **Output** and Explain Why?
**Note** : **Change** values of variable to examine the result.
```js
let number = 40;
let age = 18;
let result = number > 50 ? (age > 19 ? 'pass' : 'ageIssue') : 'numberIssue';
console.log(result);
```
## Chapter 13 (Modern Tooling)
### Assignments
**13.1:** You have given scenario. You are in **script.js** And in same directory there is another file **products.js**. In **products.js** there are two methods called **createProduct** and **deleteProduct**
- write an **import** and **export** statement properly in order to import these two methods from **products.js** file into the **script.js**
**Question 2** Now **export** only one method **createProduct** using **default** export statement?
**Question 3:** In **import** statement how can we **customize**/**change** the name of **function** we are importing?
Example : function is defined as `Addition`. We want to import as 'Add'
How can can we do this?
| JavaScript course for beginners on CoderDost Youtube Channel | ecmascript6,javascript,tutorials | 2023-03-19T20:12:29Z | 2023-04-23T10:44:02Z | null | 2 | 4 | 16 | 0 | 101 | 168 | null | null | null |
TGlide/codeverter | main | <p align="center">
<h3 align="center">Codeverter</h3>
<p align="center">
<a href="https://tailwindcss.com/">
<img src="https://img.shields.io/badge/stlying-tailwind-%2338B2AC?style=for-the-badge&logo=tailwind-css" alt="Built with Tailwind">
</a>
<a href="https://kit.svelte.dev/">
<img src="https://img.shields.io/badge/framework-sveltekit-%23FF3E00?style=for-the-badge&logo=svelte" alt="Built with SvelteKit">
</a>
</p>
</p>
## Description
A GPT-powered code converter, allowing you to convert between different languages and frameworks, with a set of predefined custom options per language, without having to specify the input language.
You can try it out [here](https://codeverter.vercel.app/).
## TODO
- [ ] Progressive enhancement
- [x] Add ability to enter custom languages
- [x] Swap select for autocomplete
- [x] Code highlighting
## Ideas
- [ ] Code preview
- [x] Add custom options for each language
| Convert code to your programming language of choice | code,openai,svelte,javascript,python,react,typescript,vue | 2023-03-12T19:53:45Z | 2023-03-28T15:29:33Z | null | 2 | 4 | 57 | 4 | 17 | 145 | null | MIT | Svelte |
John-Weeks-Dev/tiktok-clone | master | # Tiktok Clone (tiktok-clone)
### Learn how to build this!
If you'd like a step-by-step guide on how to build this just **CLICK THE IMAGE BELOW**
[](https://www.youtube.com/watch?v=CHSL0Btbj_o)
Come and check out my YOUTUBE channel for lots more tutorials -> https://www.youtube.com/@johnweeksdev
**LIKE**, **SUBSCRIBE**, and **SMASH THE NOTIFICATION BELL**!!!
## NOTE
### For this Tiktok Clone to work you'll need the API/Backend:
Tiktok Clone API: https://github.com/John-Weeks-Dev/tiktok-clone-api
## App Setup
```
git clone https://github.com/John-Weeks-Dev/tiktok-clone.git
npm i
npm run dev
```
Inside Plugins/axios.js make sure the baseUrl is the same as your API.
<img width="443" alt="Screenshot 2023-03-15 at 00 14 21" src="https://user-images.githubusercontent.com/108229029/225085615-529afbca-8cb8-4ed4-bf5b-54ba6f827f36.png">
You should be good to go!
# Application Images
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225040479-3d99a7af-ffd3-443f-a3d9-ecf616e137b6.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225040773-ded6d97d-5ad6-4575-9684-1356b8721878.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225042476-fa28a57f-ddf2-4072-8632-2521608ab700.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225042661-e4555f75-4844-41b0-9078-acb49c8f9c08.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225042896-17982338-a03a-4332-a47f-3afc881f562c.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225043322-29eea167-121c-4bd8-b016-e0f625376e59.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225043588-cd9a8b33-b911-49ce-85a7-78b46488eae5.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225046843-166000b1-1956-4b69-9cfa-1fc16ab4982a.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225046955-fd9890f0-d98e-4189-9fa4-0b39d4773d9a.png">
<div>
<img width="333" src="https://user-images.githubusercontent.com/108229029/225044829-1b9fe754-ddc8-4db4-974d-d569c9c19fee.png">
<img width="333" src="https://user-images.githubusercontent.com/108229029/225044971-f9a94ce1-486b-4bea-8ffc-8d2f00910723.png">
<img width="333" src="https://user-images.githubusercontent.com/108229029/225045106-1753dbce-1221-4bc3-bafe-a572506f2672.png">
</div>
<div>
<img width="333" src="https://user-images.githubusercontent.com/108229029/225045572-50cef4a8-bea0-48c7-a42c-775ae360403d.png">
<img width="333" src="https://user-images.githubusercontent.com/108229029/225045716-e76124e5-384a-4f73-89ae-472e163f464b.png">
<img width="333" src="https://user-images.githubusercontent.com/108229029/225045838-d9934510-c7dd-4a10-9a9d-4946db339211.png">
</div>
<div>
<img width="660" src="https://user-images.githubusercontent.com/108229029/225041953-662d4517-4df9-4387-994c-d06205f811ef.png">
<img width="340" src="https://user-images.githubusercontent.com/108229029/225044283-67af4cc8-2897-403f-9cc3-1e844d52771c.png">
</div>
| This is a Tiktok Clone made with Nuxt 3, Vue JS, Laravel (API), Tailwind CSS, and Pinia | axios,image-upload,javascript,nuxt,nuxtjs,php,tailwind,tailwindcss,video-upload,vue | 2023-03-14T14:15:33Z | 2023-09-06T07:20:03Z | null | 1 | 0 | 16 | 0 | 45 | 127 | null | null | Vue |
msoechting/lexcube | main | [](https://github.com/msoechting/lexcube)
**3D Data Cube Visualization in Jupyter Notebooks**

---
**GitHub**: [https://github.com/msoechting/lexcube](https://github.com/msoechting/lexcube)
**Paper**: [https://doi.org/10.1109/MCG.2023.3321989](https://doi.org/10.1109/MCG.2023.3321989)
**PyPI**: [https://pypi.org/project/lexcube/](https://pypi.org/project/lexcube/)
---
Lexcube is a library for interactively visualizing three-dimensional floating-point data as 3D cubes in Jupyter notebooks.
Supported data formats:
- numpy.ndarray (with exactly 3 dimensions)
- xarray.DataArray (with exactly 3 dimensions, rectangularly gridded)
Possible data sources:
- Any gridded Zarr or NetCDF data set (local or remote, e.g., accessed with S3)
- Copernicus Data Storage, e.g., [ERA5 data](https://cds.climate.copernicus.eu/cdsapp#!/dataset/reanalysis-era5-complete?tab=overview)
- Google Earth Engine ([using xee, see example notebook](https://github.com/msoechting/lexcube/blob/main/examples/4_google_earth_engine.ipynb))
Example notebooks can be found in the [examples](https://github.com/msoechting/lexcube/tree/main/examples) folder. For a live demo, see also [lexcube.org](https://www.lexcube.org).
## Attribution
When using Lexcube and/or generated images, please acknowledge/cite:
```bibtex
@ARTICLE{soechting2024lexcube,
author={Söchting, Maximilian and Mahecha, Miguel D. and Montero, David and Scheuermann, Gerik},
journal={IEEE Computer Graphics and Applications},
title={Lexcube: Interactive Visualization of Large Earth System Data Cubes},
year={2024},
volume={44},
number={1},
pages={25-37},
doi={10.1109/MCG.2023.3321989}
}
```
Lexcube is a project by Maximilian Söchting at the [RSC4Earth](https://www.rsc4earth.de/) at Leipzig University, advised by Prof. Dr. Miguel D. Mahecha and Prof. Dr. Gerik Scheuermann. Thanks to the funding provided by ESA through DeepESDL and DFG through the NFDI4Earth pilot projects!
## How to Use Lexcube
### Example Notebooks
If you are new to Lexcube, try the [general introduction notebook](https://github.com/msoechting/lexcube/blob/main/examples/1_introduction.ipynb) which demonstrates how to visualize a remote Xarray data set.
There are also specific example notebooks for the following use cases:
- [Visualizing Google Earth Engine data - using xee](https://github.com/msoechting/lexcube/blob/main/examples/4_google_earth_engine.ipynb)
- [Generating and visualizing a spectral index data cube from scratch - using cubo and spyndex, with data from Microsoft Planetary Computer](https://github.com/msoechting/lexcube/blob/main/examples/3_spectral_indices_with_cubo_and_spyndex.ipynb)
- [Generating and visualizing a spectral index data cube - with data from OpenEO](https://github.com/msoechting/lexcube/blob/main/examples/5_spectral_indices_with_open_eo.ipynb)
- [Visualizing Numpy data](https://github.com/msoechting/lexcube/blob/main/examples/2_numpy.ipynb)
### Minimal Examples for Getting Started
#### Visualizing Xarray Data
```python
import xarray as xr
import lexcube
ds = xr.open_dataset("http://data.rsc4earth.de/EarthSystemDataCube/v3.0.2/esdc-8d-0.25deg-256x128x128-3.0.2.zarr/", chunks={}, engine="zarr")
da = ds["air_temperature_2m"][256:512,256:512,256:512]
w = lexcube.Cube3DWidget(da, cmap="thermal_r", vmin=-20, vmax=30)
w
```
#### Visualizing Numpy Data
```python
import numpy as np
import lexcube
data_source = np.sum(np.mgrid[0:256,0:256,0:256], axis=0)
w = lexcube.Cube3DWidget(data_source, cmap="prism", vmin=0, vmax=768)
w
```
#### Visualizing Google Earth Engine Data
See [the full example here](https://github.com/msoechting/lexcube/blob/main/examples/4_google_earth_engine.ipynb).
```python
import lexcube
import xarray as xr
import ee
ee.Authenticate()
ee.Initialize(opt_url="https://earthengine-highvolume.googleapis.com")
ds = xr.open_dataset("ee://ECMWF/ERA5_LAND/HOURLY", engine="ee", crs="EPSG:4326", scale=0.25, chunks={})
da = ds["temperature_2m"][630000:630003,2:1438,2:718]
w = lexcube.Cube3DWidget(da)
w
```
#### Note on Google Collab
If you are using Google collab, you may need to execute the following before running Lexcube:
```python
from google.colab import output
output.enable_custom_widget_manager()
```
#### Note on Juypter for VSCode
If you are using Jupyter within VSCode, you may have to add the following to your settings before running Lexcube:
```json
"jupyter.widgetScriptSources": [
"jsdelivr.com",
"unpkg.com"
],
```
If you are working on a remote server in VSCode, do not forget to set this setting also there! This allows the Lexcube JavaScript front-end files to be downloaded from these sources ([read more](https://github.com/microsoft/vscode-jupyter/wiki/IPyWidget-Support-in-VS-Code-Python)).
## Installation
You can install using `pip`:
```bash
pip install lexcube
```
After installing or upgrading Lexcube, you should **refresh the Juypter web page** (if currently open) and **restart the kernel** (if currently running).
If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:
```bash
jupyter nbextension enable --py [--sys-prefix|--user|--system] lexcube
```
## Cube Visualization
On the cube, the dimensions are visualized as follow: X from left-to-right (0 to max), Y from top-to-bottom (0 to max), Z from back-to-front (0 to max); with Z being the first dimension (`axis[0]`), Y the second dimension (`axis[1]`) and X the third dimension (`axis[2]`) on the input data. If you prefer to flip any dimension or re-order dimensions, you can modify your data set accordingly before calling the Lexcube widget, e.g. re-ordering dimensions with xarray: `ds.transpose(ds.dims[0], ds.dims[2], ds.dims[1])` and flipping dimensions with numpy: `np.flip(ds, axis=1)`.
## Interacting with the Cube
- Zooming in/out on any side of the cube:
- Mousewheel
- Scroll gesture on touchpad (two fingers up or down)
- On touch devices: Two-touch pinch gesture
- Panning the currently visible selection:
- Click and drag the mouse cursor
- On touch devices: touch and drag
- Moving over the cube with your cursor will show a tooltip in the bottom left about the pixel under the cursor.
- For more precise input, you can use the sliders provided by `w.show_sliders()`:

## Range Boundaries
You can read and write the boundaries of the current selection via the `xlim`, `ylim` and `zlim` tuples.
```python
w = lexcube.Cube3DWidget(da, cmap="thermal", vmin=-20, vmax=30)
w
# Next cell:
w.xlim = (20, 400)
```
For fine-grained interactive controls, you can display a set of sliders in another cell, like this:
```python
w = lexcube.Cube3DWidget(da, cmap="thermal", vmin=-20, vmax=30)
w
# Next cell:
w.show_sliders()
```
For very large data sets, you may want to use `w.show_sliders(continuous_update=False)` to prevent any data being loaded before making a final slider selection.
If you want to wrap around a dimension, i.e., seamleasly scroll over back to the 0-index beyond the maximum index, you can enable that feature like this:
```python
w.xwrap = True
```
For data sets that have longitude values in their metadata very close to a global round-trip, this is automatically active for the X dimension.
*Limitations: Currently only supported for the X dimension. If xwrap is active, the xlim tuple may contain values up to double the valid range to always have a range where x_min < x_max. To get values in the original/expected range, you can simply calculate x % x_max.*
## Colormaps
All colormaps of matplotlib and cmocean are supported.
The range of the colormap, if not set using `vmin`/`vmax`, is automatically adjusted to the approximate observed minimum and maximum values<sup>*note*</sup> within the current session. Appending "_r" to any colormap name will reverse it.
```python
# 1) Set cmap in constructor
w = lexcube.Cube3DWidget(da, cmap="thermal", vmin=-20, vmax=30)
w
# 2) Set cmap later
w.cmap = "thermal"
w.vmin = -20
w.vmax = 30
# 3) Set custom colormap using lists (evenly spaced RGB values)
w.cmap = cmocean.cm.thermal(np.linspace(0.0, 1.0, 100)).tolist()
w.cmap = [[0.0, 0.0, 0.0], [1.0, 0.5, 0.5], [0.5, 1.0, 1.0]]
```
<sup><sup>*note*</sup> Lexcube actually calculates the mean of all values that have been visible so far in this session and applies ±2.5σ (standard deviation) in both directions to obtain the colormap ranges, covering approximately 98.7% of data points. This basic method allows to filter most outliers that would otherwise make the colormap range unnecessarily large and, therefore, the visualization uninterpretable.</sup>
### Supported colormaps
```python
Cmocean:
- "thermal", "haline", "solar", "ice", "gray", "oxy", "deep", "dense", "algae", "matter", "turbid", "speed", "amp", "tempo", "rain", "phase", "topo", "balance", "delta", "curl", "diff", "tarn"
Proplot custom colormaps:
- "Glacial", "Fire", "Dusk", "DryWet", "Div", "Boreal", "Sunset", "Sunrise", "Stellar", "NegPos", "Marine"
Scientific Colormaps by Crameri:
- "acton", "bam", "bamako", "bamO", "batlow", "batlowK", "batlowW", "berlin", "bilbao", "broc", "brocO", "buda", "bukavu", "cork", "corkO", "davos", "devon", "fes", "glasgow", "grayC", "hawaii", "imola", "lajolla", "lapaz", "lisbon", "lipari", "managua", "navia", "nuuk", "oleron", "oslo", "roma", "romaO", "tofino", "tokyo", "turku", "vanimo", "vik", "vikO"
PerceptuallyUniformSequential:
- "viridis", "plasma", "inferno", "magma", "cividis"
Sequential:
- "Greys", "Purples", "Blues", "Greens", "Oranges", "Reds", "YlOrBr", "YlOrRd", "OrRd", "PuRd", "RdPu", "BuPu", "GnBu", "PuBu", "YlGnBu", "PuBuGn", "BuGn", "YlGn"
Sequential(2):
- "binary", "gist_yarg", "gist_gray", "gray", "bone", "pink", "spring", "summer", "autumn", "winter", "cool", "Wistia", "hot", "afmhot", "gist_heat", "copper"
Diverging:
- "PiYG", "PRGn", "BrBG", "PuOr", "RdGy", "RdBu", "RdYlBu", "RdYlGn", "Spectral", "coolwarm", "bwr", "seismic",
Cyclic:
- "twilight", "twilight_shifted", "hsv"
Qualitative:
- "Pastel1", "Pastel2", "Paired", "Accent", "Dark2", "Set1", "Set2", "Set3", "tab10", "tab20", "tab20b", "tab20c"
Miscellaneous:
- "flag", "prism", "ocean", "gist_earth", "terrain", "gist_stern", "gnuplot", "gnuplot2", "CMRmap", "cubehelix", "brg", "gist_rainbow", "rainbow", "jet", "nipy_spectral", "gist_ncar"
```
## Save images
You can save PNG images of the cube like this:
```python
w.savefig(fname="cube.png", include_ui=True, dpi_scale=2.0)
```
- `fname`: name of the image file. Default: `lexcube-{current time and date}.png`.
- `include_ui`: whether to include UI elements such as the axis descriptions and the colormap legend in the image. Default: `true`.
- `dpi_scale`: the image resolution is multiplied by this value to obtain higher-resolution/quality images. For example, a value of 2.0 means that the image resolution is doubled for the PNG vs. what is visible in the notebook. Default: `2.0`.
If you want to edit multiple cubes into one picture, you may prefer an isometric rendering. You can enable it in the constructor: `lexcube.Cube3DWidget(data_source, isometric_mode=True)`. For comparison:

## Supported metadata
When using Xarray for the input data, the following metadata is automatically integrated into the visualization:
- Dimension names
- Read from the xarray.DataArray.dims attribute
- Parameter name
- Read from the xarray.DataArray.attrs.long_name attribute
- Units
- Read from the xarray.DataArray.attrs.units attribute
- Indices
- Time indices are converted to UTC and displayed in local time in the widget
- Latitude and longitude indices are displayed in their full forms in the widget
- Other indices (strings, numbers) are displayed in their full form
- If no indices are available, the numeric indices are displayed
## Troubleshooting
Below you can find a number of different common issues when working with Lexcube. If the suggested solutions do not work for you, feel free to [open an issue](https://github.com/msoechting/lexcube/issues/new/choose)!
### The cube does not respond / API methods are not doing anything / Cube does not load new data
Under certain circumstances, the widget may get disconnected from the kernel. You can recognize it with this symbol (crossed out chain 🔗):

Possible Solutions:
1. Execute the cell again
2. Restart the kernel
3. Refresh the web page (also try a "hard refresh" using CTRL+F5 or Command+Option+R - this forces the browser to ignore its cache)
### After installation/update, no widget is shown, only text
Example:

Possible solutions:
1. Restart the kernel
2. Refresh the web page (also try a "hard refresh" using CTRL+F5 or Command+Option+R - this forces the browser to ignore its cache)
### w.savefig breaks when batch-processing/trying to create many figures quickly
The current `savefig` implementation is limited by its asynchronous nature. This means that the `savefig` call returns before the image is rendered and downloaded. Therefore, a workaround, such as waiting one second between images, is necessary to correctly create images when batchprocessing.
### The layout of the widget looks very messed up
This can happen in old versions of browsers. Update your browser or use a modern, up-to-date browser such as Firefox or Chrome. Otherwise, feel free to create an issue with your exact specs.
### "Error creating WebGL context" or similar
WebGL 2 seems to be not available or disabled in your browser. Check this page to test if your browser is compatible: https://webglreport.com/?v=2. Possible solutions are:
1. Update your browser
2. Update your video card drivers
### Memory is filling up a lot when using a chunked dataset
Lexcube employs an alternative, more aggressive chunk caching mechanism in contrast to xarray. It will cache any touched chunk in memory without releasing it until the widget is closed. Disabling it will most likely decrease memory usage but increase the average data access latency, i.e., make Lexcube slower. To disable it, use: `lexcube.Cube3DWidget(data_source, use_lexcube_chunk_caching=False)`.
## Known bugs
- Zoom interactions with the mousewheel may be difficult for data sets with very small ranges on some dimensions (e.g. 2-5).
- Zoom interactions may behave unexpectedly when zooming on multiple cube faces subsequently.
## Attributions
Lexcube uses lots of amazing open-source software and packages, including:
* Data access: [Xarray](https://docs.xarray.dev/en/stable/index.html) & [Numpy](https://numpy.org/)
* Lossy floating-point compression: [ZFP](https://zfp.io/)
* Client boilerplate: [TypeScript Three.js Boilerplate](https://github.com/Sean-Bradley/Three.js-TypeScript-Boilerplate) by Sean Bradley
* Jupyter widget boilerplate: [widget-ts-cookiecutter](https://github.com/jupyter-widgets/widget-ts-cookiecutter)
* Colormaps: [matplotlib](https://matplotlib.org), [cmocean](https://matplotlib.org/cmocean/), [Scientific colour maps by Fabio Crameri](https://zenodo.org/records/8409685), [Proplot custom colormaps](https://github.com/proplot-dev/proplot)
* 3D graphics engine: [Three.js](https://github.com/mrdoob/three.js/) (including the OrbitControls, which have been modified for this project)
* Client bundling: [Webpack](https://webpack.js.org/)
* UI sliders: [Nouislider](https://refreshless.com/nouislider/)
* Decompression using WebAssembly: [numcodecs.js](https://github.com/manzt/numcodecs.js)
* WebSocket communication: [Socket.io](https://socket.io/)
## Development Installation & Guide
See [CONTRIBUTING.md](CONTRIBUTING.md).
## License
The Lexcube application core, the Lexcube Jupyter extension, and other portions of the official Lexcube distribution not explicitly licensed otherwise, are licensed under the GNU GENERAL PUBLIC LICENSE v3 or later (GPLv3+) -- see the "COPYING" file in this directory for details. | Lexcube: 3D Data Cube Visualization in Jupyter Notebooks | dask,datacube,earth-engine,eo,geographical-information-system,geospatial,gis,google-earth-engine,jupyterlab-extension,python | 2023-03-14T10:10:38Z | 2024-03-21T14:28:00Z | 2024-03-21T14:28:11Z | 1 | 0 | 10 | 2 | 4 | 95 | null | GPL-3.0 | TypeScript |
berthutapea/mern-blog-v2 | main | <H1 align ="center" > MERN BLOG </h1>
<h5 align ="center">
Fullstack open source blogging application made with MongoDB, Express, React & Nodejs (MERN) </h5>
<br/>
* [Configuration and Setup](#configuration-and-setup)
* [Key Features](#key-features)
* [Technologies used](#technologies-used)
- [Frontend](#frontend)
- [Backend](#backend)
- [Database](#database)
* [📸 Screenshots](#screenshots)
* [Author](#author)
* [License](#license)
## Configuration and Setup
In order to run this project locally, simply fork and clone the repository or download as zip and unzip on your machine.
- Open the project in your prefered code editor.
- Go to terminal -> New terminal (If you are using VS code)
- Split your terminal into two (run the Frontend on one terminal and the Backend on the other terminal)
In the first terminal
```
$ cd Frontend
$ npm install (to install frontend-side dependencies)
$ npm run start (to start the frontend)
```
In the second terminal
- cd Backend and Set environment variables in config.env under ./config
- Create your mongoDB connection url, which you'll use as your MONGO_URI
- Supply the following credentials
```
# --- Config.env ---
NODE_ENV = development
PORT =5000
URI =http://localhost:3000
MONGO_URI =
JWT_SECRET_KEY =
JWT_EXPIRE = 60m
RESET_PASSWORD_EXPIRE = 3600000
# Nodemailer
SMTP_HOST =smtp.gmail.com
SMTP_PORT =587
EMAIL_USERNAME = example@gmail.com
EMAIL_PASS = your_password
```
```
# --- Terminal ---
$ npm install (to install backend-side dependencies)
$ npm start (to start the backend)
```
## Key Features
- User registration and login
- Authentication using JWT Tokens
- Story searching and pagination
- CRUD operations (Story create, read, update and delete)
- Upload user ımages and story ımages to the server
- Liking stories and adding stories to the Reading list
- Commenting on the story
- Skeleton loading effect
- Responsive Design
<br/>
## Technologies used
This project was created using the following technologies.
#### Frontend
- [React js ](https://www.npmjs.com/package/react) - JavaScript library that is used for building user interfaces specifically for single-page applications
- [React Hooks ](https://reactjs.org/docs/hooks-intro.html) - For managing and centralizing application state
- [react-router-dom](https://www.npmjs.com/package/react-router-dom) - To handle routing
- [axios](https://www.npmjs.com/package/axios) - For making Api calls
- [Css](https://developer.mozilla.org/en-US/docs/Web/CSS) - For User Interface
- [CK-Editor](https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/react.html) - Rich Text Editor
- [uuid](https://www.npmjs.com/package/uuid) - For random id generator
- [React icons](https://react-icons.github.io/react-icons/) -
Small library that helps you add icons to your react apps.
#### Backend
- [Node js](https://nodejs.org/en/) -A runtime environment to help build fast server applications using JS
- [Express js](https://www.npmjs.com/package/express) -The server for handling and routing HTTP requests
- [Mongoose](https://mongoosejs.com/) - For modeling and mapping MongoDB data to JavaScript
- [express-async-handler](https://www.npmjs.com/package/express-async-handler) - Simple middleware for handling exceptions inside of async express routes and passing them to your express error handlers
- [jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken) - For authentication
- [Bcryptjs](https://www.npmjs.com/package/bcryptjs) - For data encryption
- [Nodemailer](https://nodemailer.com/about/) - Send e-mails from Node.js
- [Dotenv](https://www.npmjs.com/package/dotenv) - Zero Dependency module that loads environment variables
- [multer](https://www.npmjs.com/package/multer) - Node.js middleware for uploading files
- [slugify](https://www.npmjs.com/package/slugify) - For encoding titles into a URL-friendly format
- [cors](https://www.npmjs.com/package/cors) - Provides a Connect/Express middleware
#### Database
- [MongoDB ](https://www.mongodb.com/) - It provides a free cloud service to store MongoDB collections.
## Screenshots

---- -

--- -

--- -

--- -

--- -

--- -

--- -

--- -

--- -

--- -

## Author
- Portfolio: [berthutapea](https://berthutapea.vercel.app/)
- Github: [berthutapea](https://github.com/berthutapea)
- Sponsor: [berthutapea](https://saweria.co/berthutapea)
- Linkedin: [gilberthutapea](https://www.linkedin.com/in/gilberthutapea/)
- Email: [berthutapea@gmail.com](mailto:berthutapea@gmail.com)
## License
MIT License
Copyright (c) 2022 Gilbert Hutapea
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
| MERN BLOG (MongoDB, Express, React & Nodejs) | javascript,mongodb,nodejs,react,reactjs,axios,bycryptjs,css3,expressjs,jwt-authentication | 2023-03-15T13:44:02Z | 2023-05-17T07:16:37Z | null | 1 | 3 | 160 | 2 | 39 | 89 | null | MIT | JavaScript |
codingstella/Gaming-website | main | <div align="center">
<br />
<br />
<h2 align="center">GameHive - eSports Gaming Website</h2>
GameHive is a fully responsive esports gaming website, <br />Responsive for all devices, build using HTML, CSS, and JavaScript.
<a href="https://codingstella.github.io/Gaming-website/"><strong>➥ Live Demo</strong></a>
</div>
<br />
### Demo Screeshots

| GameHive is a fully responsive esports gaming website, Responsive for all devices, build using HTML, CSS, and JavaScript. | css,css3,html,html5,javascript | 2023-03-16T16:02:03Z | 2023-03-16T16:27:26Z | null | 1 | 1 | 7 | 0 | 22 | 89 | null | MIT | CSS |
Jisan-mia/dom-projects | main | # DOM Projects(Repo: `dom-projects`)
<p align="center">
<a href="https://jisan.io/dom-projects/" target="_blank" style="font-size:50px"><img src="./favicon/android-chrome-192x192.png" alt="dom-projects" width="125" /></a>
</p>
<h4 align="center">Learn . Create . Share about your Frontend Development Journey</h4>
<p align="center">
<a href="https://github.com/Jisan-mia/dom-projects/blob/main/LICENSE" target="blank">
<img src="https://img.shields.io/github/license/Jisan-mia/dom-projects?style=flat-square" alt="dom-projects licence" />
</a>
<a href="https://github.com/Jisan-mia/dom-projects/fork" target="blank">
<img src="https://img.shields.io/github/forks/Jisan-mia/dom-projects?style=flat-square" alt="dom-projects forks"/>
</a>
<a href="https://github.com/Jisan-mia/dom-projects/stargazers" target="blank">
<img src="https://img.shields.io/github/stars/Jisan-mia/dom-projects?style=flat-square" alt="dom-projects stars"/>
</a>
<a href="https://github.com/Jisan-mia/dom-projects/issues" target="blank">
<img src="https://img.shields.io/github/issues/Jisan-mia/dom-projects?style=flat-square" alt="dom-projects issues"/>
</a>
<a href="https://github.com/Jisan-mia/dom-projects/pulls" target="blank">
<img src="https://img.shields.io/github/issues-pr/Jisan-mia/dom-projects?style=flat-square" alt="dom-projects pull-requests"/>
</a>
<a href="https://twitter.com/intent/tweet?text=👋%20Check%20this%20amazing%20app%20https://jisan.io/dom-projects,%20created%20by%20@jisanmia47%20and%20friends%0A%0A%23DEVCommunity%20%23100DaysOfCode"><img src="https://img.shields.io/twitter/url?label=Share%20on%20Twitter&style=social&url=https%3A%2F%2Fgithub.com%2FJisan-mia%2Fdom-projects"></a>
</p>
<p align="center">
<a href="https://jisan.io/dom-projects/" target="blank">View Demo</a>
·
<a href="https://github.com/Jisan-mia/dom-projects/issues/new/choose">Report Bug</a>
·
<a href="https://github.com/Jisan-mia/dom-projects/issues/new/choose">Request Feature</a>
</p>
## Introducing DOM Projects
`dom-projects` is an `open-source` web app that helps you learn Frontend Development faster with a hands-on practice style. It is a collection of `HTML, CSS and JavaScript projects` that you can use to learn Frontend Development.
You can also create your projects and share them with the world.
## Demo
Here is the link to the app. We hope you enjoy it.
> [The DOM Projects app Link](https://jisan.io/dom-projects/)
## How to Set up `DOM Projects` for Development?
It's simple. As this project was built using only HTML, CSS, JavaScript, no need of any build step, all you need is to fork the repo then clone it to your local machine and open index.html file on your browser.
You may want to set up the `dom-projects` repo for the following reasons:
- You want to create a new Project using HTML, CSS and JavaScript or want to edit an existing project as a contributor. Please check the [Contribution Guide](CONTRIBUTING.md) to get started.
- You want to contribute to the `dom-projects` repo in general. Please check the [Contribution Guide](CONTRIBUTING.md) to get started.
Here is a quick overview of the `dom-projects` repo setup:
### Fork and Clone the Repo
First, you need to fork the `dom-projects` repo. You can do this by clicking the `Fork` button on the top right corner of the repo. If you are new to forking, please watch this [YouTube Guide](https://www.youtube.com/watch?v=h8suY-Osn8Q) to get started.
Once forked, you can clone the repo by clicking the `Clone or Download` button on the top right corner of the forked repo.
Please change the directory after cloning the repository using the `cd <folder-name>` command.
After navigating to the project directory, open the `index.html` file.
## Built With
- [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML)
- [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS)
- [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript)
## Contributing to `DOM Projects`
Any kind of positive contribution is welcome! Please help us to grow by [`CONTRIBUTING`](CONTRIBUTING.md) to the project.
If you wish to contribute, you can,
- Create a Project
- Suggest a Feature
- Test the app, and help it improve.
- Improve the app, fix bugs, etc.
- Improve documentation.
- Create content about DOM Projects and share it with the world.
> Please follow to guidelines outline in the [`CONTRIBUTING`](CONTRIBUTING.md) file, for details on our [`CODE OF CONDUCT`](CODE_OF_CONDUCT.md), and the process for submitting pull requests to us.
🆕 New to Open Source? 💡 Follow this [guide](https://opensource.guide/how-to-contribute/) to jumpstart your Open Source journey 🚀.
## License
The DOM Projects website is licensed under the [MIT License](LICENSE), permitting the usage, modification, and distribution of the codebase. See the [LICENSE](LICENSE) file for more details.
Thank you for being a part of this project and embracing a unique frontend learning experience! Happy coding!
| dom-projects is an open-source web app that helps you learn frontend development faster with a hands-on practice style. It is a collection of projects that you can use to learn HTML, CSS and JavaScript | css,dom,dom-manipulation,html,javascript | 2023-03-19T19:24:42Z | 2024-05-19T08:50:38Z | null | 3 | 47 | 165 | 0 | 16 | 74 | null | MIT | HTML |
BenHerbst/Dalaix | main | 




# Dalaix - "ChatGPT" locally for everyone
<br>
<p align="center">
<img src="https://github.com/BenHerbst/Dalaix/blob/main/resources/icon.png" width=200>
</br>
<a href="https://www.benherbst.de/">Dalaix by Ben Herbst</a>
</p>
## Get Started 🎉
### 1. Download Dalaix
You can download Dalaix at: https://github.com/BenHerbst/Dalaix/releases/tag/v1.1.0
Just get the .exe
### 2. Install Dalaix
Double click on the .exe and Dalaix installs fully automaticly! ✨
<img src="https://github.com/BenHerbst/Dalaix/blob/main/docs/Screenshots/install.png" width=450>
### 3. Start Dalaix
Dalaix should start automaticly after it is installed, else search for it in the Windows start menu
### 4. Fill out the form and install
Now you have to fill out the form.
<img src="https://github.com/BenHerbst/Dalaix/blob/main/docs/Screenshots/form.png" width=450>
Just select the Model you want to install ( Alpaca or Llama, I recommend Alpaca 7B )
and press the big Blue Install button!
### 5. Wait a long time for it to finish
Install can take up to some hours, or just 30 minutes. But it is going to take a long time.
<img src="https://github.com/BenHerbst/Dalaix/blob/main/docs/Screenshots/installing.png" width=450>
So take a shower or get your coffee until Dalai is installed!
IMPORTANT: If your install crashs or hangs up for any reason, follow the steps in #Troubleshoot!
### 6. Optional: Support me ( PayPal )
|[Donate](https://www.paypal.com/donate/?hosted_button_id=C5X9LBEM7XZ64)|
|---|
### 7. Successfully installed
When you get the popup: "Successfully installed", click close.
<img src="https://github.com/BenHerbst/Dalaix/blob/main/docs/Screenshots/installed.png" width=450>
Now search in your start menu for "Start Dalai" and execute it.
If you can't find "Start Dalai" in the start menu, reboot your Windows machine.
To Stop Dalai, search for "Stop Dalai" and execute that!
Wait some time and open localhost:3000 in your browser.
<img src="https://github.com/BenHerbst/Dalaix/blob/main/docs/Screenshots/installed2.png" width=450>
You should now see Dalai up and running
## Troubleshoot 🐞
File any issue on GitHub issues: https://github.com/BenHerbst/Dalaix/issues
### 1. First search for Dalaix in the Start menu
### 2. Right click Dalaix and press: "Go to folder"
### 3. Right click the Dalaix file in the folder, and press: "Go to location"
### 4. Open CMD with admin rights
### 5. Copy the folder location from the explorer into the CMD
### 6. Hit enter and wait for the error / the last output before freeze.
### 7. Copy the error and post it on the GitHub issue tracker
The URL is: https://github.com/BenHerbst/Dalaix/issues
## How it works 🤷♂️
This Software installs Chocolately 🍫 ( https://chocolatey.org/ ) on your Windows machine.
Then it executes commands to install all the necessary dependencies for Dalai ( https://github.com/cocktailpeanut/dalai )
After that is finished, it clones Dalai itself and install it.
Then it installs your selected model using commands and creates Start, Stop and Autostart entries.
Thats all the magic 🧙♂️ behind it!
Happy Hacking, Ben Herbst
## License 📜
Dalaix is licensed under the Apache 2.0 License by Ben Herbst
## Contributing ⚒
Feel free to contribute!
I ❤ everyone who contributes, wether its:
- Filing an Issue on GitHub
- Sharing the project
- Starring the project
- Developing on the project
- Giving me feedback on it
Thanks to all contributors!
## Future ✈
- Add dark mode 🌑
- Add Linux support 🐧
- Add OSX support 🍎
| Easy installer for Dalai: LLaMA on your local machine | alpaca,bootstrap,bootstrap5,chatgpt,css,dalai,dalai-lama,electron,html,javascript | 2023-03-24T22:27:02Z | 2023-10-27T20:08:12Z | 2023-04-03T19:49:21Z | 1 | 5 | 45 | 6 | 5 | 64 | null | Apache-2.0 | JavaScript |
John-Weeks-Dev/tiktok-clone-api | master | # Tiktok Clone API (tiktok-clone-api)
### Learn how to build this!
If you'd like a step by step guide on how to build this just **CLICK THE IMAGE BELOW**
[](https://www.youtube.com/watch?v=CHSL0Btbj_o)
Come and check out my YOUTUBE channel for lots more tutorials -> https://www.youtube.com/@johnweeksdev
**LIKE**, **SUBSCRIBE**, and **SMASH THE NOTIFICATION BELL**!!!
## NOTE
### For this Tiktok Clone API to work you'll need the Frontend:
Tiktok Clone: https://github.com/John-Weeks-Dev/tiktok-clone
## App Setup
```
git clone https://github.com/John-Weeks-Dev/tiktok-clone-api.git
```
Then
```
composer install
cp .env.example .env
php artisan cache:clear
composer dump-autoload
php artisan key:generate
composer require laravel/breeze --dev
php artisan breeze:install (FOR THIS SELECT THE API INSTALL)
php artisan serve
```
Create a DATABASE. Make sure the DB_DATABASE in the .env is the same and then run this command
```
php artisan migrate
```
You should be good to go!
# Application Images
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225040479-3d99a7af-ffd3-443f-a3d9-ecf616e137b6.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225040773-ded6d97d-5ad6-4575-9684-1356b8721878.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225042476-fa28a57f-ddf2-4072-8632-2521608ab700.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225042661-e4555f75-4844-41b0-9078-acb49c8f9c08.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225042896-17982338-a03a-4332-a47f-3afc881f562c.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225043322-29eea167-121c-4bd8-b016-e0f625376e59.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225043588-cd9a8b33-b911-49ce-85a7-78b46488eae5.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225046843-166000b1-1956-4b69-9cfa-1fc16ab4982a.png">
<img width="1439" src="https://user-images.githubusercontent.com/108229029/225046955-fd9890f0-d98e-4189-9fa4-0b39d4773d9a.png">
<div>
<img width="333" src="https://user-images.githubusercontent.com/108229029/225044829-1b9fe754-ddc8-4db4-974d-d569c9c19fee.png">
<img width="333" src="https://user-images.githubusercontent.com/108229029/225044971-f9a94ce1-486b-4bea-8ffc-8d2f00910723.png">
<img width="333" src="https://user-images.githubusercontent.com/108229029/225045106-1753dbce-1221-4bc3-bafe-a572506f2672.png">
</div>
<div>
<img width="333" src="https://user-images.githubusercontent.com/108229029/225045572-50cef4a8-bea0-48c7-a42c-775ae360403d.png">
<img width="333" src="https://user-images.githubusercontent.com/108229029/225045716-e76124e5-384a-4f73-89ae-472e163f464b.png">
<img width="333" src="https://user-images.githubusercontent.com/108229029/225045838-d9934510-c7dd-4a10-9a9d-4946db339211.png">
</div>
<div>
<img width="660" src="https://user-images.githubusercontent.com/108229029/225041953-662d4517-4df9-4387-994c-d06205f811ef.png">
<img width="340" src="https://user-images.githubusercontent.com/108229029/225044283-67af4cc8-2897-403f-9cc3-1e844d52771c.png">
</div>
| This is a Tiktok Clone (API) made with Nuxt 3, Vue JS, Laravel (API), Tailwind CSS, and Pinia | nuxt,nuxt3,nuxtjs,tailwind,vue,vue3,vuejs,axios,image-upload,javascript | 2023-03-14T16:32:22Z | 2023-03-20T12:23:00Z | null | 1 | 1 | 7 | 4 | 28 | 61 | null | null | PHP |
Steve0929/tiktok-tts | main | # tiktok-tts
This package provides a simple way to generate text-to-speech audio files from TikTok's text-to-speech (TTS) API in Node.js.


## Installation
```javascript
npm i tiktok-tts
```
## Usage
### Basic example
```javascript
const { config, createAudioFromText } = require('tiktok-tts')
config('Your TikTok sessionid here');
createAudioFromText('Text to be spoken goes here');
```
### Custom filename example
```javascript
const { config, createAudioFromText } = require('tiktok-tts')
config('Your TikTok sessionid here');
createAudioFromText('Text to be spoken goes here', 'myAudio');
```
Generated audio file will be saved as ```myAudio.mp3```
### Custom path example
```javascript
const { config, createAudioFromText } = require('tiktok-tts')
config('Your TikTok sessionid here');
createAudioFromText('Text to be spoken goes here', './myDirectory/myAudio');
```
Generated audio file will be saved as ```myAudio.mp3``` inside the ```myDirectory``` directory.
###### ⚠️ Please keep in mind that ```myDirectory``` needs to be an existing directory.
### Custom voice example
```javascript
const { config, createAudioFromText } = require('tiktok-tts')
config('Your TikTok sessionid here');
createAudioFromText('Text to be spoken goes here', 'myAudio', 'en_us_stormtrooper');
```
### Using ```await``` with the ```createAudioFromText()``` function
```javascript
const { config, createAudioFromText } = require('tiktok-tts')
config('Your TikTok sessionid here');
async function yourFunction(){
await createAudioFromText('Text that will be spoken');
console.log("Audio file generated!");
}
yourFunction();
```
## Get TikTok Session id 🍪
- Install [Cookie Editor extension](https://cookie-editor.cgagnier.ca) for your browser.
- Log in to [TikTok Web](https://tiktok.com)
- While on TikTok web, open the extension and look for ```sessionid```
- Copy the ```sessionid``` value. (It should be an alphanumeric value)
## Available functions
```javascript
config(tiktokSessionId, customBaseUrl)
```
| Parameter | Description | Default |type |
| ------------- |:------------- | ------------------ |-----|
| tiktokSessionId| Your TikTok sessionid | ```null``` | String|
| customBaseUrl| Custom TikTok API url ```optional``` | ```-``` | String|
* By default ```https://api16-normal-c-useast1a.tiktokv.com/media/api/text/speech/invoke``` will be used if no customBaseUrl is specified.
<details>
<summary>List of known URLs (You can try these if the default url is not working on your region)</summary>
- https://api16-normal-c-useast1a.tiktokv.com/media/api/text/speech/invoke
- https://api16-core-c-useast1a.tiktokv.com/media/api/text/speech/invoke
- https://api16-normal-useast5.us.tiktokv.com/media/api/text/speech/invoke
- https://api16-core.tiktokv.com/media/api/text/speech/invoke
- https://api16-core-useast5.us.tiktokv.com/media/api/text/speech/invoke
- https://api19-core-c-useast1a.tiktokv.com/media/api/text/speech/invoke
- https://api-core.tiktokv.com/media/api/text/speech/invoke
- https://api-normal.tiktokv.com/media/api/text/speech/invoke
- https://api19-normal-c-useast1a.tiktokv.com/media/api/text/speech/invoke
- https://api16-core-c-alisg.tiktokv.com/media/api/text/speech/invoke
- https://api16-normal-c-alisg.tiktokv.com/media/api/text/speech/invoke
- https://api22-core-c-alisg.tiktokv.com/media/api/text/speech/invoke
- https://api16-normal-c-useast2a.tiktokv.com/media/api/text/speech/invoke
</details>
<br/>
```javascript
createAudioFromText(text, fileName, speaker)
```
| Parameter | Description | Default | type |
| ------------- |:-------------| -----| -----|
| text | Text to be converted to audio | ```null``` | String|
| fileName | filename/path for the generated audio file ```optional``` | ```audio``` | String|
| speaker | TikTok speaker code ```optional``` | ```en_us_001``` | String|
## Speaker Codes
The following speaker codes are supported:
| Language | Speaker | Speaker Code |
|------------- |-------------------------|---------------------------------|
| English | Game On | en_male_jomboy |
| | Jessie | en_us_002 |
| | Warm | es_mx_002 |
| | Wacky | en_male_funny |
| | Scream | en_us_ghostface |
| | Empathetic | en_female_samc |
| | Serious | en_male_cody |
| | Beauty Guru | en_female_makeup |
| | Bestie | en_female_richgirl |
| | Trickster | en_male_grinch |
| | Joey | en_us_006 |
| | Story Teller | en_male_narration |
| | Mr. GoodGuy | en_male_deadpool |
| | Narrator | en_uk_001 |
| | Male English UK | en_uk_003 |
| | Metro | en_au_001 |
| | Alfred | en_male_jarvis |
| | ashmagic | en_male_ashmagic |
| | olantekkers | en_male_olantekkers |
| | Lord Cringe | en_male_ukneighbor |
| | Mr. Meticulous | en_male_ukbutler |
| | Debutante | en_female_shenna |
| | Varsity | en_female_pansino |
| | Marty | en_male_trevor |
| | Pop Lullaby | en_female_f08_twinkle |
| | Classic Electric | en_male_m03_classical |
| | Bae | en_female_betty |
| | Cupid | en_male_cupid |
| | Granny | en_female_grandma |
| | Cozy | en_male_m2_xhxs_m03_christmas |
| | Author | en_male_santa_narration |
| | Caroler | en_male_sing_deep_jingle |
| | Santa | en_male_santa_effect |
| | NYE 2023 | en_female_ht_f08_newyear |
| | Magician | en_male_wizard |
| | Opera | en_female_ht_f08_halloween |
| | Euphoric | en_female_ht_f08_glorious |
| | Hypetrain | en_male_sing_funny_it_goes_up |
| | Melodrama | en_female_ht_f08_wonderful_world|
| | Quirky Time | en_male_m2_xhxs_m03_silly |
| | Peaceful | en_female_emotional |
| | Toon Beat | en_male_m03_sunshine_soon |
| | Open Mic | en_female_f08_warmy_breeze |
| | Jingle | en_male_m03_lobby |
| | Thanksgiving | en_male_sing_funny_thanksgiving |
| | Cottagecore | en_female_f08_salut_damour |
| | Professor | en_us_007 |
| | Scientist | en_us_009 |
| | Confidence | en_us_010 |
| | Smooth | en_au_002 |
| Disney | Ghost Face | en_us_ghostface |
| | Chewbacca | en_us_chewbacca |
| | C3PO | en_us_c3po |
| | Stitch | en_us_stitch |
| | Stormtrooper | en_us_stormtrooper |
| | Rocket | en_us_rocket |
| | Madame Leota | en_female_madam_leota |
| | Ghost Host | en_male_ghosthost |
| | Pirate | en_male_pirate |
| French | French - Male 1 | fr_001 |
| | French - Male 2 | fr_002 |
| Spanish | Spanish (Spain) - Male | es_002 |
| | Spanish MX - Male | es_mx_002 |
| Portuguese | Portuguese BR - Female 1 | br_001 |
| | Portuguese BR - Female 2 | br_003 |
| | Portuguese BR - Female 3 | br_004 |
| | Portuguese BR - Male | br_005 |
| | Ivete Sangalo | bp_female_ivete |
| | Ludmilla | bp_female_ludmilla |
| | Lhays Macedo | pt_female_lhays |
| | Laizza | pt_female_laizza |
| | Galvão Bueno | pt_male_bueno |
| German | German - Female | de_001 |
| | German - Male | de_002 |
| Indonesian | Indonesian - Female | id_001 |
| Japanese | Japanese - Female 1 | jp_001 |
| | Japanese - Female 2 | jp_003 |
| | Japanese - Female 3 | jp_005 |
| | Japanese - Male | jp_006 |
| | りーさ | jp_female_fujicochan |
| | 世羅鈴 | jp_female_hasegawariona |
| | Morio’s Kitchen | jp_male_keiichinakano |
| | 夏絵ココ | jp_female_oomaeaika |
| | 低音ボイス | jp_male_yujinchigusa |
| | 四郎 | jp_female_shirou |
| | 玉川寿紀 | jp_male_tamawakazuki |
| | 庄司果織 | jp_female_kaorishoji |
| | 八木沙季 | jp_female_yagishaki |
| | ヒカキン | jp_male_hikakin |
| | 丸山礼 | jp_female_rei |
| | 修一朗 | jp_male_shuichiro |
| | マツダ家の日常 | jp_male_matsudake |
| | まちこりーた | jp_female_machikoriiita |
| | モジャオ | jp_male_matsuo |
| | モリスケ | jp_male_osada |
| Korean | Korean - Male 1 | kr_002 |
| | Korean - Female | kr_003 |
| | Korean - Male 2 | kr_004 |
| Vietnamese | Female | BV074_streaming |
| | Male | BV075_streaming |
| Other | Alto | en_female_f08_salut_damour |
| | Tenor | en_male_m03_lobby |
| | Sunshine Soon | en_male_m03_sunshine_soon |
| | Warmy Breeze | en_female_f08_warmy_breeze |
| | Glorious | en_female_ht_f08_glorious |
| | It Goes Up | en_male_sing_funny_it_goes_up |
| | Chipmunk | en_male_m2_xhxs_m03_silly |
| | Dramatic | en_female_ht_f08_wonderful_world |
| Provides a simple way to generate text-to-speech audio files using TikTok's text-to-speech (TTS) API in Node.js. | audio,javascript,nodejs,npm-package,text-to-speech,tiktok,tiktok-tts,tts,speech-synthesis | 2023-03-13T15:36:43Z | 2024-02-01T14:19:57Z | null | 3 | 16 | 81 | 1 | 8 | 58 | null | MIT | JavaScript |
oslabs-beta/troveql | main | <div align="center">
<img src='/assets/TroveQL-black.svg' style="width:100%;">
<h1>Welcome to TroveQL!</h1>
<p>TroveQL is a cache library for GraphQL APIs on Express.js servers with additional support for TroveMetrics, a cache performance monitoring application.</p>
<p><img alt="GitHub" src="https://img.shields.io/github/license/oslabs-beta/troveql"></p>
<img src="https://img.shields.io/badge/npm-CB3837?style=for-the-badge&logo=npm&logoColor=white">
<img src="https://img.shields.io/badge/GraphQl-E10098?style=for-the-badge&logo=graphql&logoColor=white">
<img src="https://img.shields.io/badge/Express.js-000000?style=for-the-badge&logo=express&logoColor=white">
<img src="https://img.shields.io/badge/Electron-2B2E3A?style=for-the-badge&logo=electron&logoColor=9FEAF9">
<img src="https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB">
<img src="https://img.shields.io/badge/Chart.js-FF6384?style=for-the-badge&logo=chartdotjs&logoColor=white">
<img src="https://img.shields.io/badge/Webpack-8DD6F9?style=for-the-badge&logo=Webpack&logoColor=white">
<img src="https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white">
<img src="https://img.shields.io/badge/JavaScript-323330?style=for-the-badge&logo=javascript&logoColor=F7DF1E">
<img src="https://img.shields.io/badge/HTML5-E34F26?style=for-the-badge&logo=html5&logoColor=white">
<img src="https://img.shields.io/badge/CSS3-1572B6?style=for-the-badge&logo=css3&logoColor=white">
<img src="https://img.shields.io/badge/Sass-CC6699?style=for-the-badge&logo=sass&logoColor=white">
<img src="https://img.shields.io/badge/Jest-C21325?style=for-the-badge&logo=jest&logoColor=white">
<img src="https://img.shields.io/badge/eslint-3A33D1?style=for-the-badge&logo=eslint&logoColor=white">
</div>
## Features
- Server-side cache for GraphQL queries using the Advanced Replacement Cache (ARC) algorithm
- Custom cache configurations with options such as total capacity
- Cache invalidation logic on GraphQL mutations
- Support for Node.js/Express.js servers
- Cache performance monitoring with key metrics such as Hit/Miss Rate and Query Response Time
## Documentation
Visit <a target="_blank" rel="noopener noreferrer" href="https://www.troveql.io/">our website</a> to get more information and watch a demo of TroveQL and its performance monitoring application TroveMetrics.
## Table of Contents
- [Install](#install-troveql)
- [Set Up](#set-up-troveql-in-express)
- [Queries and Mutations](#query-or-mutate-your-graphQL-API)
- [Roadmap](#iteration-roadmap)
- [Contribute](#contribution-guidelines)
- [Stack](#stack)
- [Authors](#authors)
- [License](#license)
## Install TroveQL
Install the Express library via npm
```bash
npm install troveql
```
## Set up TroveQL in Express
1. Import TroveQLCache
```javascript
const { TroveQLCache } = require('troveql');
```
2. Set up your TroveQL cache
```javascript
const capacity = 5; // size limit of your cache
const graphQLAPI = 'http://localhost:4000/graphql'; // your graphQL URL endpoint
const useTroveMetrics = true; // (optional) if you would like to use TroveMetrics - default is false
const mutations = {}; // (optional) object where key/value pairs are mutation types/object types mutated (ex. { addMovie: 'movie', editMovie: 'movie', deleteMovie: 'movie' })
const cache = new TroveQLCache(capacity, graphQLAPI, useTroveMetrics, mutations);
```
3. Add the /troveql and, if applicable, /trovemetrics endpoints
```javascript
// REQUIRED
app.use(express.json())
app.use(express.urlencoded({ extended: true }));
// /troveql to use the cache
app.use('/troveql',
cache.queryCache,
(req: Request, res: Response) => res.status(200).json(res.locals.value)
);
// /trovemetrics to clear the cache from TroveMetrics
app.use('/trovemetrics',
cache.troveMetrics,
(req: Request, res: Response) => res.status(200).json(res.locals.message)
);
```
4. Add your GraphQL endpoint. For example:
```javascript
const { graphqlHTTP } = require("express-graphql");
const { schema } = require('./schema');
const { resolvers } = require('./resolvers');
app.use('/graphql',
graphqlHTTP({
schema: schema,
rootValue: resolvers,
graphiql: true
})
);
```
5. To use TroveMetrics to monitor the performance of your cache and GraphQL API on your application's server, you can go to <a href="https://www.troveql.io/" target="_blank" rel="noopener noreferrer">our website</a> and download the desktop application for your OS (macOS, Windows, Linux).
## Query or Mutate your GraphQL API
Simply send a request to your GraphQL API for queries and mutations as you normally would. For example, a query with variables using the `fetch` syntax could look like:
```javascript
fetch('/troveql', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: `query ($id: ID) {
movie(id: $id) {
id
title
genre
year
actors
{
name
}
}
}`,
variables: { id: 10 }
})
})
.then(response => response.json())
.then(response => {
// access the data on the response object with response.data
})
```
## TroveQL Demo
Download our TroveQL demo to see how TroveQL is run:
[troveql-demo](https://github.com/oslabs-beta/troveql-demo/)
## Feature Roadmap
- Client-side caching
- Persistent queries to improve the performance and security of client queries to the server
- Additional cache invalidation logic on mutations
- Additional cache logic on subscriptions
- Update cache capacity to reflect memory size (bytes) instead of number of items
- User authentication for TroveMetrics
## Contribution Guidelines
If you would like to contribute to this open-source project, please follow the steps below:
1. Fork the repository from the `dev` branch
2. Create a new feature branch (`git checkout -b feature/newFeature`)
3. Commit your changes with a descriptive comment (`git commit -m 'Added a new feature that ...'`)
4. Push your changes to the new feature branch (`git push origin feature/newFeature`)
5. Open a Pull Request on the `dev` branch
6. We will review your PR and merge the new feature into the `main` branch as soon as possible!
Thank you so much!
## Stack
- GraphQL
- Node.js / Express.js
- Electron
- React.js
- Chart.js
- Webpack
- TypeScript
- JavaScript
- HTML
- CSS / SASS
- Jest
## Authors
Alex Klein - [GitHub](https://github.com/a-t-klein) | [LinkedIn](https://www.linkedin.com/in/alex-t-klein-183aa758/)
<br>
Erika Jung - [GitHub](https://github.com/erikahjung) | [LinkedIn](https://www.linkedin.com/in/erikahjung)
<br>
Sam Henderson - [GitHub](https://github.com/samhhenderson) | [LinkedIn](https://www.linkedin.com/in/samuel-h-henderson/)
<br>
Tricia Yeh - [GitHub](https://github.com/triciacorwin) | [LinkedIn](https://www.linkedin.com/in/tricia-yeh/)
<br>
## License
This project is licensed under the MIT License. | A server-side caching library for GraphQL written for Express.js with a built-in performance monitoring application | caching,graphql,javascript,monitoring,typescript | 2023-03-20T17:41:39Z | 2023-09-11T18:09:55Z | 2023-04-13T18:55:52Z | 64 | 83 | 306 | 2 | 7 | 51 | null | MIT | JavaScript |
kiki-le-singe/react-native-maestro | develop | # Mobile UI testing with React Native and Maestro
## Introduction
I started this project mainly for fun and to develop my mobile UI testing skills. After reading the [Documentation for Maestro](https://maestro.mobile.dev/) and [Maestro with React Native](https://maestro.mobile.dev/platform-support/react-native), I found it seemed easy to implement, simple and effective. So... Let's go! :D
I created a React Native app built with Expo to simply this part. The aim of this project is `Maestro`.
Enjoy it! :)
This app has three screens:
- A sign in interface with two fields, email and password. After clicking the sign in button, if the form is valid `(a valid email and password)` we'll see the next screen.
- A simple screen with greetings and email user, a link to another screen and a sign out button.
- A scrollview screen with some texts and images. It's also possible to go back to the previous screen.
<img src="./docs/app.gif" alt="React Native Maestro app" />
## Installation
### React Native Maestro
```shell
$ git clone https://github.com/kiki-le-singe/react-native-maestro.git <name>
$ cd <name>
$ npm install
```
### Maestro
```shell
$ curl -Ls "https://get.maestro.mobile.dev" | bash
$ maestro -v
```
> Only for iOS: [Connecting to Your Device](https://maestro.mobile.dev/getting-started/installing-maestro#connecting-to-your-device)
```shell
$ brew tap facebook/fb
$ brew install facebook/fb/idb-companion
```
See the official documentation: [Installing Maestro](https://maestro.mobile.dev/getting-started/installing-maestro)
## Run
```bash
$ npm start
$ npm run ios or android
```
## Maestro tests
The tests are in the `maestro` directory. You can run them locally in your iOS simulator or Android emulator. At the moment, Maestro does not support real iOS devices. See [Installing Maestro](https://maestro.mobile.dev/getting-started/installing-maestro) and [Connecting to Your Device](https://maestro.mobile.dev/getting-started/installing-maestro#connecting-to-your-device)
You can run the tests in CI with `Maestro Cloud`. See [Running Flows on CI](https://maestro.mobile.dev/getting-started/running-flows-on-ci).
### Running tests
```bash
# run single test
$ maestro test maestro/[fileName].yaml
```
<br />
```bash
$ maestro test maestro/simple-flow.yaml
```
<img src="./docs/simple-maestro-flow.gif" alt="Simple Maestro flow" width="800" height="600" />
<br /><br />
```bash
$ maestro test maestro/signin/signin-errors-flow.yaml
```
<img src="./docs/signin-errors-flow.gif" alt="Sign in errors Maestro flow" width="800" height="600" />
<br /><br />
```bash
$ maestro test maestro/signin/signin-success-flow.yaml
```
<img src="./docs/signin-success-flow.gif" alt="Sign in success Maestro flow" width="800" height="600" />
<br /><br />
```bash
$ maestro test maestro/home/home-flow.yaml
```
<img src="./docs/home-flow.gif" alt="Home flow" width="800" height="600" />
<br /><br />
```bash
$ maestro test maestro/details/details-flow.yaml
```
<img src="./docs/details-flow.gif" alt="Details flow" width="800" height="600" />
<br />
> Sometimes you could see this error: [Failed to reach out XCUITest Server](https://github.com/mobile-dev-inc/maestro/issues/880)... Maybe your component is not reachable, so you probably check your code. Sometimes the CLI just seems a little capricious... So just wait a few secondes... And it perfectly works! :D
## Resources
- [Maestro Documentation](https://maestro.mobile.dev)
- [Maestro GitHub Repository](https://github.com/mobile-dev-inc/maestro)
- [Maestro with React Native](https://maestro.mobile.dev/platform-support/react-native)
- [Maestro Cloud Documentation](https://cloud.mobile.dev)
- [A great and complete introduction to Maestro with React Native](https://dev.to/b42/test-your-react-native-app-with-maestro-5bfj)
| A small project to show how to make UI testing with React Native and Maestro | android,e2e-testing,e2e-tests,expo-cli,expo-reactnative,ios,maestro,mobile,react-native,ui-testing | 2023-03-21T15:26:26Z | 2023-03-24T15:38:52Z | null | 1 | 0 | 36 | 0 | 1 | 49 | null | null | JavaScript |
radojicic23/dsa-for-absolute-dummies | master | ```bash
/$$$$$$$ /$$$$$$ /$$$$$$
| $$__ $$ /$$__ $$ /$$__ $$
| $$ \ $$| $$ \__/| $$ \ $$
| $$ | $$| $$$$$$ | $$$$$$$$
| $$ | $$ \____ $$| $$__ $$
| $$ | $$ /$$ \ $$| $$ | $$
| $$$$$$$/| $$$$$$/| $$ | $$
|_______/ \______/ |__/ |__/
/$$$$$$$$ /$$$$$$ /$$$$$$$
| $$_____//$$__ $$| $$__ $$
| $$ | $$ \ $$| $$ \ $$
| $$$$$ | $$ | $$| $$$$$$$/
| $$__/ | $$ | $$| $$__ $$
| $$ | $$ | $$| $$ \ $$
| $$ | $$$$$$/| $$ | $$
|__/ \______/ |__/ |__/
/$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$$$ /$$$$$$$$
/$$__ $$| $$__ $$ /$$__ $$ /$$__ $$| $$ | $$| $$ |__ $$__/| $$_____/
| $$ \ $$| $$ \ $$| $$ \__/| $$ \ $$| $$ | $$| $$ | $$ | $$
| $$$$$$$$| $$$$$$$ | $$$$$$ | $$ | $$| $$ | $$| $$ | $$ | $$$$$
| $$__ $$| $$__ $$ \____ $$| $$ | $$| $$ | $$| $$ | $$ | $$__/
| $$ | $$| $$ \ $$ /$$ \ $$| $$ | $$| $$ | $$| $$ | $$ | $$
| $$ | $$| $$$$$$$/| $$$$$$/| $$$$$$/| $$$$$$/| $$$$$$$$| $$ | $$$$$$$$
|__/ |__/|_______/ \______/ \______/ \______/ |________/|__/ |________/
/$$$$$$$ /$$ /$$ /$$ /$$ /$$ /$$ /$$$$$$ /$$$$$$$$ /$$$$$$
| $$__ $$| $$ | $$| $$$ /$$$| $$$ /$$$|_ $$_/| $$_____/ /$$__ $$
| $$ \ $$| $$ | $$| $$$$ /$$$$| $$$$ /$$$$ | $$ | $$ | $$ \__/
| $$ | $$| $$ | $$| $$ $$/$$ $$| $$ $$/$$ $$ | $$ | $$$$$ | $$$$$$
| $$ | $$| $$ | $$| $$ $$$| $$| $$ $$$| $$ | $$ | $$__/ \____ $$
| $$ | $$| $$ | $$| $$\ $ | $$| $$\ $ | $$ | $$ | $$ /$$ \ $$
| $$$$$$$/| $$$$$$/| $$ \/ | $$| $$ \/ | $$ /$$$$$$| $$$$$$$$| $$$$$$/
|_______/ \______/ |__/ |__/|__/ |__/|______/|________/ \______/
```
## DSA for Absolute Dummies😵💫
- This is a super simplified examples of the common data structures and algorithms written in easy to read C++ (mostly for now), Python and JS.
- Reading through this will help you learn about data structures and algorithms and how to use them etc.
## Why should I care to do this?
- Lack of good courses and good books.
- It's simpler for me, I like to learn about this stuff, and every day working on this I am learning new stuff too.
- Because I need it to refresh my memory if I am stuck on something or whatever..
- You can use it to refresh your memory too or to learn something new, but easy way (it's not easy, it's hard but it will get easier in time).
## But data structures and algorithms are so hard!
- Yes. Life is hard. I have just one question on that. Do you remember that first day you enter this field of programming and IT in general?
I remember that I've struggled for 7 days about basic functions (objects) and functionality behind them? Funny?
That's all I am gonna say.
## Where to begin?
- You can simply start over here wherever you want. Try to go through some Data Structures first.
- Then, you can go through google and find some easy exercises or websites with coding problems like Codewars or LeetCode.
- Or you can go buy some book or course and use this if you are stuck on something or you don't understand some stuff.
## Contributing
- FEEL FREE TO CONTRIBUTE.
```bash
_____ _ _ _ ______ _____ _ _ __ __ __ __ _____ ______ _____ _
/ ____| | | | | | ____| | __ \| | | | \/ | \/ |_ _| ____|/ ____| |
| | __| | | |__| | |__ | | | | | | | \ / | \ / | | | | |__ | (___ | |
| | |_ | | | __ | __| | | | | | | | |\/| | |\/| | | | | __| \___ \| |
| |__| | |____| | | | | | |__| | |__| | | | | | | |_| |_| |____ ____) |_|
\_____|______|_| |_|_| |_____/ \____/|_| |_|_| |_|_____|______|_____/(_)
```
[](http://creativecommons.org/licenses/by/4.0/)
| This repository is place where you can learn about data structures and algorithms if you want, but don't play to much with it because it's too hard. | algorithms,algorithms-and-data-structures,algorithms-datastructures,data-structures,javascript,python,data-structures-cpp,data-structures-interview-questions,data-structures-python,cpp | 2023-03-16T17:13:33Z | 2023-07-24T17:33:31Z | null | 1 | 0 | 261 | 0 | 6 | 46 | null | CC-BY-4.0 | C++ |
solov1113/ecommerce-springboot-react | master | # Ecommerce
This is an ecommerce REST API built using Java and Spring Boot. The API provides functionality for managing products, orders, and customers. The API uses JSON Web Tokens (JWT) for authentication and authorization.
## Table of Contents
- [Microservices](#microservices)
- [config-service](#config-service)
- [api-gateway](#api-gateway)
- [catalog-service](#catalog-service)
- [order-service](#order-service)
- [auth-service](#auth-service)
- [image-service](#image-service)
- [customer-service](#customer-service)
- [cart-service](#cart-service)
- [Technologies Used](#technologies-used)
- [Setup](#setup)
- [Authentication and Authorization](#authentication-and-authorization)
- [Future Development](#future-development)
## Microservices
The API is built using a microservice architecture, with the following services:
### api-gateway
The `api-gateway` service provides a single entry point for clients to access the various services in the system.
### catalog-service
The `catalog-service` service manages the catalog of products available for sale.
### config-service
The `config-service` service stores configuration data for the various services in the system.
### order-service
The `order-service` service manages orders placed by customers.
### auth-service
The `auth-service` service provides authentication and authorization for the system.
### image-service
The `image-service` service manages the images associated with products.
### customer-service
The `customer-service` service manages information about customers who have registered with the system.
### cart-service
The `cart-service` service manages customer cart
## Technologies Used
The following technologies were used to build this API:
- Spring Cloud (Config, OpenFeign, Eureka)
- JPA / Hibernate
- Springdocv2
- Java version 19
- Spring Boot version 3.0.2
- PostgreSQL database
## Setup
1. Clone this repository to your local machine.
2. Install PostgreSQL database and create a database for the application.
3. Update the `application-{service}.yml` file in the `config-server` module with the database details for each service.
4. Start the Eureka server by running the `DiscoveryServerApplication.java` file in the `discovery-server` module.
5. Start the Config Server by running the `ConfigServerApplication.java` file in the `config-server` module.
6. Start the Api Gateway by running the `ApiGatewayApplication.java` file in the `api-gateway` module.
7. Start the remaining modules (catalog-service, order-service, auth-service, image-service, customer-service and cart-serivce) by running their respective `Application.java` files.
## Authentication and Authorization
The API uses JSON Web Tokens (JWT) for authentication and authorization. When a user logs in, they receive a JWT that must be included in the header of all subsequent requests. The JWT is verified on the server side to ensure that the user is authenticated and authorized to perform the requested action.
## Future Development
In the future, a React-based frontend will be added to the application to provide a user interface for managing products, orders, and customers.
Additionally, the API could be expanded to include features such as payment processing, order tracking, and inventory management. The API could also be optimized for performance by implementing caching, load balancing, and other techniques. Finally, the API could be secured further by adding additional security measures such as rate limiting, input validation, and intrusion detection.
| Multipurpose eCommerce application based on the microservices architecture built with using Spring Boot and ReactJS. | ecommerce,java,javascript,microservice,mongodb,reactjs,spring-cloud,springboot | 2023-03-13T07:36:32Z | 2023-03-12T18:26:33Z | null | 1 | 0 | 108 | 0 | 7 | 45 | null | null | Java |
ErickWendel/processing-30GB-data-with-JavaScript-Streams | main | # How to read 30GB+ data in the frontend without blocking the screen - Webstreams 101
## About
Welcome, this repo is part of my [**youtube video**](https://youtu.be/EexM7EL9Blk) about **How to read 30GB+ data in the frontend without blocking the screen - Webstreams 101(en-us)**
First of all, leave your star 🌟 on this repo.
Access our [**exclusive telegram channel**](https://t.me/ErickWendelContentHub) so I'll let you know about all the content I've been producing
## Complete source code
- Access it in [app](./recorded/)

## Have fun!
| Tutorial: How to read 30GB+ of JSON in the frontend without blocking the screen | javascript,nodejs,stream,tutorial,webstreams | 2023-03-18T16:46:53Z | 2023-03-22T11:03:31Z | null | 1 | 0 | 3 | 0 | 9 | 45 | null | null | JavaScript |
berthutapea/msnproduction.com | main | <h1 align ="center" >MULIA SEJATI NUSANTARA PRODUCTION <br/>(MSN PRODUCTION)</h1>
<h5 align ="center">
PT. MULIA SEJATI NUSANTARA Established on June 24, 2019, a limited liability company engaged in supplier & contractor services. Then on 22 January 2022 PT. MULIA SEJATI NUSANTARA Opening a new business branch in the Technology Sector which includes Website Creation, Mobile Applications, Branding, Creative Content, Digital Marketing & Advertising. This branch is called "Mulia Sejati Nusantara Production" or abbreviated as MSN PRODUCTION.</h5>
<br/>
* [Configuration and Setup](#configuration-and-setup)
* [Key Features](#key-features)
* [Technologies used](#technologies-used)
* [📸 Screenshots](#screenshots)
* [Author](#author)
* [License](#license)
## Configuration and Setup
In order to run this project locally, simply fork and clone the repository or download as zip and unzip on your machine.
- Open the project in your prefered code editor.
In the first terminal
```
$ cd msnproduction.com
$ npm install
$ npm run start
```
## Key Features
- Home
- About
- Package
- Contact
- Blog
- Responsive Design
<br/>
## Technologies used
This project was created using the following technologies.
- [React js ](https://www.npmjs.com/package/react) - JavaScript library that is used for building user interfaces specifically for single-page applications
- [React Hooks ](https://reactjs.org/docs/hooks-intro.html) - For managing and centralizing application state
- [react-router-dom](https://www.npmjs.com/package/react-router-dom) - To handle routing
- [Css](https://developer.mozilla.org/en-US/docs/Web/CSS) - For User Interface
- [React icons](https://react-icons.github.io/react-icons/) -
Small library that helps you add icons to your react apps.
- [Tailwind CSS](https://tailwindcss.com/) - For User Interface
- [daisyUI](https://daisyui.com/docs/changelog/) - For User Interface
- [React Leafet](https://react-leaflet.js.org/) - For User Interface
- [Email js](https://www.emailjs.com/) - For User Interface
- [Framer Motion](https://www.framer.com/motion/) - For User Interface
## Screenshots

---- -

--- -

--- -

--- -

## Author
- Portfolio: [berthutapea](https://berthutapea.vercel.app/)
- Github: [berthutapea](https://github.com/berthutapea)
- Sponsor: [berthutapea](https://saweria.co/berthutapea)
- Linkedin: [gilberthutapea](https://www.linkedin.com/in/gilberthutapea/)
- Email: [berthutapea@gmail.com](mailto:berthutapea@gmail.com)
## License
MIT License
Copyright (c) 2022 Gilbert Hutapea
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
| MSN PRODUCTION is a company that provides services for creating websites, mobile applications, branding & creative content, as well as internet marketing & advertising according to your business needs at low prices with luxurious quality. | company-profile,css,daisyui,emailjs,framer-motion,javascript,leaflet,react,react-icons,react-leaflet | 2023-03-24T08:56:17Z | 2024-05-23T15:00:18Z | null | 1 | 0 | 6,339 | 1 | 6 | 39 | null | MIT | JavaScript |
doanbactam/awesome-stable-diffusion | main | # NEW: Awesome Stable Diffusion ⭐
<img alt="Awesome Stable Diffusion" src="https://repository-images.githubusercontent.com/613279917/f67c116d-b238-432e-8fa9-db17c8c9ac71">
<br>
<p align="center">
<img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/doanbactam/awesome-stable-diffusion">
<img alt="GitHub contributors" src="https://img.shields.io/github/contributors/doanbactam/awesome-stable-diffusion">
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/doanbactam/awesome-stable-diffusion?style=social">
<img alt="GitHub" src="https://img.shields.io/github/license/doanbactam/awesome-stable-diffusion">
</p>
<h3>Help this grow and get discovered by other devs with a ⭐ star.</h3>
# Table of Contents
- [Stable Diffusion](#stable-diffusion)
- [Python](#python)
- [Jupyter Notebook](#jupyter-notebook)
- [JavaScript](#javascript)
- [TypeScript](#typescript)
- [PHP](#php)
- [Swift](#swift)
- [Dockerfile](#dockerfile)
- [Vue](#vue)
- [Flutter](#flutter)
## 👑Stable Diffusion
### Python
- [Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui): Stable Diffusion web UI
- [lama-cleaner](https://github.com/Sanster/lama-cleaner): Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.
- [Stability-AI](https://github.com/Stability-AI/stablediffusion): High-Resolution Image Synthesis with Latent Diffusion Models
- [fast-stable-diffusion](https://github.com/TheLastBen/fast-stable-diffusion): fast-stable-diffusion Notebooks, AUTOMATIC1111 + DreamBooth
- [diffusers](https://github.com/huggingface/diffusers): Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch
- [Dream textures](https://github.com/carson-katri/dream-textures): Stable Diffusion built-in to Blender
- [Stable-Dreamfusion](https://github.com/ashawkey/stable-dreamfusion): A pytorch implementation of text-to-3D dreamfusion, powered by stable diffusion
- [dream-factory](https://github.com/rbbrdckybk/dream-factory): Multi-threaded GUI manager for mass creation of AI-generated art with support for multiple GPUs.
- [stable-diffusion-videos](https://github.com/nateraw/stable-diffusion-videos): Create 🔥 videos with Stable Diffusion by exploring the latent space and morphing between text prompts
- [Lama Cleaner](https://github.com/Sanster/lama-cleaner): Image inpainting tool powered by SOTA AI Model. Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.
- [python-reddit-youtube-bot](https://github.com/alexlaverty/python-reddit-youtube-bot): Automated Reddit Youtube Video Bot
- [Text-To-Video-Finetuning](https://github.com/ExponentialML/Text-To-Video-Finetuning): Finetune ModelScope's Text To Video model using Diffusers 🧨
- [automatic](https://github.com/vladmandic/automatic): Opinionated fork/implementation of Stable Diffusion
- [StyleTTS2](https://github.com/yl4579/StyleTTS2): Towards Human-Level Text-to-Speech through Style Diffusion and Adversarial Training with Large Speech Language Models
- [i2vgen-xl](https://github.com/ali-vilab/i2vgen-xl): A holistic video generation ecosystem for video generation building on diffusion models
### Jupyter Notebook
- [anime-webui-colab](https://github.com/NUROISEA/anime-webui-colab): A collection of stable diffusion web ui colabs primarily focusing on anime
- [Stable Diffusion](https://github.com/CompVis/stable-diffusion): A latent text-to-image diffusion model
- [InvokeAI: A Stable Diffusion Toolkit](https://github.com/invoke-ai/InvokeAI): InvokeAI is a leading creative engine built to empower professionals and enthusiasts alike.
- [carefree-creator](https://github.com/carefree0910/carefree-creator): AI magics meet Infinite draw board.
- [stable-diffusion-colab](https://github.com/woctezuma/stable-diffusion-colab): Colab notebook to run Stable Diffusion.
- [stability-sdk](https://github.com/Stability-AI/stability-sdk): SDK for interacting with stability.ai APIs (e.g. stable diffusion inference)
- [anime-webui-colab](https://github.com/NUROISEA/anime-webui-colab): A collection of Stable Diffusion web UI colab notebooks primarily focusing on anime
### JavaScript
- [Easy Diffusion 2.5](https://github.com/cmdr2/stable-diffusion-ui): The easiest way to install and use Stable Diffusion on your own computer.
- [Auto-Photoshop-StableDiffusion-Plugin](https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin): A user-friendly plug-in that makes it easy to generate stable diffusion images inside Photoshop using Automatic1111-sd-webui as a backend.
- []()
### TypeScript
- [ClickPrompt](https://github.com/prompt-engineering/click-prompt): ClickPrompt - Streamline your prompt design, with ClickPrompt, you can easily view, share, and run these prompts with just one click.
- [Lsmith](https://github.com/ddPn08/Lsmith): StableDiffusionWebUI accelerated using TensorRT
- [novelai-bot](https://github.com/koishijs/novelai-bot): Generate images by NovelAI | 基于 NovelAI 的画图机器人
- [photoshot](https://github.com/shinework/photoshot): An open-source AI avatar generator web app
### PHP
- [pokemon-card-generator](https://github.com/robiningelbrecht/pokemon-card-generator): A PHP app that generates Pokemon cards by using GPT and Stable Diffusion.
### Swift
- [MochiDiffusion](https://github.com/godly-devotion/MochiDiffusion): Run Stable Diffusion on Mac natively
### Dockerfile
- [Stable Diffusion WebUI Docker](https://github.com/AbdBarho/stable-diffusion-webui-docker): Easy Docker setup for Stable Diffusion with user-friendly UI
### Vue
- [Stable UI](https://github.com/aqualxx/stable-ui): Stable UI is a web user interface designed to generate, save, and view images using Stable Diffusion, with the goal being able to provide Stable Diffusion to anyone for 100% free.
- [stable-ui](https://github.com/aqualxx/stable-ui): 🔥 A frontend for generating images with Stable Diffusion through Stable Horde
### Flutter
- [Stable Horde](https://github.com/ndahlquist/stable-horde-flutter): An Android+iOS app for the Stable Horde
- [flutter_scribble](https://github.com/lahirumaramba/flutter_scribble): Turn your scribbles into detailed images with AI
- [stability sdk](https://github.com/joshuadeguzman/stability-sdk-dart): An implementation of Stability AI SDK in Dart. Stability AI is a solution studio dedicated to innovating ideas.
A curated list of awesome stable diffusion resources 🌟
| A curated list of awesome stable diffusion resources 🌟 | aiart,dall-e,diffusion,diffusion-models,image-generation,midjourney,stable-diffusion,text-to-image,python,dockerfile | 2023-03-13T09:07:59Z | 2024-01-04T14:42:59Z | null | 1 | 0 | 24 | 0 | 0 | 39 | null | MIT | null |
berthutapea/berthutapea-portfolio | main | <h1 align ="center" >Gilbert Hutapea | Portfolio</h1>
<h5 align ="center">
Dedicated Front-end developer. Capable to solve working problems. Passionate about learning & development to reach the target. Eager to tackle more complex problems and continue to find ways to maximize user efficiency. My next mission is how to become a Mern stack Developer. I would love to build some Giant Website which will shine myself. <br/> <a href="https://drive.google.com/file/d/16r18tc8RhGEiQoOGTTFvgZ0g46C_oQFe/view?usp=share_link">Resume 💼</a> </h5>
<br/>
* [Configuration and Setup](#configuration-and-setup)
* [Key Features](#key-features)
* [Technologies used](#technologies-used)
* [📸 Screenshots](#screenshots)
* [Author](#author)
* [License](#license)
## Configuration and Setup
In order to run this project locally, simply fork and clone the repository or download as zip and unzip on your machine.
- Open the project in your prefered code editor.
In the first terminal
```
$ cd berthutapea-portfolio
$ npm install
$ npm run start
```
## Key Features
- Home
- About
- Project
- Contact
- Blog
<br/>
## Technologies used
This project was created using the following technologies.
- [React js ](https://www.npmjs.com/package/react) - JavaScript library that is used for building user interfaces specifically for single-page applications
- [react-router-dom](https://www.npmjs.com/package/react-router-dom) - To handle routing
- [Css](https://developer.mozilla.org/en-US/docs/Web/CSS) - For User Interface
- [React icons](https://react-icons.github.io/react-icons/) -
Small library that helps you add icons to your react apps.
- [Tailwind CSS](https://tailwindcss.com/) - For User Interface
- [React Hooks ](https://reactjs.org/docs/hooks-intro.html) - For managing and centralizing application state
- [daisyUI ](https://daisyui.com/docs/changelog/) - For User Interface
## Screenshots

---- -

--- -

--- -

--- -

## Author
- Portfolio: [berthutapea](https://berthutapea.vercel.app/)
- Github: [berthutapea](https://github.com/berthutapea)
- Sponsor: [berthutapea](https://saweria.co/berthutapea)
- Linkedin: [gilberthutapea](https://www.linkedin.com/in/gilberthutapea/)
- Email: [berthutapea@gmail.com](mailto:berthutapea@gmail.com)
## License
MIT License
Copyright (c) 2022 Gilbert Hutapea
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
| Gilbert Hutapea | Portfolio ( MERN Stack Developer | Fullstack Developer | Frontend Developer | Web Developer ) | daisyui,emailjs,framer-motion,javascript,portfolio,portfolio-website,react,react-icons,react-type-animation,tailwindcss | 2023-03-21T13:19:55Z | 2023-05-20T14:43:41Z | null | 1 | 0 | 168 | 1 | 5 | 38 | null | null | JavaScript |
shubhankar-shandilya-india/Cryptoverse | main | # Cryptoverse
## Description
- An interactive platform displaying trending cryptocurrencies, top 100 coin charts, and detailed chart patterns for individual coins.
## Live Project
https://cryptoverse-steel.vercel.app/
## Usage
#### Install command
- npm i --legacy-peer-deps
#### Build Command
- npm run build
## Built With
- [React JS](https://reactjs.org/)
- [Tailwind CSS](https://tailwindcss.com/)
- [Coin-gecko API](https://www.coingecko.com/en/api)
- [Chart JS](https://reactchartjs.github.io/react-chartjs-2/#/)
- [Redux](https://redux.js.org/)
## Features
- It displays Past Performance Display of any Crypto Coin
- You can add coins in your Wishlist after login
- It displays Top 100 crypto-coins by their market cap
- It displays Top Trending coins in last 24h
- Google and Mail Authentication available
- It provides Powerful and Elegant UI interface of the Web App.
## Learnings From the Project
- Got Practical knowlege while Working with APIs
- Learnt about React.js
- Learnt Redux and how to integrate React and Redux
- Got Practical exposure to Tailwind css.
- Increase in skill of styling a page and making it responsive.
- Time Management and Resource Management.
- Also learnt how to use a new library from scratch as i used libraries like React alice carousel, Redux, React icons etc
## Screenshots
#### Homepage

#### Coinpage

| A Web app which shows Trending Cryptos and Top 100 Coins Chart history made using Coin React.js, Chart.js, gecko API and Firebase. | chartjs,coin-gecko-api,firebase,firebase-auth,firebase-database,firebase-hosting,javascript,reactjs,cryptocurrency,react-project | 2023-03-24T19:15:46Z | 2024-04-30T17:25:29Z | null | 1 | 0 | 35 | 0 | 7 | 36 | null | null | JavaScript |
yoannchb-pro/MoodleGPT | main | <p align="center"><a
href="https://www.flaticon.com/free-icons/mortarboard" target="_blank" rel="noopener noreferrer"
title="Mortarboard icons created by itim2101 - Flaticon" ><img src="./extension/icon.png" alt="Mortarboard icons created by itim2101 - Flaticon" width="150" style="display:block; margin:auto;"></a></p>
# MoodleGPT 1.1.1
This extension allows you to hide CHAT-GPT in a Moodle quiz. You just need to click on the question you want to solve, and CHAT-GPT will automatically provide the answer. However, one needs to be careful because as we know, CHAT-GPT can make errors especially in calculations.
## Chrome Webstore
Find the extension on the Chrome Webstore right [here](https://chrome.google.com/webstore/detail/moodlegpt/fgiepdkoifhpcgdhbiikpgdapjdoemko)
## Summary
- [MoodleGPT 1.1.1](#moodlegpt-111)
- [Chrome Webstore](#chrome-webstore)
- [Summary](#summary)
- [Disclaimer !](#disclaimer-)
- [Donate](#donate)
- [Update](#update)
- [Set up](#set-up)
- [Mode](#mode)
- [Settings](#settings)
- [Internal other features](#internal-other-features)
- [Support table](#support-table)
- [Supported questions type](#supported-questions-type)
- [Select](#select)
- [Put in order question](#put-in-order-question)
- [Resolve equation](#resolve-equation)
- [One response (radio button)](#one-response-radio-button)
- [Multiples responses (checkbox)](#multiples-responses-checkbox)
- [True or false](#true-or-false)
- [Number](#number)
- [Text](#text)
- [Atto](#atto)
- [What about if the question can't be autocompleted ?](#what-about-if-the-question-cant-be-autocompleted-)
- [Test](#test)
- [Beta version with advanced features](#beta-version-with-advanced-features)
## Disclaimer !
I hereby declare that I am not responsible for any misuse or illegal activities carried out using my program. The code is provided for educational and research purposes only, and any use of it outside of these purposes is at the user's own risk.
## Donate
Will be a pleasure if you want to support this project :). I'm alone working on this project and I'm still a student.
<br/>
<a href="https://www.buymeacoffee.com/yoannchbpro" target="_blank" rel="noopener noreferrer"><img src="./assets/bmc-button.png" alt="Mortarboard icons created by itim2101 - Flaticon" width="150"></a>
## Update
See the [changelog](./CHANGELOG.md) to see every updates !
## Set up
> NOTE: This extension only works on Chromium-based browsers like Edge, Chrome, etc.
<p align="center">
<img src="./assets/setup.png" alt="Popup" width="300">
</p>
Go to <b>"Manage my extensions"</b> on your browser, then click on <b>"Load unpacked extension"</b> and select the <b>"extension"</b> folder. Afterwards, click on the extension icon and enter the ApiKey obtained from [openai api](https://platform.openai.com/api-keys). Finally, select a [gpt model](https://platform.openai.com/docs/models) (ensure it work with completion api).
## Mode
<p align="center">
<img src="./assets/mode.png" alt="Popup" width="300">
</p>
- <b>Autocomplete:</b> The extension will complete the question for you by selecting the correct(s) answer(s).
- <b>Clipboard:</b> The response is copied into the clipboard.
- <b>Question to answer:</b> The question is converted to the answer and you can click on it to show back the question (or show back the answer).
<br/><img src="./assets/question-to-answer.gif" alt="Question to Answer">
## Settings
<p align="center">
<img src="./assets/settings.png" alt="Popup" width="300">
</p>
- <b>Api key\*</b>: the [openai api key](https://platform.openai.com/api-keys) from your account (Note you have to put credits by entering a credit card onto your account).
- <b>GPT Model\*</b>: the [gpt model](https://platform.openai.com/docs/models) you want to use.
- <b>Code</b>: a code to be more discret for injecting/removing the extension from the page. Simply type your code you entered into the configuration on the keyboard when you are on your moodle quiz and the extension will be inject. If you want to remove the injection just simply type back the code on your keyboard.
- <b>Cursor indication</b>: show a pointer cursor and a hourglass to know when the request is finished.
- <b>Title indication</b>: show some informations into the title to know for example if the code have been injected.
<br/> 
- <b>Console logs</b>: show logs into the console for the question, chatgpt answer and which response has been chosen.
<br/><img src="./assets/logs.png" alt="Logs" width="250">
- <b>Request timeout</b>: if the request is too long it will be abort after 20 seconds.
- <b>Typing effect</b>: create a typing effect for text. Type any text and it will be replaced by the correct one. If you want to stop it press <b>Backspace</b> key.
<br/> 
- <b>Mouseover effect</b>: you will need to hover (or click for select) the question response to complete it automaticaly.
<br/> 
<br/> 
- <b>Infinite try</b>: click as much as you want on the question (don't forget to reset the question).
- <b>Save history</b>: allows you to create a conversation with ChatGPT by saving the previous question with its answer. However, note that it can consume a significant number of tokens.
- <b>Include images</b> (only work with gpt-4): allows you to include the images from the question to be send to the chatgpt api. The quality is reduced to 75% to use less tokens. However, note that it can consume a significant number of tokens.
<br/> 
## Internal other features
### Support table
Table are formated from the question to make it more readable for CHAT-GPT. Example of formatted table output:
```
id | name | birthDate | cars
------------------------------------
Person 1 | Yvick | 15/08/1999 | yes
Person 2 | Yann | 19/01/2000 | no
```

## Supported questions type
### Select

### Put in order question

### Resolve equation

### One response (radio button)

### Multiples responses (checkbox)

### True or false

### Number

### Text

### Atto

## What about if the question can't be autocompleted ?
To know if the answer has been copied to the clipboard, you can look at the title of the page which will become <b>"Copied to clipboard"</b> for 3 seconds if `Title indication` is on.

## Test
- <b>Solution 1</b>: Go on this [moodle demo page](https://moodle.org/demo).
- <b>Solution 2</b>: Run the `index.html` file located in the `test/fake-moodle` folder.
## Beta version with advanced features
If you're interested in accessing advanced features ahead of their official release, please consider downloading the extension from the [dev branch](https://github.com/yoannchb-pro/MoodleGPT/tree/dev). However, please be aware that this branch is under development and may contain bugs. If you encounter any issues, don't hesitate to contact me or create an issue on GitHub. Your feedback is invaluable in helping us improve the extension.
| This extension allows you to hide CHAT-GPT in a Moodle quiz. | chatgpt,extension-chrome,moodle,quiz-solutions,solver,gpt-3,javascript,moodle-plugin,typescript,chatgpt-api | 2023-03-21T01:15:57Z | 2024-05-05T18:05:38Z | 2024-05-05T18:05:38Z | 1 | 5 | 191 | 1 | 2 | 36 | null | MIT | TypeScript |
ansonbenny/ChatGPT | master | # ChatGPT
This clone is made with MERN and uses OpenAI API.
This project is clone of chatGPT , chatGPT is an AI . It's allows you to have human-like conversations.
## Features
- PWA
- Offline
- Password login
- Forgot password
- Google login & signup
- Chat
- Auto chat save
- History Save
- Account delete option
- Light & Dark mode
- Responsive Design
## Prerequisites
- get your api key from https://openai.com/api/
Make sure you have installed all of the following prerequisites on your development machine:
- Node Js & Npm [Download and Install](https://nodejs.org/en)
- MongoDB [Download and Install](https://www.mongodb.com/docs/manual/installation/)
- Git [Download and Install](https://git-scm.com/downloads)
## Technology Used
#vite #reactjs #scss #redux-toolkit
#nodejs #expressjs #mongodb #jsonwebtoken authentication
#javascript
#openai #chatgpt
## Environment Variables
To run this project, you will need to add the following environment variables to your .env file in server directory
`PORT` = `5000`
`MONGO_URL`
`SITE_URL`
`JWT_PRIVATE_KEY`
`OPENAI_API_KEY`
`OPENAI_ORGANIZATION`
`MAIL_EMAIL`
`MAIL_SECRET`
To run this project, you will need to add the following environment variables to your .env.local file in client directory
`VITE_CLIENT_ID` #Google login api client id
## Run Locally
Clone the project
```bash
git clone https://github.com/ansonbenny/ChatGPT.git
```
##To Start BackEnd
Go to the server directory
```bash
cd ChatGPT/server
```
Install dependencies
```bash
npm install
```
Start
```bash
npm start
```
##To Start FrontEnd
Go to the client directory
```bash
cd ChatGPT/client
```
Install dependencies
```bash
npm install
```
Start
```bash
npm run dev
```
## Demo
[Live](https://chatgpt-8z57.onrender.com)
https://user-images.githubusercontent.com/94070164/236692494-a50edafc-7864-439a-9cb3-fa112abc00a6.mp4












## 🔗 Links
[](https://www.linkedin.com/in/anson-benny-502961238/)
| ChatGPT clone developed using MERN stack | chatbot,chatgpt,mern,mongodb,nodejs,reactjs,redux-toolkit,openai,chatgpt-api,chatgpt-clone | 2023-03-22T03:00:11Z | 2023-05-14T11:41:31Z | null | 1 | 0 | 59 | 8 | 10 | 35 | null | null | JavaScript |
muhammadv-i/obsidian-frontmatter-alias-display | main | # Frontmatter Alias Display
A plugin for Obsidian.md to show front-matter aliases as display names in the File Explorer. Right now, it only supports the File Explorer but I'm planning to implement it in the Graph View as well.

## Why?
"Why even write the title in frontmatter in the first place?"
Many people who are using Obsidian as a [Zettelkasten](https://zettelkasten.de/) system will immediately realize that it is kind of difficult to navigate the File Explorer when all you see are notes with arbitrary titles (e.g. `202303041748`, aka ID) instead of a more informative title such as, say, `the difference between .prototype and .constructor`.
Those arbitrary titles, or more accurately, IDs, make for easy navigation and linking between notes, which is the core concept of the Zettelkasten method, while also ensuring that no two notes have the same ID.
So now we get to keep the note ID pure while also maintaining an informative title in frontmatter. When we link to another note, we can use Obsidian's helpful link alias by typing `[[ID|Alias]]` which will link to the note with the `ID` as its title, but display `Alias` as the link
![using "[[ID|Alias]]"](IDAlias.gif)
#### Feedback
I would love to hear from you guys and get constructive criticism about ways to improve this plugin, especially feedback related to the implementation and usage of the API and TypeScript in general.
#### Warning
This is my first time developing a plugin and working with the Obsidian API. Test the plugin inside a dummy Vault beforehand. Use at your own discretion.
#### Todo
- [ ] Expand functionality into the Graph View
- [ ] Add a settings menu for customization and other options
| A plugin for Obsidian.md to show front-matter aliases as display names in the file menu. | javascript,obsidian-md,obsidian-plugin,typescript,zettelkasten | 2023-03-24T14:06:37Z | 2023-05-10T14:28:04Z | 2023-05-10T14:25:59Z | 2 | 5 | 24 | 7 | 4 | 30 | null | GPL-3.0 | JavaScript |
sanidhyy/mern-admin | main | # Modern Full Stack Admin Dashboard using MERN

[](https://github.com/Technical-Shubham-tech "Ask Me Anything!")
[](https://github.com/Technical-Shubham-tech/mern-admin/blob/main/LICENSE.md "GitHub license")
[](https://github.com/Technical-Shubham-tech/mern-admin/commits/main "Maintenance")
[](https://github.com/Technical-Shubham-tech/mern-admin/branches "GitHub branches")
[](https://github.com/Technical-Shubham-tech/mern-admin/commits "Github commits")
[](https://mern-admin.netlify.app/ "Netlify Status")
[](https://github.com/Technical-Shubham-tech/mern-admin/issues "GitHub issues")
[](https://github.com/Technical-Shubham-tech/mern-admin/pulls "GitHub pull requests")
## ⚠️ Before you start
1. Make sure **Git** and **NodeJS** is installed.
2. Clone this repository to your local computer.
3. Create .env file in both **client** and **server**.
4. Contents of **client/.env**:
```
REACT_APP_BASE_URL="http://localhost:5001"
```
5. Contents of **server/.env**:
```
MONGODB_URL="XXXXXXXXXXXXXXXXXXXXXXXXX"
PORT=5001
```
5. Open terminal and run `npm install` or `yarn install` in both **client** & **server**.
6. Create new account in [MongoDB](https://mongodb.com/ "MongoDB").
7. From dashboard Create New Project > Create New Cluster > Click Connect and Make sure you add current ip address to be able to connect to this database.

**NOTE:** Make Sure you type same email in `VITE_APP_EMAILJS_RECIEVER` in `.env`
8. Once, MONGODB is configured, copy your **MONGODB URL** to `MONGODB_URL`.

9. Now, open `server/index.js` and uncomment imports and other lines to **insert data** into MongoDB.
**NOTE:** Make sure to comment them after running first time to avoid duplicate values in database.
10. Now app is fully configured :+1: and you can start using this app using `npm run dev` or `yarn run dev` for server and `npm start` or `yarn start` for client.
**NOTE:** Make sure you don't share these keys publicaly.
## :fire: Features
- Supports both **Dark** and **Light** Theme.
- **Mobile Responsive** Layout.
- Built-in **5+ Fully Customizable Scenes** including:
1. Products
2. Customers
3. Transactions
4. Geography
- Easy to customize **6+ charts** with theme support including:
1. Overview
2. Daily
3. Monthly
4. Breakdown
5. Admin
6. Performance
- **4+ Customizable Pages** with full theming support including:
1. Dashboard
2. Client Facing
3. Sales
4. Management
- **15+ Components** which are easy-to-use and fully customizable.
**NOTE:** While running deployed version, it might take some time to load first time on render. [Learn more](https://render.com/docs/free#other-limitations "Learn More")
## :camera: Screenshots:





## :gear: Built with
[](https://react.dev/ "React JS") [](https://nodejs.org/ "Node JS") [](https://mongodb.com/ "MongoDB") [](https://mui.com/ "Material UI") [](https://redux.js.org/ "React Redux")
## :wrench: Stats
[](https://pagespeed.web.dev/ "Stats for this App")
## :raised_hands: Contribute
You might encounter some bugs while using this app. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.
## Buy Me a Coffee 🍺
[<img src="https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black" width="200" />](https://www.buymeacoffee.com/sanidhy "Buy me a Coffee")
## :rocket: Follow Me
[](https://github.com/Technical-Shubham-tech "Follow Me")
[](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FTechnical-Shubham-tech%2Fmedical-chat-app "Tweet")
[](https://www.youtube.com/channel/UCNAz_hUVBG2ZUN8TVm0bmYw "Subscribe my Channel")
## :star: Give A Star
You can also give this repository a star to show more people and they can use this repository.
## :books: Available Scripts
In the project directory, you can run:
### `yarn run dev`
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.
### `yarn 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.
### `yarn run build`
Builds the app for production to the `dist` 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.
### `yarn 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.
## :page_with_curl: 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)
### `yarn 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)
| Modern Full Stack Admin Dashboard using MERN | css,javascript,js,material-ui,mern,mern-stack,mongodb,mui,react,reactjs | 2023-03-18T09:07:50Z | 2024-05-02T12:05:16Z | null | 1 | 15 | 121 | 0 | 14 | 30 | null | MIT | JavaScript |
PacktPublishing/Angular---The-Complete-Guide---2023-Edition | main | # Angular - The Complete Guide [2023 Edition]
### _Master Angular (formerly “Angular 2”) and build awesome, reactive web apps with the successor of Angular.js_
## Course Update Note
<li>March 2023: Section 24 (Standalone Components) and Section 33 (Bonus: TypeScript Introduction (for Angular 2 Usage)) are newly added to the course.</li>
<li>July 2023: Section 25 (Angular Signals) is added to the course.</li>
## Course Description
If you are looking to become a proficient Angular developer and build modern, responsive, and scalable web applications, then this is the course for you! This comprehensive course starts from scratch, so no prior Angular 1 or 2+ knowledge is required.
Throughout the course, you will learn about Angular architecture, components, directives, services, forms, HTTP access, authentication, optimizing Angular apps with modules and offline compilation, and much more. You will also learn how to use the Angular CLI and deploy an application.
The course features TypeScript, the main language used by the official Angular team, and ensures you have the best preparation for creating Angular apps. The course includes a complete project to practice your skills, and you will benefit from fast and friendly support if you get stuck.
In the latest course update, you will learn to work with signals in Angular, allowing you to easily manage and update data flow within your application. You will also discover the power of NgRx for state management and explore Angular Universal.
By the end of the course, you will have a deep understanding of how to create Angular applications, including modules, directives, components, databinding, routing, HTTP access, dependency injection, signals, state management with NgRx, and server-side rendering with Angular Universal; and quickly establish yourself as a front-end developer.
## For the 2021 edition of the course
Refer to this [GitHub repo](https://github.com/PacktPublishing/Angular---The-Complete-Guide-2021-Edition)
## What You Will Learn:
- Use TypeScript to write Angular applications
- Understand the process of creating custom components
- Handle routing and navigation in Angular applications
- Find out how to use pipes and modules in Angular
- Uncover methods to optimize Angular applications
- Become familiar with NgRx and complex state management
## Key Features:
- Comprehensive coverage of Angular fundamentals and advanced concepts
- Project-based learning to reinforce concepts and real-world application
- Develop modern, complex, responsive, and scalable web applications with Angular
| Find the code bundle for "Angular - The Complete Guide [2023 Edition]" course here | angular,application,javascript,ngrx,typescript,web | 2023-03-23T12:03:12Z | 2023-08-09T08:50:33Z | null | 5 | 0 | 8 | 0 | 26 | 29 | null | MIT | null |
Bahrul-Rozak/30-Hari-JavaScript-Ramadhan-Edition | main | # 30-Hari-JavaScript-Ramadhan-Edition
Selamat datang di repository 30 hari belajar javascript. Repository ini dibuat untuk siapa saja yang ingin belajar konsep-konsep dasar pemrograman JavaScript. Semoga dengan adanya Referensi ini dapat menambahkan insight seputar dunia per javascript an di Indonesia.
### Bagaimana cara saya berkontribusi?
Jika teman-teman ingin berkontribusi pada repository ini, teman-teman bisa menyebarkan link repo ini agar semakin banyak yang menerima manfaat dari repository ini.
### Note
Jangan lupa untuk ⭐ repository, karena dengan ⭐ repository ini, secara tidak langsung kamu menambahkan semangat penulis, untuk lebih banyak berbuat hal baik lagi. Terima Kasih
### Temukan Tutorial Gratis Lainnya
- [Klik Disini](https://www.udemy.com/user/bahrul-rozak-2/)
| Hari ke | Topik Pembahasan | Link Module |
| ------- | ---------------- | ----------- |
| - | Preambule | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-preambule-af288e660324) |
| 1 | Syntax, Komentar, Number, Boolean, String | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-1-b35b53cbecb) |
| 2 | Variabel, Operator matematika, logika, perbandingan, fitur console| [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-2-8dbb18e63041)|
| 3 | Template Literal, String to Number, Array, Object, If Expression | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-3-583c71997ded) |
| 4 | Membuat Popup, Undefined. Null, Switch Expression, typeof Pada JavaScript | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-4-25797cb2f622) |
| 5 | In Operator, Ternary, Nullish Coalescing, Optional Chaining, Falsy dan Truthy | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-5-487a100be78d) |
| 6 | Operator Logika di Non Boolean, For Loop, While Loop, Do While Loop, Break dan Continue | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-6-996fde2daca4)|
| 7 | Label, For In, For Of, With Statement, Function pada JavaScript | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-7-57dfd23b5fa0)|
| 8 | Function Parameter, Function Return Value, Optional Parameter, Default Parameter, Function sebagai Value | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-8-dddb681b7b4) |
| 9 | Anonymous Function, Inner Function, Scope Function, Recursive Function, Function Generator | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-9-e86c7eba3ef2) |
| 10 | Arrow Function, Closure, Object Method, This Keyword, Arrow Function as Object | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-10-b07812f55abf) |
| 11 | Getter dan Setter, Var Problem, Destructuring, Strict Mode and Spread Operator | [Pelajar Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-11-a88ca65f578b) |
| 12 | Map, Set, Splicing Array, Sorting Array, Joining Array | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-12-8ac337b81878)|
| 13 | Apa itu Object Oriented Programming? | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-13-a59aaec51ada)|
| 14 | Constructor function, property method param and inherintace at constructor function | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-14-fda19d62e2a) |
| 15 | Mengenal Prototype pada JavaScript, Prototype Inheritance pada JavaScript, Keyword Class pada JavaScript, Constructor di Class pada JavaScript, Property di Class pada JavaScript | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-15-b3dedbdd3338)|
| 16 | Method di Class pada JavaScript, Class Inheritance pada JavaScript, Super Constructor pada JavaScript, Super Method pada JavaScript, Getter dan Setter di Class pada JavaScript | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-16-26ce5806f2fc)|
| 17 | Public Class Field pada JavaScript, Private Class Field pada JavaScript, Private Method pada JavaScript, Operator Instanceof pada JavaScript, Static Class Field | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-17-f68d08389aa0)|
| 18 | Static Method pada JavaScript, Error pada JavaScript, Error Handling pada JavaScript, Manual Class Error pada JavaScript, Built in Class pada JavaScript | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-18-3da5bd48f205) |
| 19 | Mengenal Functional Programming pada JavaScript, Pure Function Pada JavaScript, Immutability pada JavaScript, Recursive pada JavaScript, High Order Function pada JavaScript | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-19-ae6de19c0287)|
| 20 | JavaScript Module Part : 1 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-20-javascript-module-part-1-8706b15f966a)|
| 21 | JavaScript Module Part : 2 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-21-javascript-module-part-2-8349f26ad88e)|
| 22 | JavaScript Module Part : 3 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-22-javascript-module-part-3-d7d35f7e63e7)|
| 23 | JavaScript DOM Part : 1 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-23-javascript-dom-part-1-b59aedbd13e4)|
| 24 | JavaScript DOM Part : 2 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-24-javascript-dom-part-2-57388229b820)|
| 25 | JavaScript DOM Part : 3 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-25-javascript-dom-part-3-8cebaa90881)|
| 26 | JavaScript DOM Part : 4 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-26-javascript-dom-part-4-b62b4c1833c4)|
| 27 | JavaScript DOM Part : 5 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-27-javascript-dom-part-5-f5ec91adf08f)|
| 28 | Berkenalan dengan Tenaga Asycn : Part-1 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-28-berkenalan-dengan-tenaga-asycn-part-1-dfdc00c4fce3)|
| 29 | Berkenalan dengan Tenaga Async : Part-2 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-29-berkenalan-dengan-tenaga-asycn-part-2-8f965326814e)|
| 30 | Berkenalan dengan Tenaga Async : Part-3 | [Pelajari Sekarang](https://medium.com/@bahrulrozak/30-hari-belajar-javascript-hari-ke-30-berkenalan-dengan-tenaga-asycn-part-3-14dbd9b95c16)|
## Dibuat dengan 🧡 oleh Bahrul Rozak untuk Rakyat Indonesia
| 👋 Belajar JavaScript selama 30 hari spesial Ramadhan | belajar-javascript,javascript,module,learn-javascript,learn-programming,learning,belajar-coding,coding,es6,js | 2023-03-22T02:24:28Z | 2023-05-26T20:05:57Z | null | 1 | 0 | 34 | 0 | 3 | 28 | null | null | null |
apitube/docs | master | # APITUBE DOCS
### Installation
```
$ yarn
```
### Local Development
```
$ yarn start
```
### Build
```
$ yarn build
```
| News API Documentation for APITUBE | nodejs,python,ruby,javascript,kotlin,golang,java,shell,swift,clojure | 2023-03-19T11:40:38Z | 2024-05-23T13:43:58Z | null | 1 | 0 | 269 | 0 | 0 | 28 | null | null | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.