-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from deepraj21/main
added setup batch file to automate the local installation
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# this is an example .env content. make sure to make a .env and populate it with your original data | ||
|
||
GOOGLE_API_KEY= | ||
SECRET_KEY= | ||
NEO4J_URI= | ||
NEO4J_USER= | ||
NEO4J_PASSWORD= | ||
MONGODB_URI= |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@echo off | ||
|
||
REM Check and setup backend virtual environment if not exists | ||
IF NOT EXIST server\venv ( | ||
echo Setting up backend virtual environment... | ||
python -m venv server\venv | ||
) | ||
call server\venv\Scripts\activate | ||
|
||
REM Install backend dependencies | ||
pip install -r server\requirements.txt | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
REM Start backend | ||
start cmd /k "cd server && flask run" | ||
|
||
REM Check and setup frontend node modules if not exists | ||
IF NOT EXIST client\node_modules ( | ||
echo Setting up frontend node modules... | ||
pushd client | ||
npm install --force | ||
if %errorlevel% neq 0 popd & exit /b %errorlevel% | ||
popd | ||
) | ||
|
||
REM Start frontend | ||
start cmd /k "cd client && npm run dev" |