-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
50 additions
and
152 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
API_PORT= | ||
API_URL= | ||
|
||
UI_PORT= | ||
API_PORT=8000 | ||
API_URL=http://localhost:8000 |
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 |
---|---|---|
|
@@ -16,9 +16,10 @@ | |
"author": "Yash Patel <[email protected]>", | ||
"license": "ISC", | ||
"dependencies": { | ||
"core": "workspace:^", | ||
"dotenv": "^16.4.5", | ||
"express": "^4.19.2", | ||
"socket.io": "^4.7.5" | ||
"socket.io": "^4.7.5", | ||
"winston": "^3.13.0" | ||
}, | ||
"devDependencies": { | ||
"@types/express": "^4.17.21", | ||
|
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,4 @@ | ||
import 'dotenv/config' | ||
|
||
export const API_PORT = parseInt(process.env.API_PORT || '3000') | ||
export const API_URL = process.env.API_URL || `http://localhost:${API_PORT}` |
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
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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import { defineConfig } from 'vite' | ||
import react from '@vitejs/plugin-react' | ||
import 'dotenv/config' | ||
|
||
// TODO: refer this from the core package | ||
const port = parseInt(process.env.UI_PORT || '3000') | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react()], | ||
server: { | ||
port | ||
port: 3000 | ||
} | ||
}) |
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 |
---|---|---|
|
@@ -3,17 +3,17 @@ | |
"version": "0.0.1", | ||
"description": "The Manas AI", | ||
"scripts": { | ||
"ui:dev": "concurrently \"nx run core:build:watch\" \"nx run ui:dev\"", | ||
"ui:dev": "nx run ui:dev", | ||
"ui:build": "nx run ui:build", | ||
"ui:lint": "nx run ui:lint", | ||
"ui:test": "nx run ui:test", | ||
"api:dev": "concurrently \"nx run core:build:watch\" \"nx run api:dev\"", | ||
"api:dev": "nx run api:dev", | ||
"api:build": "nx run api:build", | ||
"api:lint": "nx run api:lint", | ||
"api:test": "nx run api:test", | ||
"lint": "nx run-many --target=lint --all", | ||
"test": "nx run-many --target=test --all", | ||
"build": "nx run core:build && nx run ui:build && nx run api:build", | ||
"build": "nx run-many --target=build --all", | ||
"prepare": "husky" | ||
}, | ||
"lint-staged": { | ||
|
@@ -32,7 +32,6 @@ | |
"author": "Yash Patel <[email protected]>", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"concurrently": "^8.2.2", | ||
"husky": "^9.0.11", | ||
"lint-staged": "^15.2.2", | ||
"nx": "^18.2.1", | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.