{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab 4 Write Up .docx

Lab 4 Write Up .docx - I.Introduction(1pt Jared Stewart Lab...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
I. Introduction (1 pt): Jared Stewart, March 22, 2017, Lab 4A and 4B II. Procedures (3 pts): “NO CHANGES” Lab 4A Overview Functionality Simple MVC website. Dynamic routing to build out pages based on button clicks. Clicking on a user will take you to a page with only images uploaded by that person. Connect Node JS to MySQL Database through Sequelize. Concepts Learn basics to Node JS, including installation and package manager. Learn dynamic routing based on a URL path to build dynamic pages based on URL parameters. Connect Node JS to Database. Technologies Node JS Model-View-Controller (MVC) Sequelize (Node JS Database ORM connector) Linux Command line Page routing based on dynamic URL paths. References NodeJS NodeJS Tutorial MVC Information NodeJS Exports explanation Sequelize Documentation What is Object-Relational Mapping(ORM)? Introduction
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Overall project for the semester: You will be creating a website that allows people to create memes (images with text associated with them, often humorous) and display them. Node JS is a relatively new (2011) and fast growing development environment, built to use JavaScript on both the frontend and backend of websites. Because of several cool ideas behind Node JS (see documentation) a large community of developers have begun backing development, both for the engine behind Node JS and for additional packages. Google “Node JS packages” or “npm” (which stands for node package manager) will show you just how many packages and projects have been created and open sourced for public use. We will be using a handful of these packages for various parts of our project. You can tell when we install a new package because we will use the command “npm install [package name]” to add it to our project. For this project you will be given a zip containing mostly working code. Throughout the labs you will fix the current code and augment it to include various functionalities. Believe it or not, this is a very real world situation, for example being added to a project when a previous coder is needed elsewhere, and usually that code will be nigh empty of comments. But we want you to succeed so we have tons of comments to help you understand the code. Read them. NodeJS will run locally on port 1337. To access it off campus use nodejs. [NETID].it210.it.et.byu.edu Requirements 1. Install Node JS and npm on your Development and live environment. Run the following command line commands at the root of your server: o git clone https://github.com/210TAs/node.git o sudo apt-get update o sudo apt-get install python-software-properties python g++ make o sudo apt-get install curl o curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - o sudo apt-get install -y nodejs NOTE: This will install both npm and Node js.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern