DEV Community

Brittany
Brittany

Posted on

1 1

Day 97 : #100DaysofCode - Building a Single Page Application and Regex (FCC)

Today I reviewed a video on how to build a single page application using json server as a database and javascript. I was able to practice making a fetch request, using addEventListeners , and using data-sets. I will be completing the application tomorrow and then I will attempt to build one without any help.

js-fetch-review

Getting Started

confirm you dont have anything running on your server -lsof -i tcp 3000

if you do

  • kill -9 pid#

npm install -f json-server json-server --watch db.json

Create a file to hold your database named: db.json

How to check if something has a dataset: const container = document.querySelector('#pokemon-container') container.dataset --> will return an empty object container.dataset.action




In addition, I began to review FreeCodeCamp's regex video. I did not complete it yet but hope to soon so that I can complete that section on the website.

As always, thanks for reading!

Sincerely,
Brittany

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay