Project repository for the graded assignment of WEB3
npm install
npm start # Start server on localhost:3000
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Install Heroku cli: https://devcenter.heroku.com/articles/heroku-cli#download-and-install
credentials can be found in slack: https://zhaw-web3-project.slack.com/files/TNZ5MRP8F/FQTJN84SX
# login to heroku using credentials from above
heroku login
# either do: deploy a specific branch to heroku "master"
git push heroku develop:master
# or do: deploy master to heroku master
git push heroku master
# open website
heroku open
URL: https://yet-another-issue-tracker.herokuapp.com/
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
npm test
mLaunches the test runner in the interactive watch mode.
See the section about running tests for more information.
css is set using a useState variable called darkModeActive
. Upon change it saves its state to the local storage.
The state is passed to every component, which can then implement it if they want.
One example of such an implementation would be our Footer:
<footer className={"Footer".concat(props.darkMode ? " FooterDarkMode" : " FooterLightMode")}>
The footer element then contains the classNames Footer
and either FooterDarkMode
or FooterLightMode
.
Please note the space infront of the 2nd class name. This is needed or you'll end up with a className like FooterFooterDarkMode
.
And this is the corresponding css.
.FooterDarkMode {
background-color: #A4A4A4;
color: #4B4B4B;
}
.FooterLightMode {
background-color: rgba(168, 168, 168, 0.1);
color: #757575;
}
- React Tutorial 1: How to Get Started and How it Compares
- React Tutorial 2: Components, Hooks, and Performance
- Tutorial: Intro to React
- https://fullstackopen.com
This project was bootstrapped with Create React App.