Skip to content

Instantly share code, notes, and snippets.

@Bhavya8181
Bhavya8181 / setup_mongodb.txt
Last active August 9, 2023 05:27
Setup Mongodb in Ubantu/Windows & intigrate with Laravel
Reference Link
==============
1. Server connect - https://adevait.com/laravel/using-laravel-with-mongodb
2. Crud - https://www.javatpoint.com/mongodb-crud-in-laravel
3. Basic in local - https://www.geeksforgeeks.org/how-to-install-mongodb-on-laravel-project/
4. Setup mongodb in ubantu - https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/
Install mongodb extention - Windows
===================================
@Bhavya8181
Bhavya8181 / gist:c5a443a41bedace3f176058999f083b5
Created November 17, 2023 05:42
Setup Live server project in linux
Setup Live server project
.pem file
.ppk file
3.89.237.111
ubantu
@Bhavya8181
Bhavya8181 / Learn React
Last active February 12, 2024 05:41
React Learning
In react js you can store&use enviorment variable
- Create .env file in root of project
- Add variable with "REACT_APP" prefix (REACT_APP prefix must be required in every variable name)
- Use env variable using "process.env.varaible_name"
For Ex:
1. add variable in .env file
REACT_APP_API_ENDPOINT="http://20.169.229.247/saasoa_back/api"
2. Use variable in any page
const BASE_URL = process.env.REACT_APP_API_ENDPOINT;
@Bhavya8181
Bhavya8181 / Setup Bitbucket CI_CD Pipeline Configuration With Laravel
Last active January 19, 2024 10:46
CI/CD Pipeline with Laravel & Bitbucket for Setup new Laravel Project
Note (We Use variable Insted of actual value you can store your variable in your pipeline )
Ref Link To Store Variable: https://docs.veracode.com/r/Set_a_Bitbucket_Repository_Environment_Variable
Test YML Editor: https://bitbucket-pipelines.atlassian.io/validator
==========================================================================================================
1. First Enable Your repository Pipeline
2. Create varibles into bitbucket repo settings
REPO_ORIGIN_URL -> url to git pull with username and password
https://Bhavya_Neuramonks:ATBBSJZtHPZMaDhfcmeN8uXNvYf869CB452D@bitbucket.org/bhavyaneuramonks/test-repository.git
@Bhavya8181
Bhavya8181 / Setup Laravel Project in windows server
Last active February 1, 2024 08:05
setup & install require packege for setup laravel project in windows server iis
Ref Link
======================
- https://www.youtube.com/watch?v=YMMFfAad3y8
-
1. Base on laravel project version you should ensure that your web server has the following minimum PHP version and extensions: it will find from official website
https://laravel.com/docs/9.x/deployment#server-requirements (select your version and find server requirement on laravel.com official website)
2. Using Remote desktop connection login with your server credentials
<?php
public $timestamps = false; // if dont want to timetamps
protected $table = 'temp_interviewees';
protected $fillable = ['greetings',''];
protected $hidden = [ ];
Bootstrap - buttons typs - https://getbootstrap.com/docs/4.0/components/buttons/
--------------------------- Commit transaction ---------------------------------
try{
@Bhavya8181
Bhavya8181 / Auto script to make build
Created February 12, 2024 05:45 — forked from jack2jm/Learn React
React Learning
#!/bin/sh
REACT_FOLDER_PATH="/var/www/html/cn_front_code"
PULL_ORIGIN_URL="REPO URL"
PROJECT_PUBLIC_URL="https://neuramonks.com"
PROJECT_BUILD_LIVE_FOLDER_NAME="cn_front_live"
PROJECT_BUILD_LIVE_FOLDER_PATH="/var/www/html/cn_front_live"
SERVER_BASE_PATH="/var/www/html"
echo "Folder path -> " . $REACT_FOLDER_PATH. "\n";
@Bhavya8181
Bhavya8181 / Auto script to make build
Created February 12, 2024 05:45 — forked from jack2jm/Learn React
React Learning
#!/bin/sh
REACT_FOLDER_PATH="/var/www/html/cn_front_code"
PULL_ORIGIN_URL="REPO URL"
PROJECT_PUBLIC_URL="https://neuramonks.com"
PROJECT_BUILD_LIVE_FOLDER_NAME="cn_front_live"
PROJECT_BUILD_LIVE_FOLDER_PATH="/var/www/html/cn_front_live"
SERVER_BASE_PATH="/var/www/html"
echo "Folder path -> " . $REACT_FOLDER_PATH. "\n";
Hello Everyone!
I will teach you that "How to Install XAMPP on windows (7/8/8.1/10) and
make it completely secured". Also "How to install SSL Certificates on multiple virtual hosts (vhosts) Free".
And also in this video you will find a lots of XAMPP Errors solutions. Follow the steps given below:
1). Download and Install XAMPP. (Latest Version)
Search Xampp and Run as administrator.
Click on Service tab -> Apache and Mysql -> it will install both service.
Then you can start APache and Mysql
@Bhavya8181
Bhavya8181 / Setup Laravel Project in windows server
Created February 12, 2024 05:49 — forked from jack2jm/Setup Laravel Project in windows server
setup & install require packege for setup laravel project in windows server iis
Ref Link
======================
youtube video
https://www.youtube.com/watch?v=YMMFfAad3y8
https://www.youtube.com/watch?v=1p985k-sGoc
Enable IIS windows
https://help.claris.com/en/server-installation-configuration-guide/content/enabling-iis-windows.html
Add CGI module
https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=services-configuring-cgi-gateway-iis-version-7-later