Giter VIP home page Giter VIP logo

encorelink's Introduction

EncoreLink

Stories Ready to Work On Build Status

Setup - Option 1 (Vagrant)

EncoreLink uses a Vagrant virtual machine as the development environment. This isolates your dev environment from your host machine, ensures everyone has the same setup, and automatically installs everything you need to get going. Just follow these steps:

  1. Install or Update VirtualBox.
  2. Install or Update Vagrant.
  3. Run vagrant plugin install vagrant-hostmanager to install the Vagrant Hostmanager Plugin.
  4. Clone this repository to your machine.
  5. Navigate to the repo directory.
  6. Run vagrant up.
  7. Enter your password when prompted.

Running vagrant up downloads an Ubuntu image to your host machine and provisions it with everything this project needs to run. This will take a few minutes, so be patient.

Troubleshooting

For port errors, make sure postgres is not running

Running the App

Once vagrant up has finished, follow these steps to start the server.

  1. vagrant ssh to login into the virtual machine.
  2. cd /vagrant to navigate to the project.
  3. npm start to start the server.
  4. Open your browser
  5. Rejoice!

Troubleshooting

-To shut down any running vagrant processes use 'vagrant halt'

-After using 'vagrant destroy' your computer should be left at a clean state, as if you never created the guest machine in the first place.

Coding

Just code as you normally would in the repo directory you cloned above. Vagrant automatically syncs with this repo directory and runs your code inside the virtual machine.

Setup - Option 2

  1. Install Node.js
  2. Install PostgreSQL
  3. Clone this repo
  4. Navigate to your repo folder
  5. Run npm install
  6. Create a new database in postgres
  7. Copy the server/datasources.local.example.json to server/datasources.local.json and update the config to match the postgres database.
  8. Run node .

Other

To gain additional features from StrongLoop, such as clustering, run the following inside Vagrant, in the /vagrant directory:

npm install -g strongloop
slc run

Linting

This project uses eslint for checking coding practices and standards. It is expected that any opened pull requests have a passing eslint run.

It is highly recommended that you configure your editor to run eslint on the fly while you code.

Additionally, you can run eslint on the command line with npm run lint (or npm run lint -- --fix to have eslint attempt to fix some of the issues)

Things work locally but not on Heroku...

We run the app with a different configuration for local development than we do for deploying. If things work when running locally, but fail when deploying, run npm run heroku to emulate the config used for production (visible on localhost:3000).

You might also want to make sure you have the same npm modules that will be installed on heroku (this can be done with rm -rf node_modules && npm install --production). In this case, you'll have to start the app with NODE_ENV=production npm start (or otherwise export NODE_ENV=production before starting).

encorelink's People

Contributors

wdoug avatar dsenza avatar minkcv avatar darrenrichmond avatar scottsmeester avatar vijoditz-agustin avatar whitebird08 avatar waffle-iron avatar dkoloditch avatar hamorim85 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.