Giter Site home page Giter Site logo

meteor-base's Introduction

meteor-base

Cloning to a new app

  1. Remove this section from the README
  2. Change .meteor/.id (delete it and let Meteor regenerate it)

Environment variables

This project uses the pauldowman:dotenv package to set environment variables in development mode (only). Rename the dotenv.example file in the root directory to .env. Edit the entries with the configuration needed for the app.

Whenever your application loads, these variables will be available in process.env:

Client-side settings

pauldowman:dotenv can't set the METEOR_SETTINGS env variable (okgrow/meteor-dotenv#2) so we still need a settings.json file to set public (i.e. client-side) settings. Copy settings.example.json to settings.json.

Testing

This project uses tests written in Jasmine using the Jasmine extension for the Velocity testing framework

Velocity is still under heavy development, and there are still some awkward issues to work out.

If your tests don't seem to run on the first startup, OR if they fail unexpectedly (or pass unexpectedly) stop the server, run meteor reset, and killall node

See dotenv.example for some ENV vars that you might want to set for debug output and to use PhantomJS for unit tests.

To use PhantomJS instead of Chrome for the unit tests add JASMINE_BROWSER=PhantomJS.

Packages deactivated for Testing

The following packages interfer with / prevent the operation of the testing framework. They've been commented out in the .meteor/packages file temporarily

u2622:persistent-session
Running tests in the console

Tests can be run in the console by typing meteor --test There is currently an issue where running tests in this way leaves processes running after the tests have run.

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.