From 6d17beb2ebb6f8c64508dae323786ee0a5e19598 Mon Sep 17 00:00:00 2001 From: Jag Date: Mon, 24 Jun 2019 20:08:50 -0700 Subject: [PATCH 01/14] initial files --- README.md | 55 +++++++++++-------- package-lock.json | 6 +- public/index.html | 3 +- src/app.js | 17 ++++-- src/app.scss | 8 +++ src/components/footer/footer.js | 13 +++++ src/components/form/form.js | 49 +++++++++++++++++ src/components/header/header.js | 11 ++++ src/components/header/header.scss | 0 src/components/headers-input/headers-input.js | 0 src/components/history/history.js | 0 src/serviceWorker.js | 34 +++++------- 12 files changed, 145 insertions(+), 51 deletions(-) create mode 100644 src/app.scss create mode 100644 src/components/footer/footer.js create mode 100644 src/components/form/form.js create mode 100644 src/components/header/header.js create mode 100644 src/components/header/header.scss create mode 100644 src/components/headers-input/headers-input.js create mode 100644 src/components/history/history.js diff --git a/README.md b/README.md index ead58e4..299b862 100644 --- a/README.md +++ b/README.md @@ -1,47 +1,58 @@ -![CF](http://i.imgur.com/7v5ASc8.png) LAB -================================================= +# ![CF](http://i.imgur.com/7v5ASc8.png) Block Project -## Project Name +## RESTy -### Author: Student/Group Name +### Author: Jagdeep Singh ### Links and Resources -* [submission PR](http://xyz.com) -* [travis](http://xyz.com) -* [back-end](http://xyz.com) (when applicable) -* [front-end](http://xyz.com) (when applicable) + +- [submission PR](http://xyz.com) +- [travis](http://xyz.com) +- [back-end](http://xyz.com) (when applicable) +- [front-end](http://xyz.com) (when applicable) #### Documentation -* [api docs](http://xyz.com) (API servers) -* [jsdoc](http://xyz.com) (Server assignments) -* [styleguide](http://xyz.com) (React assignments) + +- [api docs](http://xyz.com) (API servers) +- [jsdoc](http://xyz.com) (Server assignments) +- [styleguide](http://xyz.com) (React assignments) ### Modules + #### `modulename.js` + ##### Exported Values and Methods ###### `foo(thing) -> string` + Usage Notes or examples ###### `bar(array) -> array` + Usage Notes or examples ### Setup + #### `.env` requirements -* `PORT` - Port Number -* `MONGODB_URI` - URL to the running mongo instance/db + +- `PORT` - Port Number +- `MONGODB_URI` - URL to the running mongo instance/db #### Running the app -* `npm start` -* Endpoint: `/foo/bar/` - * Returns a JSON object with abc in it. -* Endpoint: `/bing/zing/` - * Returns a JSON object with xyz in it. - + +- `npm start` +- Endpoint: `/foo/bar/` + - Returns a JSON object with abc in it. +- Endpoint: `/bing/zing/` + + - Returns a JSON object with xyz in it. + #### Tests -* How do you run tests? -* What assertions were made? -* What assertions need to be / should be made? + +- How do you run tests? +- What assertions were made? +- What assertions need to be / should be made? #### UML + Link to an image of the UML for your application and response to events diff --git a/package-lock.json b/package-lock.json index d7a520e..ea8cee0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5074,9 +5074,9 @@ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" }, "electron-to-chromium": { - "version": "1.3.169", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.169.tgz", - "integrity": "sha512-CxKt4ONON7m0ekVaFzvTZakHgGQsLMRH0J8W6h4lhyBNgskj3CIJz4bj+bh5+G26ztAe6dZjmYUeEW4u/VSnLQ==" + "version": "1.3.170", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.170.tgz", + "integrity": "sha512-vDEhHcwMogbM+WXDTh6ZktwQOqLcK7MJdCOM99UZXRI1ct3Y9OeYYJTrIHnswzv+IYwoXNj0Furh+K6UotcHVg==" }, "elliptic": { "version": "6.4.1", diff --git a/public/index.html b/public/index.html index 6d0bdf6..71d2467 100644 --- a/public/index.html +++ b/public/index.html @@ -2,9 +2,8 @@ - - React App + RESTy diff --git a/src/app.js b/src/app.js index 26c584f..c42983b 100644 --- a/src/app.js +++ b/src/app.js @@ -1,11 +1,18 @@ import React from 'react'; +import Header from './components/header/header'; +import Form from './components/form/form'; +import Footer from './components/footer/footer'; + +import('./app.scss'); export default function App() { return ( -
-
-

Hello, World!

-
-
+ <> +
+
+
+
+