diff --git a/.env b/.env
new file mode 100644
index 0000000..ee3b749
--- /dev/null
+++ b/.env
@@ -0,0 +1,2 @@
+REACT_APP_basePath="/ketr.ketran"
+NODE_CONFIG_ENV='production'
\ No newline at end of file
diff --git a/README.md b/README.md
index 38f787c..e6453e3 100644
--- a/README.md
+++ b/README.md
@@ -3,9 +3,8 @@
This project consists of both the front-end and back-end game
API server.
-The front-end is launched in development mode via 'npm start'. In production, you build
-it via 'npm build' and deploy the public front-end. When you run the development
-mode, the default port it will bind to is 8931.
+The front-end is launched from the 'client' directory in development mode via 'npm start'. In production, you build
+it via 'npm build' and deploy the public front-end.
The back-end is launched out of the 'server' directory via 'npm start' and will
bind to the default port 8930.
@@ -83,11 +82,11 @@ server -> game
```bash
git clone git.ketrenos.com:jketreno/peddlers-of-ketran.git
-npm install
cd server
npm install
npm start &
-cd ..
+cd ../client
+npm install
npm start
```
diff --git a/client/package.json b/client/package.json
index b3c1baa..a37c31f 100644
--- a/client/package.json
+++ b/client/package.json
@@ -17,10 +17,10 @@
"web-vitals": "^2.1.2"
},
"scripts": {
- "start": "react-scripts start",
- "build": "react-scripts build",
- "test": "react-scripts test",
- "eject": "react-scripts eject"
+ "start": "export $(cat ../.env | xargs) && react-scripts start",
+ "build": "export $(cat ../.env | xargs) && react-scripts build",
+ "test": "export $(cat ../.env | xargs) && react-scripts test",
+ "eject": "export $(cat ../.env | xargs) && react-scripts eject"
},
"eslintConfig": {
"extends": [
diff --git a/client/public/index.html b/client/public/index.html
index aa069f2..f240883 100755
--- a/client/public/index.html
+++ b/client/public/index.html
@@ -3,6 +3,8 @@