Janik von Rotz


2 min read

Meteor project structure

Get the latest version of this specification here: https://gist.github.com/d4755eb1b7a9d6b08515408ea6fd69bb

The Meteor project structure (MPS) is a proposal for a simple file and folder naming specification.

There are several basic distinctions when building a Meteor project structure. First there is a client, server and an imports folder. All folders have specific naming rules and differ in their structure.

Global restrictions are applied to all folders:

Important paradigms:

Requirements:

client

Restrictions:

Folders and files:

React component naming:

imports

Folders and files:

server

Server restrictions:

Folders and files:

Publications and methods naming:

Component -> Publication
PostList -> posts.list
Post -> posts.item

Action -> Method
Update post -> posts.update
Remove post -> posts.remove
Insert post -> posts.insert

Categories: JavaScript development
Tags: meteor , project , proposal , specification
Edit this page
Show statistic for this page