Skip to content

Instantly share code, notes, and snippets.

View jspw's full-sized avatar
🔧
Learning & Exploring

MH Shifat jspw

🔧
Learning & Exploring
View GitHub Profile
@jspw
jspw / inra_crm_backend_api_doc.md
Last active December 26, 2023 12:11
Intra_CRM Backend Api Doc
@jspw
jspw / Admin Panel Backend Api For Paddle.md
Last active October 3, 2023 14:58
Api documentation for Paddle Admin Panel Backend Api

API Documnentation

Note : The List api have start and limit query param for pagination and search param where search neede. In article we can have query params like categoryID and tagID to get articels based on categories and tags.

Languages

Get Language List

GET : /languages

Configuration for SSL Certificate

Install Certbot

sudo apt install certbot python3-certbot-nginx

Config will depend on your server apache or nginx

Note : I am using nginx

@jspw
jspw / explain-nginx-symblink.md
Created June 22, 2023 19:26
Explanation on How Nginx works with Symbolic Link
@jspw
jspw / nginx-symb.md
Created June 22, 2023 19:22
Config nginx with symlink

Yes, you can create a separate configuration file for your React app in the /etc/nginx/sites-available directory. Here's how you can do it:

Step 1: Create a new NGINX configuration file Run the following command to create a new configuration file for your React app:

sudo nano /etc/nginx/sites-available/my-react-app

This will open the Nano text editor with a new file.

@jspw
jspw / MongoReplicaConfig.md
Last active June 14, 2023 13:31
Configure mongodb replica for production
  • Install Mongodb in server

  • Create/start multiple mongo servers (my be in different vm or in same server on different port)

    • mongod --port 2717 --dbpath ~/test/mongos/db1 --replSet myReplicaSet
    • mongod --port 2718 --dbpath ~/test/mongos/db2 --replSet myReplicaSet
    • mongod --port 2719 --dbpath ~/test/mongos/db3 --replSet myReplicaSet
  • Open up any mongo server shell (lets say “2717”) which will be your primary mongodb

    • mong --port 2717
  • Check status :

@jspw
jspw / Activemq.md
Last active April 18, 2023 08:10
Install and active Activemq in macbook
  • install activemq : brew install apache-activemq
  • activate : brew services start activemq
@jspw
jspw / install_maven_3.8.5.sh
Last active June 1, 2022 19:59
Install and configure maven 3.8.5 in linux machine
#!/bin/bash
# whoami -> MH Shifat | https://github.com/jspw
# date -> Tue 31 May 2022 10:29:08 PM +06
LATEST_MAVEN_URL="https://dlcdn.apache.org/maven/maven-3/3.8.5/binaries/apache-maven-3.8.5-bin.tar.gz"
printf "Downloading "$MAVEN_FILE_NAME "...\n\n"
sudo wget $LATEST_MAVEN_URL