Skip to content
This repository was archived by the owner on Mar 18, 2021. It is now read-only.

Creating an instance of HackMerced

Shubham Naik edited this page Jul 27, 2017 · 10 revisions

Creating a single instance of HackMerced

This document was created for running HackMerced 2017 Fall's website locally - please update this documentation when HackMerced upgrades!

The following steps are a tutorial to have HackMerced running on your computer.

Prerequisites

To run HackMerced, you need to install the following programs:

From Github to Desktop

To get the code onto your computer, do the following.

git clone https://github.com/HackMerced/HackMerced.git

Setting up the environment

Tomoe

Navigate to the ./Tomoe directory and create a file called .env. You should populate this file with the following content:

PORT=1738
DB_URI=http://root:@127.0.0.1:8529
NODE_ENV=development

Then run the following commands in your terminal emulator:

yarn
yarn setup

Once you have completed running the installer enter the following to start the server:

yarn api

HackMerced 2017F Website

Navigate to the ./HackMerced/2017F directory and create a file called .env. You should populate this file with the following content:

COOKIE_SECRET={make a random string that is 32+ characters long}
NODE_ENV=production
TOMOE_URI=http://localhost:1738
FILESTACK_API_KEY={ask an admin for this}

Then run the following commands in your terminal emulator:

yarn

Then run the following commands in two different windows:

yarn api
yarn start

Video Reference

Link