Skip to content

Commit 3666a1f

Browse files
Fix build-serve issue for hosting + Remove unnecessary files (#38)
* Remove unnecessary files + Setup environment variables properly * Update README.md * Add package-lock.json to .gitignore * Fix build serve issue * Fix netlify build * Add hosted link
1 parent dad1399 commit 3666a1f

File tree

8 files changed

+13
-15159
lines changed

8 files changed

+13
-15159
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
package-lock.json
78

89
# testing
910
/coverage
@@ -13,6 +14,7 @@
1314

1415
# misc
1516
.DS_Store
17+
.env
1618
.env.local
1719
.env.development.local
1820
.env.test.local

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Spansberry-Frontend
22
Spansberry aims to provide communities with a discussion platform via which they can hassle-free organize all the ongoing discussions under different categories and topics thereby keeping track of everything without getting lost in the abundance of it. This helps to manage the cluttered communication process, focus on the important ones and turn them into impactful actions.
33

4+
Link: [spansberry-app.herokuapp.com](https://spansberry-app.herokuapp.com/) (Please note that the app may take upto a minute to load-up due to Heroku pushing it in down state when no requests are received for an extended period of time.)
5+
46
## Technologies Involved
57
Spansberry backend application is built on the following technologies:
68
1. ReactJS
@@ -13,7 +15,8 @@ Spansberry backend application is built on the following technologies:
1315
2. Clone this forked repository on your local machine using:
1416
`git clone https://github.com/<username>/community-forum-frontend.git`. (Replace username with your own username)
1517
3. Install all the dependencies using `npm install`.
16-
4. Start the application using `npm start`.
18+
4. Copy `example.env` and rename it to `.env` (Avoid removing `example.env`).
19+
5. Start the application using `npm run dev`.
1720

1821
## Screenshots
1922
![Setup](/screenshots/SetupPage.png)

.env renamed to example.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
REACT_APP_CODEUINO_HOMEPAGE = "https://www.codeuino.org/"
22
REACT_APP_BACKEND_URL = "http://127.0.0.1:8000/"
3-
REACT_APP_GRAPHQL_API_ENDPOINT = "http://127.0.0.1:8000/graphql"
3+
REACT_APP_GRAPHQL_API_ENDPOINT = "http://127.0.0.1:8000/graphql"

package-lock.json

-15,126
This file was deleted.

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@
3333
"redux": "^4.0.5",
3434
"redux-thunk": "^2.3.0",
3535
"remarkable": "^2.0.1",
36+
"serve": "^11.3.2",
3637
"socket.io-client": "^2.3.0"
3738
},
3839
"scripts": {
39-
"start": "react-scripts start",
40-
"build": "CI=false && react-scripts build && ./build.sh",
40+
"dev": "react-scripts start",
41+
"start": "serve -s build",
42+
"build": "CI=false && react-scripts build",
4143
"test": "react-scripts test",
4244
"eject": "react-scripts eject"
4345
},

public/favicon.ico

-3.08 KB
Binary file not shown.

public/index.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
65
<meta name="viewport" content="width=device-width, initial-scale=1" />
76
<meta name="theme-color" content="#000000" />
87
<meta
98
name="Spansberry"
10-
content="A community-oriented discussion platform that comes with an intelligent dashboard mechanism that helps manage the ongoing discussions in organized and structural ways."
9+
content="A community-oriented discussion platform"
1110
/>
12-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
1311
<!--
1412
manifest.json provides metadata used when your web app is installed on a
1513
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
@@ -24,7 +22,7 @@
2422
work correctly both with client-side routing and a non-root public URL.
2523
Learn how to configure a non-root public URL by running `npm run build`.
2624
-->
27-
<title>React App</title>
25+
<title>Spansberry</title>
2826
</head>
2927
<body>
3028
<noscript>You need to enable JavaScript to run this app.</noscript>

public/manifest.json

-25
This file was deleted.

0 commit comments

Comments
 (0)