GithubHelp home page GithubHelp logo

pongsakornsemsuwan / sample-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lpatmo/sample-project

0.0 2.0 0.0 52 KB

A sample Nova project to help you get started

JavaScript 97.29% CSS 2.71%

sample-project's Introduction

A sample Nova project.

About This Repo

This repo contains the started files for a sample Nova project. Files included:

  • .meteor: Meteor's own directory. Do not edit its contents, apart from packages and release.
  • .meteor/packages: A list of the Meteor packages used by the app.
  • .meteor/release: The Meteor release used by the app. Changing this might break the app, but it's easily reversable.
  • .gitignore: A list of files to be ignored by Git.
  • app.json: metadata used for Heroku deploys.
  • Dockerfile: metadata used for Docker deploys.
  • scalingo.json: metadata used for Scalingo deploys.
  • sample-settings.json: a sample settings file for your app.

Getting Started

Install Meteor:

curl https://install.meteor.com/ | sh

Clone this repository locally:

git clone [email protected]:TelescopeJS/sample-project.git

Install the necessary NPM packages:

npm install

Then run the app with:

meteor

Creating An Admin Account

The first account you create (via Log In > Register) will automatically be given admin rights.

Deleting Dummy Content

On its first run, Nova seeds the site with a few dummy posts. You can remove them by opening the console and calling Meteor.call('removeGettingStartedContent') while logged in as admin.

Configuring Settings

  1. Stop your app.
  2. Copy sample-settings.json to a new settings.json file.
  3. Optionally, edit your settings.json file's contents.
  4. Run your app with meteor --settings settings.json.

If you don't edit the sample settings provided, your app will simply be loaded with dummy settings (watch out for errors caused by dummy API keys).

You can come back and change them at any time, but note that any category you remove will also need to then be deleted on the site.

Note that settings.json will be gitignored by default.

Why Is This Repo Empty?

You might notice that it appears that this repo doesn't contain any code.

This is because the entirety of Nova's codebase is contained in the set of Meteor packages included in .meteor/packages.

If you'd like to customize Nova's codebase, please refer to the main Nova Readme.

Deploying

We recommend using Meteor Up X (MupX) to deploy to a Digital Ocean server, along with Compose to host your database.

Another good alternative is Galaxy, Meteor's official hosting service.

Deploy on Heroku:

Deploy

Note: if you get a $ROOT_URL, if specified, must be an URL. error on deployment, double-check that you're providing the correct URL (typically http://your-app-name-here.herokuapp.com).

Deploy on Scalingo:

Deploy on Scalingo

Updating

You can update your app by running meteor update. If this upgrades Meteor to a non-compatible version, simply go back to the previous version in .meteor/release.

Example Custom Package

This repo also includes an example of how to customize Nova using a custom package. To enable the custom package, simply uncomment the line # my-custom-package in .meteor/packages (remove the #).

sample-project's People

Contributors

sachag avatar moorage avatar brianrosamilia avatar janosrusiczki avatar soulou avatar zyko0 avatar

Watchers

James Cloos avatar Pongsakorn Win Semsuwan 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.