/brainstation-brainflix-api

Server-side API using NodeJS, Express and CORS for Brainflix project

Primary LanguageJavaScript

BrainFlix

Node.js/Express back-end API

is a YouTube emulator created during the Web Development bootcamp @BrainStation

With a 3 week timeframe broken into 3 sprints, we built out the front-end React SPA using create-react-app, react-router and Sass. During sprint 2 we built on state & data fetching concepts by leveraging class components and integrating Axios into React’s lifecycle methods. Finally we complemented the site with a Node/Express API server following a MVC architecture to separate concerns and scalability.

Below are instructions on how to install the Node/Express API and you can Click here to find the front-end React.js SPA Repo and the remaining steps.

Thank you for stopping by! 🎥🌟

-Kirill (30-04-2022)

Installation

Follow these steps to run a local instance of BrainFlix:

You’ll need Node already installed

Setup the back-end

  1. Clone or download this repo.

  2. Install server dependencies:

    Run npm install from inside the server directory.

        $ cd brainstation-brainflix-api
        $ npm install
    
  3. Start the server:

        $ node index.js
    

Setup the front-end

  1. Goto the brainstation-brainflix-spa Repo to complete the setup