Front-end repository for live site. Please go to `front-end` repo to contribute instead.
Latest commit 9400b70 Oct 16, 2018
Permalink
Failed to load latest commit information.
.github Delete delete delete Jan 21, 2018
.storybook Driveby - Ditch react-table related dependencies (unused) Mar 25, 2018
bin Switch to production mode Jul 19, 2017
config Use correct fallback url for staging Sep 30, 2018
pipeline k8s support Jun 25, 2017
public Remove op-code-con from sitemap Jul 20, 2018
scripts Revert "Revert "Allow dynamic host and backend urls"" Sep 23, 2018
src Adds job posting Oct 17, 2018
stories Remove all references to IDME Sep 7, 2018
.editorconfig Normalize Line Endings. May 4, 2017
.env Builds/publishes docker container in travis May 6, 2017
.eslintignore Remove all references to IDME Sep 7, 2018
.eslintrc Change lint rules to allow more visible propTypes Apr 23, 2018
.gitattributes fix git attributes file. Jun 24, 2017
.gitignore Merge branch 'master' of github.com:PixelWitch/operationcode_frontend Dec 3, 2017
.gitmodules removed additionalinfo since it doesn't have a role anymore and added… Dec 6, 2017
.stylelintrc Add a stylelintrc Mar 21, 2018
.travis.yml Changes to be committed: Oct 1, 2017
CODE_OF_CONDUCT.md Change `eilish` -> `staff` in most places Apr 13, 2018
CONTRIBUTING.md Remove all references to IDME Sep 7, 2018
Dockerfile Downgrade Dockerfile Node to 8.11.1 Apr 21, 2018
EXTERNAL_DATA_SOURCES.md Remove all references to IDME Sep 7, 2018
LICENSE.md Update license Jul 30, 2018
MAINTAINERS.md Replaced Lieutenant to Sergeant Mar 16, 2018
Makefile Revert "Upgrade React 16 - FINAL" Oct 2, 2017
README.md Change README Oct 11, 2018
SCRIPT.md pushing script for issue #520 Feb 27, 2018
docker-compose.yml Updating docker files. Apr 25, 2017
jsconfig.json Sign up page and component. Fixes #35 and #27. May 10, 2017
package.json Fix typo and format package.json Oct 4, 2018
server.js restore redirect in server.js Jun 25, 2017
yarn.lock Update lockfile from previous PR Raven upgrade May 26, 2018

README.md

🇺🇸 OperationCode Frontend 🇺🇸

Build Status PRs Welcome

License: MIT Twitter Follow

Please Read

Please direct contribution interests to the new repository, OperationCode/front-end. This repository is moving towards deprecation as we work on re-implementing the website with better practices, a better developer experience, better SEO, and much better performance.

Quick Start

Prerequisites:

yarn
yarn run backend

If the command doesn't work the first time, run it again.

In another shell tab:

yarn start

If you're an experienced developer, please navigate to our Quick Start Guide.

What is a frontend?

When you visit our website you're interacting with two systems, a frontend application and a backend application. The frontend application (where you are now) is responsible for displaying images, text and data on our web pages. Frontend applications are usually written using a combination of HTML, CSS, and JavaScript and utilize one or more frameworks such as Angular, Backbone, Vue, and React. https://operationcode.org uses React.

What is a backend?

The backend is responsible for providing data to the front end to display, and processing data entered into the frontend, and running various jobs like inviting new users to Slack, or signing them up for our newsletter. The https://operationcode.org backend is written in Rails and can be viewed at https://github.com/OperationCode/operationcode_backend.

Mocking Backend Server API

Our backend API blueprint:

We are using Apiary.io for our Backend documentation. It also includes a Mocking Server so you don't have to stand up the whole backend. You just need to hit the Mock API endpoints for whatever it is you're testing.

To use, navigate to Apiary.io.

For example, you want to gather all CodeSchool Members. Click on CodeSchool | Collection on the left-hand side. Select List All CodeSchool Members.

A form will populate. You can switch to an Example Code in the language of your choosing. More than likely it will be JavaScript on the front-end.

In the drop-down menu, select Mock Server and click on Try.

You will see a GET request with the mock endpoint url. You can now copy and paste that into your front-end to test your code.

Don't forget to remove the mock endpoint url when committing your changes for production. Reset your values and select Production to get the correct endpoint url.

Contribute

Want to contribute to this repo? Check out our comprehensive Contributing Guide

License

This project is licensed under the terms of the MIT license.