Skip to content

Commit

Permalink
Merge pull request #174 from hackmcgill/develop
Browse files Browse the repository at this point in the history
1.0.0
  • Loading branch information
pierreTklein authored Dec 11, 2018
2 parents 5c5fbbe + 7e27ce2 commit 9f6e4cc
Show file tree
Hide file tree
Showing 162 changed files with 24,992 additions and 8,353 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# testing
/coverage

# debugging
/.vscode/chrome

# production
/build

Expand Down
19 changes: 19 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:1337",
"webRoot": "${workspaceRoot}/src",
"userDataDir": "${workspaceRoot}/.vscode/chrome",
"sourceMapPathOverrides": {
"webpack:///src/*": "${webRoot}/*"
}
}
]
}
244 changes: 146 additions & 98 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,107 +1,155 @@
# HackerAPI Frontend

This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).

Below you will find some information on how to perform common tasks.<br>
Below you will find some information on how to perform common tasks.

You can find the most recent version of this guide [here](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md).

## Table of Contents

- [Updating to New Releases](#updating-to-new-releases)
- [Sending Feedback](#sending-feedback)
- [Folder Structure](#folder-structure)
- [Available Scripts](#available-scripts)
- [npm start](#npm-start)
- [npm test](#npm-test)
- [npm run build](#npm-run-build)
- [npm run eject](#npm-run-eject)
- [Supported Browsers](#supported-browsers)
- [Supported Language Features and Polyfills](#supported-language-features-and-polyfills)
- [Syntax Highlighting in the Editor](#syntax-highlighting-in-the-editor)
- [Displaying Lint Output in the Editor](#displaying-lint-output-in-the-editor)
- [Debugging in the Editor](#debugging-in-the-editor)
- [Formatting Code Automatically](#formatting-code-automatically)
- [Changing the Page `<title>`](#changing-the-page-title)
- [Installing a Dependency](#installing-a-dependency)
- [Importing a Component](#importing-a-component)
- [Code Splitting](#code-splitting)
- [Adding a Stylesheet](#adding-a-stylesheet)
- [Post-Processing CSS](#post-processing-css)
- [Adding a CSS Preprocessor (Sass, Less etc.)](#adding-a-css-preprocessor-sass-less-etc)
- [Adding Images, Fonts, and Files](#adding-images-fonts-and-files)
- [Using the `public` Folder](#using-the-public-folder)
- [Changing the HTML](#changing-the-html)
- [Adding Assets Outside of the Module System](#adding-assets-outside-of-the-module-system)
- [When to Use the `public` Folder](#when-to-use-the-public-folder)
- [Using Global Variables](#using-global-variables)
- [Adding Bootstrap](#adding-bootstrap)
- [Using a Custom Theme](#using-a-custom-theme)
- [Adding Flow](#adding-flow)
- [Adding a Router](#adding-a-router)
- [Adding Custom Environment Variables](#adding-custom-environment-variables)
- [Referencing Environment Variables in the HTML](#referencing-environment-variables-in-the-html)
- [Adding Temporary Environment Variables In Your Shell](#adding-temporary-environment-variables-in-your-shell)
- [Adding Development Environment Variables In `.env`](#adding-development-environment-variables-in-env)
- [Can I Use Decorators?](#can-i-use-decorators)
- [Fetching Data with AJAX Requests](#fetching-data-with-ajax-requests)
- [Integrating with an API Backend](#integrating-with-an-api-backend)
- [Node](#node)
- [Ruby on Rails](#ruby-on-rails)
- [Proxying API Requests in Development](#proxying-api-requests-in-development)
- ["Invalid Host Header" Errors After Configuring Proxy](#invalid-host-header-errors-after-configuring-proxy)
- [Configuring the Proxy Manually](#configuring-the-proxy-manually)
- [Configuring a WebSocket Proxy](#configuring-a-websocket-proxy)
- [Using HTTPS in Development](#using-https-in-development)
- [Generating Dynamic `<meta>` Tags on the Server](#generating-dynamic-meta-tags-on-the-server)
- [Pre-Rendering into Static HTML Files](#pre-rendering-into-static-html-files)
- [Injecting Data from the Server into the Page](#injecting-data-from-the-server-into-the-page)
- [Running Tests](#running-tests)
- [Filename Conventions](#filename-conventions)
- [Command Line Interface](#command-line-interface)
- [Version Control Integration](#version-control-integration)
- [Writing Tests](#writing-tests)
- [Testing Components](#testing-components)
- [Using Third Party Assertion Libraries](#using-third-party-assertion-libraries)
- [Initializing Test Environment](#initializing-test-environment)
- [Focusing and Excluding Tests](#focusing-and-excluding-tests)
- [Coverage Reporting](#coverage-reporting)
- [Continuous Integration](#continuous-integration)
- [Disabling jsdom](#disabling-jsdom)
- [Snapshot Testing](#snapshot-testing)
- [Editor Integration](#editor-integration)
- [Debugging Tests](#debugging-tests)
- [Debugging Tests in Chrome](#debugging-tests-in-chrome)
- [Debugging Tests in Visual Studio Code](#debugging-tests-in-visual-studio-code)
- [Developing Components in Isolation](#developing-components-in-isolation)
- [Getting Started with Storybook](#getting-started-with-storybook)
- [Getting Started with Styleguidist](#getting-started-with-styleguidist)
- [Publishing Components to npm](#publishing-components-to-npm)
- [Making a Progressive Web App](#making-a-progressive-web-app)
- [Opting Out of Caching](#opting-out-of-caching)
- [Offline-First Considerations](#offline-first-considerations)
- [Progressive Web App Metadata](#progressive-web-app-metadata)
- [Analyzing the Bundle Size](#analyzing-the-bundle-size)
- [Deployment](#deployment)
- [Static Server](#static-server)
- [Other Solutions](#other-solutions)
- [Serving Apps with Client-Side Routing](#serving-apps-with-client-side-routing)
- [Building for Relative Paths](#building-for-relative-paths)
- [Azure](#azure)
- [Firebase](#firebase)
- [GitHub Pages](#github-pages)
- [Heroku](#heroku)
- [Netlify](#netlify)
- [Now](#now)
- [S3 and CloudFront](#s3-and-cloudfront)
- [Surge](#surge)
- [Advanced Configuration](#advanced-configuration)
- [Troubleshooting](#troubleshooting)
- [`npm start` doesn’t detect changes](#npm-start-doesnt-detect-changes)
- [`npm test` hangs on macOS Sierra](#npm-test-hangs-on-macos-sierra)
- [`npm run build` exits too early](#npm-run-build-exits-too-early)
- [`npm run build` fails on Heroku](#npm-run-build-fails-on-heroku)
- [`npm run build` fails to minify](#npm-run-build-fails-to-minify)
- [Moment.js locales are missing](#momentjs-locales-are-missing)
- [Alternatives to Ejecting](#alternatives-to-ejecting)
- [Something Missing?](#something-missing)
- [HackerAPI Frontend](#hackerapi-frontend)
- [Table of Contents](#table-of-contents)
- [Updating to New Releases](#updating-to-new-releases)
- [Sending Feedback](#sending-feedback)
- [Folder Structure](#folder-structure)
- [Available Scripts](#available-scripts)
- [`npm start`](#npm-start)
- [`npm test`](#npm-test)
- [`npm run build`](#npm-run-build)
- [`npm run eject`](#npm-run-eject)
- [Supported Browsers](#supported-browsers)
- [Supported Language Features and Polyfills](#supported-language-features-and-polyfills)
- [Syntax Highlighting in the Editor](#syntax-highlighting-in-the-editor)
- [Displaying Lint Output in the Editor](#displaying-lint-output-in-the-editor)
- [Debugging in the Editor](#debugging-in-the-editor)
- [Visual Studio Code](#visual-studio-code)
- [WebStorm](#webstorm)
- [Formatting Code Automatically](#formatting-code-automatically)
- [Changing the Page `<title>`](#changing-the-page-title)
- [Installing a Dependency](#installing-a-dependency)
- [Importing a Component](#importing-a-component)
- [`Button.js`](#buttonjs)
- [`DangerButton.js`](#dangerbuttonjs)
- [Code Splitting](#code-splitting)
- [`moduleA.js`](#moduleajs)
- [`App.js`](#appjs)
- [With React Router](#with-react-router)
- [Adding a Stylesheet](#adding-a-stylesheet)
- [`Button.css`](#buttoncss)
- [`Button.js`](#buttonjs)
- [Post-Processing CSS](#post-processing-css)
- [Adding a CSS Preprocessor (Sass, Less etc.)](#adding-a-css-preprocessor-sass-less-etc)
- [Adding Images, Fonts, and Files](#adding-images-fonts-and-files)
- [Using the `public` Folder](#using-the-public-folder)
- [Changing the HTML](#changing-the-html)
- [Adding Assets Outside of the Module System](#adding-assets-outside-of-the-module-system)
- [When to Use the `public` Folder](#when-to-use-the-public-folder)
- [Using Global Variables](#using-global-variables)
- [Adding Bootstrap](#adding-bootstrap)
- [Using a Custom Theme](#using-a-custom-theme)
- [Adding Flow](#adding-flow)
- [Adding a Router](#adding-a-router)
- [Adding Custom Environment Variables](#adding-custom-environment-variables)
- [Referencing Environment Variables in the HTML](#referencing-environment-variables-in-the-html)
- [Adding Temporary Environment Variables In Your Shell](#adding-temporary-environment-variables-in-your-shell)
- [Windows (cmd.exe)](#windows-cmdexe)
- [Windows (Powershell)](#windows-powershell)
- [Linux, macOS (Bash)](#linux-macos-bash)
- [Adding Development Environment Variables In `.env`](#adding-development-environment-variables-in-env)
- [What other `.env` files are can be used?](#what-other-env-files-are-can-be-used)
- [Expanding Environment Variables In `.env`](#expanding-environment-variables-in-env)
- [also works:](#also-works)
- [REACT_APP_VERSION=${npm_package_version}](#react_app_versionnpm_package_version)
- [Can I Use Decorators?](#can-i-use-decorators)
- [Fetching Data with AJAX Requests](#fetching-data-with-ajax-requests)
- [Integrating with an API Backend](#integrating-with-an-api-backend)
- [Node](#node)
- [Ruby on Rails](#ruby-on-rails)
- [Proxying API Requests in Development](#proxying-api-requests-in-development)
- ["Invalid Host Header" Errors After Configuring Proxy](#invalid-host-header-errors-after-configuring-proxy)
- [NOTE: THIS IS DANGEROUS!](#note-this-is-dangerous)
- [It exposes your machine to attacks from the websites you visit.](#it-exposes-your-machine-to-attacks-from-the-websites-you-visit)
- [Configuring the Proxy Manually](#configuring-the-proxy-manually)
- [Configuring a WebSocket Proxy](#configuring-a-websocket-proxy)
- [Using HTTPS in Development](#using-https-in-development)
- [Windows (cmd.exe)](#windows-cmdexe)
- [Windows (Powershell)](#windows-powershell)
- [Linux, macOS (Bash)](#linux-macos-bash)
- [Generating Dynamic `<meta>` Tags on the Server](#generating-dynamic-meta-tags-on-the-server)
- [Pre-Rendering into Static HTML Files](#pre-rendering-into-static-html-files)
- [Injecting Data from the Server into the Page](#injecting-data-from-the-server-into-the-page)
- [Running Tests](#running-tests)
- [Filename Conventions](#filename-conventions)
- [Command Line Interface](#command-line-interface)
- [Version Control Integration](#version-control-integration)
- [Writing Tests](#writing-tests)
- [Testing Components](#testing-components)
- [`src/setupTests.ts`](#srcsetupteststs)
- [Using Third Party Assertion Libraries](#using-third-party-assertion-libraries)
- [Initializing Test Environment](#initializing-test-environment)
- [`src/setupTests.ts`](#srcsetupteststs)
- [Focusing and Excluding Tests](#focusing-and-excluding-tests)
- [Coverage Reporting](#coverage-reporting)
- [Configuration](#configuration)
- [Continuous Integration](#continuous-integration)
- [On CI servers](#on-ci-servers)
- [Travis CI](#travis-ci)
- [CircleCI](#circleci)
- [On your own environment](#on-your-own-environment)
- [Windows (cmd.exe)](#windows-cmdexe)
- [Windows (Powershell)](#windows-powershell)
- [Linux, macOS (Bash)](#linux-macos-bash)
- [Disabling jsdom](#disabling-jsdom)
- [Snapshot Testing](#snapshot-testing)
- [Editor Integration](#editor-integration)
- [Debugging Tests](#debugging-tests)
- [Debugging Tests in Chrome](#debugging-tests-in-chrome)
- [Debugging Tests in Visual Studio Code](#debugging-tests-in-visual-studio-code)
- [Developing Components in Isolation](#developing-components-in-isolation)
- [Getting Started with Storybook](#getting-started-with-storybook)
- [Getting Started with Styleguidist](#getting-started-with-styleguidist)
- [Publishing Components to npm](#publishing-components-to-npm)
- [Making a Progressive Web App](#making-a-progressive-web-app)
- [Opting Out of Caching](#opting-out-of-caching)
- [Offline-First Considerations](#offline-first-considerations)
- [Progressive Web App Metadata](#progressive-web-app-metadata)
- [Analyzing the Bundle Size](#analyzing-the-bundle-size)
- [Deployment](#deployment)
- [Static Server](#static-server)
- [Other Solutions](#other-solutions)
- [Serving Apps with Client-Side Routing](#serving-apps-with-client-side-routing)
- [Building for Relative Paths](#building-for-relative-paths)
- [Serving the Same Build from Different Paths](#serving-the-same-build-from-different-paths)
- [Azure](#azure)
- [Firebase](#firebase)
- [GitHub Pages](#github-pages)
- [Step 1: Add `homepage` to `package.json`](#step-1-add-homepage-to-packagejson)
- [Step 2: Install `gh-pages` and add `deploy` to `scripts` in `package.json`](#step-2-install-gh-pages-and-add-deploy-to-scripts-in-packagejson)
- [Step 3: Deploy the site by running `npm run deploy`](#step-3-deploy-the-site-by-running-npm-run-deploy)
- [Step 4: Ensure your project’s settings use `gh-pages`](#step-4-ensure-your-projects-settings-use-gh-pages)
- [Step 5: Optionally, configure the domain](#step-5-optionally-configure-the-domain)
- [Notes on client-side routing](#notes-on-client-side-routing)
- [Troubleshooting](#troubleshooting)
- ["/dev/tty: No such a device or address"](#devtty-no-such-a-device-or-address)
- [Heroku](#heroku)
- [Resolving Heroku Deployment Errors](#resolving-heroku-deployment-errors)
- ["Module not found: Error: Cannot resolve 'file' or 'directory'"](#module-not-found-error-cannot-resolve-file-or-directory)
- ["Could not find a required file."](#could-not-find-a-required-file)
- [Netlify](#netlify)
- [Now](#now)
- [S3 and CloudFront](#s3-and-cloudfront)
- [Surge](#surge)
- [Advanced Configuration](#advanced-configuration)
- [Troubleshooting](#troubleshooting)
- [`npm start` doesn’t detect changes](#npm-start-doesnt-detect-changes)
- [`npm test` hangs on macOS Sierra](#npm-test-hangs-on-macos-sierra)
- [`npm run build` exits too early](#npm-run-build-exits-too-early)
- [`npm run build` fails on Heroku](#npm-run-build-fails-on-heroku)
- [Moment.js locales are missing](#momentjs-locales-are-missing)
- [`npm run build` fails to minify](#npm-run-build-fails-to-minify)
- [Alternatives to Ejecting](#alternatives-to-ejecting)
- [Something Missing?](#something-missing)

## Updating to New Releases

Expand Down
6 changes: 6 additions & 0 deletions __fixtures__/createAccount.fixture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import createAccount from "../src/containers/manageAccount";

export default {
component: createAccount,
props: {}
};
6 changes: 6 additions & 0 deletions __fixtures__/createApplication.fixture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import createApplication from "../src/containers/createApplication";

export default {
component: createApplication,
props: {}
};
7 changes: 7 additions & 0 deletions __fixtures__/forgotPassword.fixture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import forgotPassword from "../src/containers/forgotPassword";
import withThemeProvider from 'src/hoc/withThemeProvider';

export default {
component: withThemeProvider(forgotPassword),
props: {}
};
7 changes: 7 additions & 0 deletions __fixtures__/login.fixture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import loginComponent from "src/containers/login";
import withThemeProvider from 'src/hoc/withThemeProvider';

export default {
component: withThemeProvider(loginComponent),
props: {}
};
7 changes: 7 additions & 0 deletions __fixtures__/passwordResetEmailConfirmation.fixture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import passwordResetEmailConfirmation from "../src/containers/passwordResetEmailConfirmation";
import withThemeProvider from 'src/hoc/withThemeProvider';

export default {
component: withThemeProvider(passwordResetEmailConfirmation),
props: {}
};
7 changes: 7 additions & 0 deletions __fixtures__/resetPassword.fixture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import resetPasswordComponent from "src/containers/resetPassword";
import withThemeProvider from 'src/hoc/withThemeProvider';

export default {
component: withThemeProvider(resetPasswordComponent),
props: {}
};
6 changes: 6 additions & 0 deletions cosmos.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
containerQuerySelector: "#root",
proxiesPath: "src/cosmos.proxies",
publicPath: "public",
webpackConfigPath: "react-scripts-ts/config/webpack.config.dev"
};
Loading

0 comments on commit 9f6e4cc

Please sign in to comment.