-
Notifications
You must be signed in to change notification settings - Fork 4
Creating an 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.
To run HackMerced, you need to install the following programs:
To get the code onto your computer, do the following.
git clone https://github.com/HackMerced/HackMerced.git
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
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