Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1.43 KB

README.md

File metadata and controls

20 lines (17 loc) · 1.43 KB

Wildhacks 2017 Backend

Installation

  1. Clone this repository
  2. Make sure you have node version 6.11.0. You can manage node versions with nvm if you already have node and npm. Otherwise, download node and npm. You can check your node and npm versions by running node -v and npm -v.
  3. Once you have a valid version of node, npm install in the root project directory to download the project's dependencies and its flow-compatible counterparts.
  4. Acquire a .env and a config file from a WildHacks team member, or email [email protected], and place it in the root of the project.

Local development

Database

  1. You'll need mysql. They have pretty good setup instructions. - If you use a Mac and want the absolute no-hassle installation, first install Homebrew and then follow these instructions.
  2. Add Sequelize CLI npm i -g sequelize-cli
  3. Run npm run db:create to create your local database and run the table migrations in migrations/.
  4. Ensure that the database was created by signing into your mysql account. - mysql -u <username> -p

Running

  1. To run locally, npm run start:dev to transpile the source to build/ and start a local web server.
  2. Check /ping