Go to file
2022-06-30 12:27:29 +10:00
random-quote-machine Removed test script from production code 2022-06-30 12:27:29 +10:00
.gitignore added for node.js 2022-06-29 15:00:52 +10:00
docker-compose.yml docker files updated 2022-06-30 12:00:38 +10:00
dockerfile docker files updated 2022-06-30 12:00:38 +10:00
LICENSE Initial commit 2022-06-28 13:04:57 +02:00
README.md Test instructions updated 2022-06-30 12:09:08 +10:00

Build a Random Quote Machine

Demo: random-quote-machine.radii.page

Profile: https://www.freecodecamp.org/radii

Project specification: Build a Random Quote Machine

Tests

Build and deploy as:

cd random-quote-machine
npm install
npm run build
cd ..
DOCKER_BUILDKIT=1 docker build -t radii/random-quote-machine:latest -f ./dockerfile ./random-quote-machine/build
docker run -p 8081:80 -it radii/random-quote-machine

Access WebApp at http://localhost:8081

Note: you may replace 8081 with any other port number where you wish to make service available.

Run tests as:

After building, go to to public sub-directory and edit index.html file and insert bellow code snippet immediately before closing </body> tag:

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

Than start development instance as:

npm start

You should now see a hamburger on top-left of page. Tap/click it than select test suite Random Quote Machine. Run Tests and observe results.