In general, names of names of LoopBack applications, models, data sources, and so on must at a minimum be valid JavaScript identifiers, with the additional restriction that the dollar sign ($) is not allowed.
The rules for JavaScript identifiers are fairly broad (for example, you can use Unicode characters). However, as a best practice, follow these more restrictive guidelines:
- Begin names with a letter or underscore (_). Don’t begin a name with a number.
- Other characters can be letters, numbers, or underscore (_).
- Application names can contain the dash, that is, the minus-sign character (-).
Tip: In general, LoopBack allows other characters in names, including other non-alphanumeric characters and Unicode characters, but using them is not recommended as a best practice. If you have questions, inquire on the LoopBack Google Group.
It is also a good idea to avoid names that are JavaScript reserved words or predefined property names of a JavaScript Objects, such as constructor
.