abhinavdc / operationcode_frontend

Front-end repository for live site. Please go to `front-end` repo to contribute instead.

Home Page:https://operationcode.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

✨ 🇺🇸 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.

About

Front-end repository for live site. Please go to `front-end` repo to contribute instead.

https://operationcode.org

License:MIT License


Languages

Language:JavaScript 70.1%Language:CSS 28.7%Language:HTML 0.5%Language:Shell 0.5%Language:Dockerfile 0.1%Language:Makefile 0.1%