Skip to content

Commit

Permalink
chore: added starter files
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasdinh committed Oct 28, 2019
0 parents commit f89dc4c
Show file tree
Hide file tree
Showing 10 changed files with 625 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Weather-Journal App Project

## Overview
This project requires you to create an asynchronous web app that uses Web API and user data to dynamically update the UI.

## Instructions
This will require modifying the `server.js` file and the `website/app.js` file. You can see `index.html` for element references, and once you are finished with the project steps, you can use `style.css` to style your application to customized perfection.

## Extras
If you are interested in testing your code as you go, you can use `tests.js` as a template for writing and running some basic tests for your code.
12 changes: 12 additions & 0 deletions commentsOnlyJS/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Personal API Key for OpenWeatherMap API

// Event listener to add function to existing HTML DOM element

/* Function called by event listener */

/* Function to GET Web API Data*/

/* Function to POST data */


/* Function to GET Project Data */
22 changes: 22 additions & 0 deletions commentsOnlyJS/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Setup empty JS object to act as endpoint for all routes
// Express to run server and routes

// Start up an instance of app

/* Dependencies */
/* Middleware*/

//Here we are configuring express to use body-parser as middle-ware.
// Cors for cross origin allowance

// Initialize the main project folder

// Spin up the server
// Callback to debug

// Initialize all route with a callback function

// Callback function to complete GET '/all'

// Post Route

Loading

0 comments on commit f89dc4c

Please sign in to comment.