Skip to content

ShreyashPG/Inhouse_backend

 
 

Repository files navigation

INHOUSE BACKEND REPOSITORY


How To run Backend locally

1.Fork the repository 📌


Screenshot 2024-06-27 141945  1

2.Clone the repository from your Github "Repositories" section 🖥️


Screenshot 2024-06-27 142239  2


3.Make required changes in Inhouse_backend folder ✏️

Changes in app.js

Comment out as per provided in the image


Screenshot 2024-06-27 142451  3


Changes in server.js 📄


Screenshot 2024-06-27 142716  4


Create a .env file


MYSQL_USER='<USERNAME>'
MYSQL_PASSWORD='<PASSWORD'
MYSQL_DATABASE='<DB_NAME>'
PORT = 8081
JWT_SECRET = KSDXNADCWIUHNIW232225
APP_URL = "http://localhost:5173/auth"

4.Run the commands in the VScode Terminal 💻

npm install

5.Open Xampp Control Panel 🚀

[1] Start APACHE and MYSQL. ⚡️


Screenshot 2024-06-27 143559  5


Incase if the MYSQL server goes down (STOP) then follow these steps to resolve the issue 🔧

Go to Task Manager
Search for mysql3
Right click mysql and End Task

Screenshot 2024-06-27 144054  6


Now close the Xampp Control Panel and restart the APACHE and MYSQL servers again.

[2] Go to Admin 🔍


Screenshot 2024-06-27 144909  7


[3] Import the database. 📥


---Screenshot 2024-06-27 145113  8

6.Run the command ▶️

npm start

Screenshot 2024-06-27 145427  9

About

Inhouse-backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%