This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Git and GitHub Setup | |
To Install Git In Ubuntu | |
1. sudo apt update && sudo apt install git -y | |
2. git --version | |
To Install Git In MacOS | |
1.brew install git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chown -R $USER:$USER ~/.npm | |
sudo chown -R $USER:$USER node_modules package-lock.json | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
npm config delete proxy | |
npm config delete https-proxy | |
export PATH=$PATH:$(npm bin -g) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps for Deployment WebApp / Websites | |
1.Make sure you have webapp or website is working good at local | |
2.make a GitHub repo and push the code to GitHub without node_modules | |
3.Changes in GitHub Repo | |
- Add Description | |
- Add URL | |
- Add Keywords | |
- Add README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install -y git | |
sudo apt install -y net-tools | |
sudo timedatectl set-timezone Asia/Kolkata | |
sudo apt-get install -y nginx | |
sudo apt install -y snapd | |
sudo snap install core | |
sudo apt-get install -y python3-certbot-nginx | |
sudo snap install --classic certbot | |
sudo ln -s /snap/bin/certbot /usr/bin/ | |
sudo apt install -y python3-pip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from "express"; | |
import fs from "fs"; | |
import path from "path"; | |
import { fileURLToPath } from "url"; | |
import config from "config"; | |
import cors from "cors"; | |
// Database connection | |
import "./utils/dbConnect.js"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm init -y | |
npm install express socket.io | |
import express from "express"; | |
import { createServer } from "http"; | |
import { Server } from "socket.io"; | |
const app = express(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ensure the script runs with root privileges | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root. Use sudo!" | |
exit 1 | |
fi | |
# Get the default user (who ran sudo) | |
DEFAULT_USER=$SUDO_USER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>To-Do List</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #f4f4f4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Posts with Axios and Bootstrap</title> | |
<!-- Bootstrap CSS --> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | |
<!-- Axios --> | |
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html data-wf-domain="www.wexa.ai" data-wf-page="65f99f0a2457ec47591bb4c2" data-wf-site="65dec7222c3d359a25065704" | |
lang="en" data-wf-locale="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Wexa.ai | AI Automation for Productivity</title> | |
<meta | |
content="Wexa.ai is an advanced AI automation platform designed to enhance enterprise productivity by automating routine tasks and processes. With a suite of powerful tools, including Wexa Coworkers, Tables, and Connectors, Wexa enables businesses to streamline operations, save time, and reduce costs. Ideal for companies of all sizes, Wexa simplifies complex workflows, integrates seamlessly with various systems, and adapts to your unique business needs" | |
name="description" /> |
NewerOlder