Coder Social home page Coder Social logo

freecodecamp / demo-projects Goto Github PK

View Code? Open in Web Editor NEW
139.0 23.0 84.0 6.13 MB

Example certification projects for our programming curriculum

Home Page: https://www.freecodecamp.org/learn

License: BSD 3-Clause "New" or "Revised" License

JavaScript 69.60% CSS 8.53% HTML 17.59% Pug 2.24% EJS 1.42% Dockerfile 0.61% Shell 0.01%
demo freecodecamp freecodecamp-project

demo-projects's Introduction

Example Certification Projects

Responsive Web Design

JavaScript Algorithms and Data Structures

Data Visualization

APIs and Microservices

Quality Assurance

Information Security

Coding Interview Prep

APIs and Proxies

Main Curriculum

Take Home Projects

demo-projects's People

Contributors

1jds avatar a2937 avatar arjunpras avatar auxdible avatar c-ehrlich avatar dave2188 avatar gikf avatar ilenia-magoni avatar justaratherridiculouslylongusername avatar lasjorg avatar leonfeng avatar marcoarcha avatar mmatsumoto1026 avatar mot01 avatar naomi-lgbt avatar ojeytonwilliams avatar perpetualowl avatar raisedadead avatar randelldawson avatar renovate-bot avatar renovate[bot] avatar saintpeter avatar scissorsneedfoodtoo avatar shaunshamilton avatar sidemt avatar snp-rj-ind-code-error-420 avatar stack-file[bot] avatar weilirs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demo-projects's Issues

Configure Prettier, ESLint and Formatting Tools

Looking forward for reporting a security issue:
Please report security issues by following our security policy: https://contribute.freecodecamp.org/#/security

Describe the bug
Whenever I hit the "Format with Prettier" shortcut in Visual Studio Code; it seems like the entire file is set as changed rather than just the new lines of code.

To Reproduce
Steps to reproduce the behavior:

  1. Open up the repository in Visual Studio Code
  2. Click on the american-british-translator app folder
  3. Open the server file
  4. Format the document with Prettier
  5. See error

Expected behavior
Only the lines I added should have been modified via Prettier.

Screenshots
Screenshot from GitHub Desktop

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: FireFox
  • Version: 119.0

Additional context
I would rather not add the endpoint for this app before this issue is resolved.

Format all the project files

A number of the files aren't properly formatted to the Prettier specifications. As mentioned in a previous PR, it will be wise to get around to it.

There's two different approaches we can take here. Either we do all of them at once, or we do it on a per project basis. And maybe see about adding a lint npm script.

Pros of full conversion in a single PR:

  • All done in one fell swoop, and we won't realistically need to do it again

Cons:

  • A lot of files to look at (200+)
  • Take some time to look at

Create a liveliness endpoint for all apps

All the apps need to start with a base template, which should have a default liveliness check endpoint for deployments.

For instance, every app should implement a /status/ping, and that should return an HTTP error code of 200 with a response of { "msg" : "pong" }

This issue may be split into multiple PRs, with one PR for every project.

Tasks

Cash Register Demo - floating-point error

Describe the bug
Demo of the Cash Register project has issue with the floating-point error. Causing it display values with error, and in certain situations, for remaining cash to go below $0.

To Reproduce

  1. Go to https://cash-register.freecodecamp.rocks
  2. Enter 330 and submit.
  3. Enter 10 and submit.
  4. Enter 4 and submit.
  5. Enter 4 and submit.

At the step 3. value below status will include the number with clear floating-point error.
After step 5. in register Nickels are below $0.

Expected behavior
Cash shouldn't go below $0, or be displayed with more than a dozen of digits after the dot.

Screenshots
image

Additional context

Heruoku app - Build a Nightlife Coordination App no longer exists

Looking forward for reporting a security issue:
Please report security issues by following our security policy: https://contribute.freecodecamp.org/#/security

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Build a Nightlife Coordination App project.
  2. Click on https://yoyo44.herokuapp.com/
  3. See app no longer exists

Expected behavior
There needs to be a new version in this repo.

Deploy Apps to Nomad-based Setup

We have refactored the repository to use a Docker-based setup for development and deployment. The current (legacy) version of the apps is live from the prod branch. The prod branch may receive selected hot patches as we work through the full migration.

Here is a task list for the same:

Tasks

  1. raisedadead
  2. raisedadead

Note that the contributing guide will be updated eventually; if you are looking for instructions on working on the legacy version, please visit the guide on the prod branch.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • chore(deps): update dependency @rollup/plugin-commonjs to v25
  • chore(deps): update dependency @rollup/plugin-node-resolve to v15.2.3
  • chore(deps): update dependency chart.js to v4
  • chore(deps): update dependency concurrently to v8
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency marked to v12
  • chore(deps): update dependency nodemon to v3
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency prism to v9000
  • chore(deps): update dependency rollup to v4
  • chore(deps): update github actions to v4 (major) (actions/checkout, actions/setup-node)
  • chore(deps): update node.js to v20
  • chore(deps): update npm to v10
  • fix(deps): update dependency @seald-io/nedb to v4
  • fix(deps): update dependency chai to v5
  • fix(deps): update dependency connect-mongo to v5
  • fix(deps): update dependency dotenv to v16.4.5
  • fix(deps): update dependency helmet to v7
  • fix(deps): update dependency jsdom to v24
  • fix(deps): update dependency mocha to v10
  • fix(deps): update dependency mongodb to v6
  • fix(deps): update dependency mongoose to v8
  • fix(deps): update dependency winston-daily-rotate-file to v5
  • fix(deps): update react monorepo to v18 (major) (react, react-dom)
  • 🔐 Create all pending approval PRs at once 🔐

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency eslint-plugin-react to v7.34.1
  • fix(deps): update babel monorepo (@babel/core, @babel/preset-env, @babel/preset-react)
  • fix(deps): update dependency ejs to v3.1.10
  • fix(deps): update dependency sanitize-html to v2.13.0
  • fix(deps): update dependency winston to v3.13.0
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

docker-compose
docker-compose.yml
  • caddy 2.7.6
dockerfile
apps/anonymous-message-board/Dockerfile
  • node 18-bullseye-slim
apps/build-a-pinterest-clone/Dockerfile
  • node 18-bullseye-slim
apps/chart-the-stock-market/Dockerfile
  • node 18-bullseye-slim
apps/exercise-tracker/Dockerfile
  • node 18-bullseye-slim
apps/image-search-abstraction-layer/Dockerfile
  • node 18-bullseye-slim
apps/issue-tracker/Dockerfile
  • node 18-bullseye-slim
apps/manage-a-book-trading-club/Dockerfile
  • node 18-bullseye-slim
apps/personal-library/Dockerfile
  • node 18-bullseye-slim
apps/pokeapi-proxy/Dockerfile
  • node 18-bullseye-slim
apps/stock-price-checker-proxy/Dockerfile
  • node 18-bullseye-slim
apps/stock-price-checker/Dockerfile
  • node 18-bullseye-slim
apps/twitch-proxy/Dockerfile
  • node 18-bullseye-slim
apps/url-shortener-microservice/Dockerfile
  • node 18-bullseye-slim
apps/voting-app/Dockerfile
  • node 18-bullseye-slim
apps/weather-proxy/Dockerfile
  • node 18-bullseye-slim
shared.Dockerfile
  • node 18-bullseye-slim
github-actions
.github/workflows/node-ci.yml
  • actions/checkout v2@ee0669bd1cc54295c223e0bb666b733df41de1c5
  • actions/setup-node v2@7c12f8017d5436eb855f1ed4399f037a36fbd9e8
html
apps/25--5-clock/index.html
  • react 18.2.0
  • react-dom 18.2.0
apps/bar-chart/index.html
  • d3 7.8.5
apps/build-a-pinterest-clone/views/index.html
  • jquery 3.7.1
apps/chart-the-stock-market/public/index.html
  • socket.io 4.7.2
  • Chart.js 2.9.4
apps/choropleth-map/index.html
  • d3 7.8.5
  • topojson 3.0.2
apps/heat-map/index.html
  • d3 7.8.5
apps/markdown-previewer/index.html
  • prism 1.23.0
  • marked 2.0.3
  • prism 1.23.0
apps/random-quote-machine/index.html
  • jquery 3.7.1
  • jqueryui 1.13.2
apps/scatterplot-graph/index.html
  • d3 7.8.5
apps/treemap-diagram/index.html
  • d3 7.8.5
npm
apps/25--5-clock/package.json
  • dotenv 16.0.0
  • express 4.19.2
  • @babel/core 7.24.0
  • @babel/preset-env 7.24.0
  • @babel/preset-react 7.23.3
  • @rollup/plugin-babel 6.0.4
  • @rollup/plugin-commonjs 23.0.7
  • @rollup/plugin-node-resolve 15.0.1
  • @rollup/plugin-replace 5.0.5
  • @rollup/plugin-terser 0.2.0
  • rollup 2.79.1
apps/american-british-translator/package.json
  • @babel/core 7.24.0
  • @babel/preset-env 7.24.0
  • @babel/register 7.23.7
  • body-parser 1.20.2
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • mocha 9.2.2
apps/anonymous-message-board/package.json
  • body-parser 1.20.2
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • helmet 3.23.3
  • mocha 9.2.2
  • mongodb 3.7.4
  • sanitize-html 2.12.1
apps/bar-chart/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/build-a-pinterest-clone/package.json
  • @babel/core 7.24.0
  • @babel/preset-env 7.24.0
  • @babel/preset-react 7.23.3
  • @rollup/plugin-babel 6.0.4
  • @rollup/plugin-commonjs 21.1.0
  • @rollup/plugin-node-resolve 13.3.0
  • @rollup/plugin-replace 5.0.5
  • body-parser 1.20.2
  • connect-mongo 3.2.0
  • dotenv 14.3.2
  • express 5.0.0-beta.3
  • express-session 1.18.0
  • mongoose 5.13.22
  • passport 0.5.2
  • passport-github 1.1.0
  • react 15.7.0
  • react-dom 15.7.0
  • react-masonry-component 6.3.0
  • @babel/core 7.24.0
  • @babel/preset-env 7.24.0
  • @babel/preset-react 7.23.3
  • @rollup/plugin-babel 6.0.4
  • @rollup/plugin-commonjs 23.0.7
  • @rollup/plugin-node-resolve 15.0.1
  • @rollup/plugin-replace 5.0.5
  • @rollup/plugin-terser 0.2.0
  • concurrently 7.6.0
  • nodemon 2.0.22
  • rollup 2.79.1
apps/cash-register/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/chart-the-stock-market/package.json
  • dotenv 14.3.2
  • express 4.19.2
  • socket.io 4.7.2
apps/choropleth-map/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/drum-machine/package.json
  • dotenv 16.0.0
  • express 4.19.2
  • @babel/core 7.24.0
  • @babel/preset-env 7.24.0
  • @babel/preset-react 7.23.3
  • @rollup/plugin-babel 6.0.4
  • @rollup/plugin-commonjs 23.0.7
  • @rollup/plugin-node-resolve 15.0.1
  • @rollup/plugin-replace 5.0.5
  • @rollup/plugin-terser 0.2.0
  • rollup 2.79.1
apps/exercise-tracker/package.json
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • mocha 9.2.2
  • mongodb 3.7.4
  • mongoose 5.13.22
apps/file-metadata-microservice/package.json
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 5.0.0-beta.3
  • mocha 9.2.2
  • multer 1.4.4
apps/forum-proxy/package.json
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • mocha 9.2.2
  • node-fetch 3.3.1
apps/heat-map/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/image-search-abstraction-layer/package.json
  • dotenv 14.3.2
  • express 4.19.2
  • google-images 2.1.0
  • moment 2.30.1
  • mongodb 3.7.4
apps/issue-tracker/package.json
  • body-parser 1.20.2
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • mocha 9.2.2
  • mongodb 3.7.4
  • mongoose 5.13.22
apps/javascript-calculator/package.json
  • dotenv 16.0.0
  • express 4.19.2
  • @babel/core 7.24.0
  • @babel/preset-env 7.24.0
  • @babel/preset-react 7.23.3
  • @rollup/plugin-babel 6.0.4
  • @rollup/plugin-commonjs 23.0.7
  • @rollup/plugin-node-resolve 15.0.1
  • @rollup/plugin-replace 5.0.5
  • @rollup/plugin-terser 0.2.0
  • rollup 2.79.1
apps/manage-a-book-trading-club/package.json
  • body-parser 1.20.2
  • connect-flash 0.1.1
  • connect-mongo 3.2.0
  • cookie-parser 1.4.6
  • dotenv 14.3.2
  • express 4.19.2
  • express-session 1.18.0
  • font-awesome 4.7.0
  • helmet 3.23.3
  • mongoose 5.13.22
  • morgan 1.10.0
  • passport 0.5.2
  • passport-github 1.1.0
  • pug 3.0.2
  • chai 4.4.1
  • chai-as-promised 7.1.1
  • chai-dom 1.12.0
  • chai-http 4.4.0
  • mocha 9.2.2
apps/markdown-previewer/package.json
  • dotenv 16.0.0
  • express 4.19.2
  • @babel/core 7.24.0
  • @babel/preset-env 7.24.0
  • @babel/preset-react 7.23.3
  • @rollup/plugin-babel 6.0.4
  • @rollup/plugin-commonjs 23.0.7
  • @rollup/plugin-node-resolve 15.0.1
  • @rollup/plugin-replace 5.0.5
  • @rollup/plugin-terser 0.2.0
  • rollup 2.79.1
apps/metric-imperial-converter/package.json
  • body-parser 1.20.2
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • mocha 9.2.2
apps/p2p-video-chat-application/package.json
  • dotenv 14.3.2
  • express 4.19.2
  • jquery 3.7.1
  • simple-peer 9.11.1
  • socket.io 4.7.2
  • @rollup/plugin-commonjs 21.1.0
  • @rollup/plugin-node-resolve 13.3.0
  • @rollup/plugin-terser 0.2.0
  • concurrently 7.6.0
  • nodemon 2.0.22
  • rollup 2.79.1
apps/palindrome-checker/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/personal-library/package.json
  • body-parser 1.20.2
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • mocha 9.2.2
  • mongodb 3.7.4
  • mongoose 5.13.22
apps/personal-portfolio/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/pokeapi-proxy/package.json
  • axios 1.6.7
  • cors 2.8.5
  • dotenv 16.3.1
  • express 4.19.2
  • node-cache 5.1.2
apps/pokemon-search-app/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/product-landing-page/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/random-quote-machine/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/request-header-parser-microservice/package.json
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 5.0.0-beta.3
  • mocha 9.2.2
apps/roman-numeral-converter/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/scatterplot-graph/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/secure-real-time-multiplayer-game/package.json
  • @babel/core 7.24.0
  • @babel/preset-env 7.24.0
  • @babel/register 7.23.7
  • body-parser 1.20.2
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • helmet 3.23.3
  • jsdom 16.7.0
  • mocha 9.2.2
  • socket.io 4.7.2
apps/stock-price-checker-proxy/package.json
  • @seald-io/nedb 2.2.2
  • axios 1.6.7
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
apps/stock-price-checker/package.json
  • body-parser 1.20.2
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • helmet 3.23.3
  • mocha 9.2.2
  • mongodb 3.7.4
  • request 2.88.2
apps/sudoku-solver/package.json
  • @babel/core 7.24.0
  • @babel/preset-env 7.24.0
  • @babel/register 7.23.7
  • body-parser 1.20.2
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • jsdom 16.7.0
  • mocha 9.2.2
apps/survey-form/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/technical-documentation-page/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/telephone-number-validator/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/timestamp-microservice/package.json
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • mocha 9.2.2
apps/treemap-diagram/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/tribute-page/package.json
  • dotenv 16.0.0
  • express 4.19.2
apps/twitch-proxy/package.json
  • @seald-io/nedb 2.2.2
  • cors 2.8.5
  • dotenv 14.3.2
  • express 5.0.0-beta.3
  • node-cron 3.0.3
  • node-fetch 3.3.0
  • request 2.88.2
  • winston 3.12.0
  • winston-daily-rotate-file 3.10.0
apps/url-shortener-microservice/package.json
  • chai 4.4.1
  • chai-http 4.4.0
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • mocha 9.2.2
  • mongoose 5.13.22
apps/voting-app/package.json
  • body-parser 1.20.2
  • dotenv 14.3.2
  • ejs 3.1.9
  • express 4.19.2
  • mongodb 3.7.4
apps/weather-proxy/package.json
  • cors 2.8.5
  • dotenv 14.3.2
  • express 4.19.2
  • request 2.88.2
package.json
  • dotenv ^16.0.3
  • @types/jest ^29.5.10
  • axios 1.6.0
  • eslint-config-prettier 8.7.0
  • eslint-plugin-react 7.34.0
  • husky 8.0.3
  • jest 29.7.0
  • lint-staged 15.2.2
  • prettier 2.8.8
  • node 18
  • npm 9

  • Check this box to trigger a request for Renovate to run again on this repository

Bug: cash register app has malformed html

Looking forward for reporting a security issue:
Please report security issues by following our security policy: https://contribute.freecodecamp.org/#/security

Describe the bug
The opening main tag in the file is never closed. As a result, it complains about the body closing tag is unexpected.

To Reproduce
Steps to reproduce the behavior:

  1. Open `apps/cash-register/index.html"
  2. Open the finder tool
  3. Look for <main>
  4. See error

Expected behavior
The main tag should be closed.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Version: 119.0.1

Additional context
I discovered this while I was reformatting the existing code in the repositories.

Create GitHub Actions workflow to build and test all the apps

When we update applications like automated package updates, we want to run tests and check if they are passing before merging PRs.

Tests could be as minimal as checking the health status endpoints created in #484 to more expanded versions where we run some unit or browser-based testing.

This issue may be split into multiple PRs, with one PR for every project.

Tasks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.