A project funded by the National Science Foundation
An active LTS Node.js
environment is required for this project. Node.js v14
is used for the project.
Install project dependencies:
cd smart-connected-newark/
npm install
-
Start developing
Navigate into the project directory and start it up.
npm run develop
-
Open the code and start customizing
The site is now running at http://localhost:8000 .
Edit
.js
files insrc/pages/
to see the update in real-time. -
Build production bundle
npm run build
-
Serve production bundle
npm run serve
The site is now running at http://localhost:9000 .
-
Deploy production bundle
Upload all files in
public/
to the designated directory on the server. -
Delete dev cache and production files
npm run clean
-
src/
:components/
contains all components that are used by pages. Webpage elements with respect to components:- Navbar:
src/components/partial_components/Header/Header.js
. - Nav links:
src/components/partial_components/Header/HeaderLinks.js
. - Elements in the homepage except the image slideshow:
src/components/Home.js
; image slideshow:src/partial_components/Slideshow.js
. - Team page:
src/components/Team.js
. - Research page:
src/components/Research.js
. - Publication page:
src/components/Publication.js
. - Study page:
src/components/Study.js
. - Impact page:
src/components/Impact.js
.
- Navbar:
data/
stores most of the contents that are rendered by pages. Each webpage has a corresponding folder indata/
that stores the page content.images/
is a folder of images that are fetched dynamically in building time.material_style/
has the foundational styling files for this project.pages/
has.js
files whose names are identical to the path names of the website (exceptindex.js
which corresponds to the homepagehttps://smartcities.rutgers.edu
). For example,impacts.js
corresponds to the pagehttps://smartcities.rutgers.edu/impacts
. Refer to Routing for more info on Gatsby routing mechanism.
-
static/
: static assets that are outside of the module system. Files in this folder are copied to the production bundle without processing.
- Source code (except the above open source projects): MIT.
- Refer to the above open source projects for their licenses.
- Website content: all rights reserved by Rutgers University.