Skip to content

Commit

Permalink
Made required port change for alpha release
Browse files Browse the repository at this point in the history
Made required port change for alpha release
  • Loading branch information
NdubuisiJr authored Nov 3, 2021
2 parents 4a6939c + 541ff71 commit 73dd975
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ cd server
npm run dev or yarn run dev
```

- Open http://127.0.0.1:5050/ping
- Open http://127.0.0.1:22664/ping
- Open another terminal in vscode and run

```
Expand Down
1 change: 1 addition & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"axios": "^0.21.1",
"canvas": "^2.8.0",
"cors": "^2.8.5",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"express-async-errors": "^3.1.1",
"global-time": "1.5.0",
Expand Down
4 changes: 3 additions & 1 deletion backend/src/config/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require('dotenv').config();

module.exports = {
// Port to run the server on
PORT: process.env.PORT || 5050,
PORT: process.env.PORT || 22664,

// Cetrifugo Credentials
SOCKER_KEY: process.env.SOCKER_TOKEN || '58c2400b-831d-411d-8fe8-31b6e337738b',
Expand Down
5 changes: 5 additions & 0 deletions backend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,11 @@ dot-prop@^5.2.0:
dependencies:
is-obj "^2.0.0"

dotenv@^10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81"
integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==

duplexer3@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"watch-tests": "cross-env BABEL_ENV=test jest --watch",
"coverage": "cross-env BABEL_ENV=test jest --coverage"
},
"proxy": "http://127.0.0.1:5050/",
"proxy": "http://127.0.0.1:22664/",
"eslintConfig": {
"extends": [
"react-app",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/adapters/xhr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getCurrentOrganisation, getAuthToken, getLoggedInUserData } from '../au
function returnAxiosInstance() {
return Axios.create({
baseURL: 'https://chess.zuri.chat/api/v1/',
// baseURL: "//localhost:5050/api/v1/",
// baseURL: "//localhost:22664/api/v1/",
headers: {
'Content-Type': 'application/json',
Organisation: getCurrentOrganisation(),
Expand Down

0 comments on commit 73dd975

Please sign in to comment.