Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 3.17 KB

README.md

File metadata and controls

56 lines (42 loc) · 3.17 KB

Hack Your Learning Main Website

This repository contains the Hack Your Learning website (https://hackyourlearning.ca). The application is written in NodeJS and React.

Installation

Further information can be found in the "Dependencies" section below.

  1. Install Node Version Manager (NVM)
  2. Clone repository
$ git clone https://github.com/Hack-Your-Learning/hackyourlearning-site.git
  1. Install NodeJS library dependencies
$ npm install
  1. Start the application
$ npm start

Available NPM Commands

There are several NPM commands that can be run to launch parts of the application or tools used in the development process. NPM commands can be run with npm run {COMMAND} The commands are outlined below:

  • start starts the application and makes it available locally at localhost:3000 in your browser. The page will reload if you make edits. You will also see any lint errors in the console.
  • test launches the test runner in the interactive watch mode (more info here)
  • build runs build sequence to create a package of the application in the build folder

Dependencies

Node.js

This project uses Node.js for its server-side functionality. To simplify the management of Node versions we are using Node Version Manager (NVM) on Mac and Linux.

Once NVM is installed you can open the project in your terminal and then run nvm install to install and switch to the correct version of Node.js while working on the project. After running this command once your terminal should automatically switch to the correct Node.js version when you open the project in your terminal, if it does not you can run nvm install again or nvm use to switch to the previously installed version of Node.js for the project.

NPM

The codebase uses package management tools to simplify the process of installing all the required libraries for the project (React, etc.). NPM is packaged with Node.js, and after installing using the instructions in the previous section you can run npm install to install the current package configuration for the project.


Additional Information