Skip to content

DavidMunozMartinez/mmorpg-server-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Naming conventions

Variables

const example = "";
let exmapleTest = "";

Types/Interfaces

type Example = {};
interface IExample {};

Classes

class ExampleClass {}
class TestClass {}

Services

Should be single file, single topic, used when we need to save some type of state, so we create a class that contains the logic and necessary public/private properties

some-example.service.ts

class SomeExampleServiceClass {}
export const SomeExampleService = new SomeExampleServiceClass()

Enums

enum EXAMPLES {
  EXAMPLE_ONE
  EXAMPLE_TWO
}
enum EXAMPLES_VALUE {
  EXAMPLE_ONE = "EXAMPLE_ONE"
  EXAMPLE_TWO = "EXAMPLE_TWO"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published