teleren/devto huggingface dataset:
Como adicionar o Bootstrap ao Next.js
Tags: nextjs, react, javascript
Published: 2023-05-01 13:00:00

Neste artigo você aprenderá como adicionar corretamente o **Bootstrap** ao seu projeto Next.js.

O **Bootstrap** é um framework front-end de código aberto amplamente utilizado para desenvolvimento de sites e aplicações web responsivas. Ele é projetado para ajudar os desenvolvedores a criar interfaces de usuário mais rapidamente e com menos esforço, fornecendo uma série de componentes pré-construídos, como botões, formulários, menus, tabelas, entre outros.

O framework é baseado em HTML, CSS e JavaScript, e é compatível com os principais navegadores web. Ele utiliza uma grade de 12 colunas para ajudar a criar layouts responsivos e adaptáveis a diferentes tamanhos de tela e dispositivos móveis. Além disso, o **Bootstrap** também oferece uma ampla variedade de plugins e extensões que podem ser adicionados para estender suas funcionalidades.

## Como adicionar o **Bootstrap** ao Next.js



Primeiro crie um projeto Next.js com `npm` ou `yarn`.

```bash
npx create-next-app my-app
# ou 
yarn create next-app my-app
```

Entre no diretório `my-app` e siga as instruções da instalação.

```bash
cd my-app
```

Abra um novo terminal, navegue até o diretório `my-app` e instale o bootstrap.

```bash
npm install bootstrap 
ou 
yarn add bootstrap
```

Depois criamos uma página `_app.js` no diretório `Pages`.

```bash
touch pages/_app.js
```

Adicione o código a seguir no `_app.js`. Preste atenção, pois o Bootstrap deve ser importado antes do seu arquivo CSS.

```javascript

import "bootstrap/dist/css/bootstrap.min.css";
import "../css/customcss.css";
import Head from "next/head";

function MyApp({ Component, pageProps }) {
  return (
    <>
      <Head>
        <meta name="viewport" content="width=device-width, initial-scale=1" />
      </Head>
      <Component {...pageProps} />
    </>
  );
}

export default MyApp;
```

Atente para a tag meta="viewport", responsável pela responsividade da aplicação.

## Conclusão

Espero que esse rápido artigo tenha te ajudado a utilizar o **Bootstrap** no Next.js.
JavaScript pushes the WebApplication structures from Development to Deployment Stage
Tags: javascript, webdev, css, html
Published: 2023-05-01 12:48:38

The Web Applications needs HTML, JavaScript, CSS and Icons to work. Creating a web application in modular approach makes it hard for packaging HTML, JS, CSS and Icons of a component and combine them during deployment.

The solution for modular web application development is to develop all these parts (HTML, JS, CSS and Icons) using the technologies which can be transpiled into Pure Javascript. The Javascript then can be shared as NPM package. JSX can be used to create HTML in javascript. CSS-IN-JS libraries (for example styled-components) used to create CSS in Javascript. The Icons created using SVG can be embedded in JSX which inturn compiled into pure javascript.

During deployment, the bundler and other tools can re-generate the HTML, CSS and JS back from the Javascript. Tools like webpack, parcel, vite generates the web applications from these reusable NPM packages.

Check out these Amazing Material UI Components here https://sodaru.github.io/mui-extended
These components uses JSX, and Styled Components and can be included in any of your react application.

Happy coding
[Storybook GPT] Set up project in Github Codespaces
Tags: githubhack23, webdev, react, github
Published: 2023-05-01 12:46:14

After deciding what project to develop for the [Github + DEV 2023 Hackathon](https://dev.to/devteam/announcing-the-github-dev-2023-hackathon-4ocn), it is time to get to work. 
As I said I will be using Github Codespaces, which allows me to spin up a fully configured development environment in the cloud. Not only does this save time and eliminates the need for local setup, but it also lets me work from any device with an internet connection - including my tablet. This will be especially helpful since I plan to work on the project while sitting in bed :).

In this post, I will show how I set up my project on GitHub Codespaces and started coding instantly.

#### Step 1 - Create a new codespace

After creating the repository, we need to click on the green **Code** button and switch to the **Codespaces** tab. This is where the magic happens. We have two options here: 

- click on the **+** button and create a new codespace on main branch with the default options;
- click on the **three dots** button and select to create a new codespace with options;

I opted for the later and I changed the options as shown in the image bellow.

![Codespace configuration](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j8win1d82t91letwj167.png)

Once we click on the green **Create codespace** button, it takes less than one minute to set up a development environment that’s ready to use. I was also impressed to see that all my VSCode extensions were installed in the codespace automatically.

#### Step 2 - Set up the project

Now we need to set up the project. For this hackathon, I will use **NextJS 13** with **Typescript** and **Tailwind CSS**. After running the following command in the terminal `npx create-next-app@latest`, this is how the codespace appears:

![NextJS project in codespace](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e3khpxt1rgq36y748852.png)

Now it's time to remove the default files and start working on the project.

#### Conclusion

[GitHub Codespaces](https://github.com/features/codespaces) is a powerful tool that enables you to code from anywhere without setting up anything locally. You can create and customize codespaces for any project on GitHub and enjoy a fast and consistent development experience.
Wails and Echo framework with Go Language
Published: 2023-05-01 12:34:31

Two well-liked Go programming frameworks for creating web applications are Wails and Echo. Even if they have certain commonalities, they are made for various uses and scenarios.

Developers may construct cross-platform desktop applications with a native feel and look using Wails, a desktop application framework for Go. It blends web development's ease of use with Go's strength to produce programmes that work on Windows, macOS, and Linux.

The user interface of Wails, which was created using HTML, CSS, and JavaScript, is shown using a web view. The application's backend logic, which is built in Go, can be used to access system resources, communicate with the file system, and carry out other operations.

On the other side, Echo is a web framework for Go that is intended for creating APIs and online applications. It offers a selection of features and tools for creating cutting-edge online apps and is lightweight, quick, and versatile.

Echo offers middleware for handling functions like authentication, logging, and error handling and uses a router to manage HTTP requests. Additionally, it supports WebSocket communication, session management, and template rendering.

In conclusion, Echo is a web framework that is used to construct web apps and APIs, whereas Wails is a desktop application framework that employs web technologies to create native desktop applications. Both frameworks are well-liked and each has particular advantages and applications.
Applications in Go Language built on CRUD properties:
Published: 2023-05-01 12:26:10

Numerous Go-built applications that use CRUD operations are available. Here are a few instances:

1. Social media platform: A social media platform made using Go can leverage CRUD operations to help users upload new content, browse already-posted content, edit their own content, and delete content that is no longer required.

2. Blogging platform: A blogging platform made using Go can leverage CRUD operations to let users publish new blog entries, read previously published entries, edit or delete entries that are no longer necessary, and so on.

3. Go-based task management systems can leverage CRUD operations to help users add new tasks, examine already-existing tasks, edit task details like due dates or statuses, mark completed tasks as well as delete tasks that are no longer necessary.

4. E-commerce website: A Go-based e-commerce website can use CRUD operations to let users add new product listings, examine already-existing products, change the prices or other details of current products, and remove products that are no longer in stock.

5. Contact management system: A Go-based contact management system can use CRUD operations to let users add new contacts, view their existing contacts, edit their contact details, and delete contacts who are no longer required.
An exciting year with groundbreaking innovations that will shape various industries
Tags: technology, 2023, groundbreaking
Published: 2023-05-01 12:17:12

The top ten **[groundbreaking innovations](https://codepaper.com/exciting-year-with-groundbreaking-innovations-that-will-shape-various-industries/)** technology trends for 2023, including edge computing, artificial intelligence (AI), quantum computing, 5G technology, the Internet of Things (IoT), augmented reality (AR), and virtual reality (VR), and cybersecurity. These trends will revolutionize the tech landscape and have a significant impact on how we live and work. Stay tuned for these exciting advancements in the world of technology in 2023!
Go Language: Why should you use it?
Published: 2023-05-01 12:16:22

Google created the programming language Go, sometimes referred to as Golang, in 2007. Go is an open-source, user-friendly programming language that may be used for a variety of purposes. Here are a few justifications for using Go in your upcoming project.

1. Go is a straightforward and simple-to-learn programming language that doesn't need much setup or configuration. It is perfect for both inexperienced and seasoned developers due to its straightforward syntax that is simple to read and understand. Because of the language's simplicity, you can create code that is simple to read and maintain, which lowers the likelihood of mistakes and defects.

2. Go is intended to be a language with excellent performance. It fast compiles, making it the best option for complicated applications. The simplicity of Go's syntax, which makes code optimisation by the compiler straightforward, contributes to the language's speed. A garbage collector is also included, which automatically maintains memory and releases resources when they are no longer required.

3. Concurrency is supported natively in Go, making it simple to create programmes that can handle several tasks at once. It makes use of goroutines, little threads that let you do several operations at once. This implies that you can create programmes that run quickly even when handling thousands of requests per second.

4. Go is a cross-platform language, so you can create code on one platform and execute it without any changes on another. It is the perfect option for designing programmes that need to operate on different platforms because it supports Windows, Linux, and macOS.

5. Go is a cross-platform language, so you can create code on one platform and execute it without any changes on another. It is the perfect option for designing programmes that need to operate on different platforms because it supports Windows, Linux, and macOS.
Effortlessly update Your Spotify Playlists daily with This Simple Tool
Tags: githubhack23, python, githubactions, opensource
Published: 2023-05-01 12:15:42

## What I built 
I built a tool that can automate the process of updating Spotify playlists, making it easier for users to maintain their music collections. It runs the python script to update playlist every day using GitHub Actions.

Users can configure the tool to update tracks on playlist based on different categories like Top tracks, top artists, recently played and tracks. This eliminates the need for manual playlist management, saving time and effort for users who want to keep their music collections organized.

### Category Submission: 

This is a random tool that uses GitHub Actions so it belongs to `Wacky Wildcards`

### App Link

Checkout this on [GitHub](https://github.com/yogeshwaran01/update-my-spotify-playlist)

### Screenshots 

Local working demo of this tool

![demo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/agvayipwjyn78k2owc2w.gif)

### Description 

This is simple Python script to update the given playlist with recommended tracks of User. Tracks added to the playlist can be customizable by different categories. Currently, it supports

- `TopArtist()`
- `TopTracks()`
- `TopMix()` - It mix both TopArtist and TopTracks
- `RecentlyPlayed()`
- `Mix()` - If you need a playlist with particular artists, tracks or genre, you can mix up to 5 parameters like Artist, Genre and Track. Only 5 parameters are allowed

The number of tracks added to the playlist is also configurable. Checkout [Readme] (https://github.com/yogeshwaran01/update-my-spotify-playlist#readme) for more information and usage details.

It uses the [GitHub Actions] (https://github.com/yogeshwaran01/update-my-spotify-playlist/blob/master/.github/workflows/main.yml) to runs the script every day to update playlist.

### Link to Source Code 

Source Code of this tool is found at [GitHub](https://github.com/yogeshwaran01/update-my-spotify-playlist)

### Permissive License 

Distributed under the [MIT license] (https://github.com/yogeshwaran01/update-my-spotify-playlist/blob/master/LICENSE).

## Background 

Firstly, I love Music.
I got this idea from my previous project to [convert Spotify playlist into YouTube playlist] (https://github.com/yogeshwaran01/spotify-playlist-to-youtube-playlist). In a previous project I automated the process of YouTube playlist creation. Next, I need to automate the process of Spotify playlist. So, this is a tool I finally got at end.

### How I built it 

I used to `spotipy` Python library which is Python wrapper of the Spotify web API. A wrote script to update playlist using Python and finally I used to GitHub actions to run the script every day to update playlist

### Additional Resources/Info

- [Spotify Web Api](https://developer.spotify.com/documentation/web-api)
- [Spotipy] (https://spotipy.readthedocs.io/en/2.22.1/)
- [GitHub Actions](https://github.com/features/actions)

Thank you,
Giới thiệu Zbet - Sân chơi giải trí hàng đầu năm 2023
Published: 2023-05-01 12:14:17

Nếu bạn đam mê cá cược trực tuyến, chắc chắn bạn đã nghe đến Zbet – một nhà cái được đánh giá cao trong giới cá cược. Tuy nhiên, với những người chơi mới, thông tin về nhà cái này có thể chưa đầy đủ và rõ ràng. Vì vậy, hãy đọc bài viết dưới đây để tìm hiểu chi tiết về địa chỉ cá cược này nhé! Một sự lựa chọn thú vị cho những người yêu thích cá cược trực tuyến.
Zbet được xem là một trong những nhà cái hàng đầu và uy tín nhất tại thị trường cá cược Việt Nam. Khởi nguồn từ Châu Mỹ, nhà cái đã mở rộng hoạt động tới nhiều quốc gia trên thế giới và được cấp giấy phép hoạt động bởi các tổ chức cá cược hàng đầu. Do đó, khi tham gia tại đây, người chơi sẽ được đảm bảo quyền lợi tối đa.

Mục đích hoạt động của Zbet là cung cấp một sân chơi lành mạnh và an toàn cho những người đam mê cá cược. Tất cả các dịch vụ tại nhà cái đều được cập nhật mới nhất và đạt chuẩn chất lượng cao nhất. Hơn nữa, nhà cái thường xuyên nâng cấp và cập nhật các tính năng để mang đến trải nghiệm chơi cược tốt nhất và đỉnh cao nhất cho người chơi.
#zbet #zbetvn
Website: https://zbetvn.kim/
ĐC:        158 Ngọc Lâm, Long Biên, Hà Nội, Việt Nam
SĐT:       0368912438
Email:     admin@zbetvn.kim
https://www.facebook.com/zbetvnkim/
https://www.youtube.com/@zbetvnkim/about
https://twitter.com/zbetvnkim
https://www.pinterest.com/zbetvnkim/
 
https://www.linkedin.com/in/zbetvnkim/
https://vimeo.com/zbetvnkim
https://www.tumblr.com/zbetvnkim
https://medium.com/@zbetvnkim/about
https://www.reddit.com/user/zbetvnkim
https://www.quora.com/profile/Zbetvnkim
https://soundcloud.com/zbetvnkim
https://social.msdn.microsoft.com/Profile/zbetvnkim
Unlocking the Power of Vector Databases for Fast and Accurate Data Storage
Tags: webdev, vectordatabase, machinelearning, ai
Published: 2023-05-01 11:43:59

Vector databases are an increasingly popular tool in the world of machine learning and data science. They offer a powerful way to store and query large sets of vectors, making them ideal for a wide range of applications, from recommendation engines to natural language processing. In this blog post, we'll take a closer look at vector databases, exploring how they work, what problems they can solve, and some of the most popular options available today. Whether you're new to vector databases or an experienced user looking to expand your knowledge, this post has something for you.

Learn more: [https://www.cygnismedia.com/blog/introduction-to-vector-databases/](https://www.cygnismedia.com/blog/introduction-to-vector-databases/)
REST API
Tags: api
Published: 2023-05-01 11:31:21

##<u>Introduction to API</u>
API --> `Application Programming Interface` , is defined as a set of rules or protocols that are set to enable two software to communicate with each other.
There are several types of API’s example `SOAP`, `XML-RPC` or `REST`
This article will focus more on REST API.

Rest API stands for  `REpresentational State Transfer`→ It is a set of functions  (GET, POST,PUT or Delete) that enables clients to perform `CRUD` operations that include `Create , Read, Update and Delete` resources in the  data server. 

<u>There are Six REST API design principles</u>.

- Uniform interface
- Stateless
- Client-server decoupling
- Cacheable
- Code on Demand
- Layered System

<u>Rest API HTTP Methods</u>

1.  GET → Request Data from a server.The response contains all 
          details requested. 
2.  POST→Create new resources on the server.
3.  PUT→Update a Resource in the specified URL.
4.  DELETE→Delete a Resource in the Specified URL.
How Soulpay changed the outlook of financial services in India
Published: 2023-05-01 11:29:08

Soulpay has become a beloved financial services provider in India, with a growing number of people becoming part of the Soulpay family as distributors, retailers, alliance officers, or customers and [Digital Banking and Fintech Services in Delhi](https://www.soulpay.in/). Prior to the emergence of Soulpay, many people in villages, towns, and suburban regions had little or no access to financial services and had to travel to cities for transactions or rely on middlemen who charged high fees.

Soulpay has been able to bring convenience to these individuals, and as a result, has connected with over 350 distributors and 20,000 retailers. With its services available in more than 33 districts, Soulpay is aiming to make its services available throughout the entire country. The company's mission is to provide the best financial services to all of India's citizens.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8cng8cf22d6uhxk9m64k.jpg)

Soulpay's user-friendly fintech services have enabled customers to access everything they need from the comfort of their own homes. Customers can recharge their DTH and phone, book travel reservations by road, air, or rail, [Bill Pay Service Business In India](https://www.soulpay.in/bharat-bill-payment-system.php) and take advantage of other value-added services and also [Domestic Money Transfer Business in India](https://www.soulpay.in/domestic-money-transfer.php). To raise awareness of its services, Soulpay regularly attends seminars to educate people about its offerings and provide opportunities for people to earn extra money by associating themselves with the company.

Attending Soulpay seminars can help individuals understand how to use its services effectively and make their lives easier. Participants can learn more about the company's services and how to register to become a distributor, retailer, or store owner. Seminars are held regularly, and interested parties can register in advance to be formally invited to attend.

Soulpay has revolutionized financial services in india and brought about a social change in the way finances are viewed. Through its venture, the company has empowered people to make financial decisions with confidence, such as availing loans, buying insurance, and getting a Pan card. To thank participants for attending its seminars, Soulpay offers exciting prizes to take home, ensuring that people cherish being associated with the company.
Responsive Navbar with Hide on Scroll down and show on scroll up copy paste ready
Tags: codepen, javascript
Published: 2023-05-01 11:27:47

{% codepen https://codepen.io/sreeharshrajan/pen/wvYeBBB %}


In this example, we first define a constant variable navbar and a let variable **lastScrollPosition** to keep track of the user's scroll position. We then add an event listener for the scroll event on the window object.

Inside the event listener, we get the current scroll position using the **window.pageYOffset** property. We then check if the user has scrolled **down** or **up** (as determined by comparing the current scroll position to the previous position stored in the **lastScrollPosition** **variable**). If the user has scrolled down, we add the .hide class to the navbar element to hide it. Otherwise, we remove the .hide class to show it. We then update the **lastScrollPosition** variable for the next event.