Giter Site home page Giter Site logo

notetaker's Introduction

 Note Taker

With this assignment I had to add a server connection and routes to make a starter file work. The end product is supposed to use routes on a locally hosted server to deliver an HTML page, then recieve a text input, parse to JSON and save to a .json file. These saved objects show up on the html page and can be deleted, and read at any time, with all the saved values remaining after the server closes to be accessed later.

Tech used

JavaScript

How to use

Open the directory in the terminal, then run npm install. after the install run node server.js and the terminal will tell you the app is running on the displayed port. go to your default browser and type localhost:{PORT} into the address bar.

Problems

My biggest problem with this project was getting the API route to call. I spent days on this issue only to have it be a '*' instead of a '/' in my HTML route that fixed the whole app.

Meat and Potatoes

alt text The image above is the server and route connection, this page was easy to write because of the extensive practice doing it in class. alt text The json package was a copy paste from a class activity, however i had to install the uuid npm in order to create random id's for each note so that it can be deleted properly alt text The html route was very simple and straight forward, the html was already made and there is a lot of documentation online that helped make it alt text the api route was much more complicated because the app had to have several functions and each of those had to have some form of safety net like a try/catch method. There is a get, post, and delete methods for the user to interact with the webpage. alt text this is what a saved note looks like in the .json, the id is generated using the uuid npm

notetaker's People

Contributors

jrekse avatar

Watchers

 avatar

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.