Ashish
Ashish

Reputation: 389

Meteor directory structure

Can someone specify the best practices for Directory Structure of a Meteor App?

I am new to Meteor and having a hard time getting things right while placing files in the app directory.

Upvotes: 0

Views: 259

Answers (1)

Michel Floyd
Michel Floyd

Reputation: 20256

I like to use a simple shell script to scaffold new Meteor projects. This should be easy to adapt to your own needs.

mkdir client
mkdir client/helpers
mkdir client/scripts
mkdir client/stylesheets
touch client/stylesheets/style.css
mkdir client/templates
mkdir lib
mkdir lib/collections
touch lib/router.js
mkdir public
mkdir public/fonts
mkdir public/images
mkdir server
mkdir server/collections
mkdir server/crons
mkdir private

Upvotes: 2

Related Questions