dhiway/cord-agent-app-v1

directory structure

Closed this issue · 2 comments

Should we change the folder structure for the project as follows?

| cord-agent-app-v1/src
|  | - cord
|  |  | - schema_cord.js
|  |  | - space_cord.js
|  |  | - record_cord.js
|  |  | - init_cord.js
|  | - entities
|  |  | - schema_entity.js
|  |  | - space_entity.js
|  |  | - record_entity.js
|  | - controller
|  |  | - schema_controller..js
|  |  | - space_cord.js
|  |  | - record_cord.js
|  | - config
|  |  | - dbconfig..js
|  | - index.js
|  | - server.js

Good suggestion... Minor change to what you suggested would make it better IMO. Mainly as directory name is indicative of what it is.

| cord-agent-app-v1/src
|  | - cord
|  |  | - schema.js
|  |  | - space.js
|  |  | - record.js
|  |  | - init.js
|  | - entities
|  |  | - Schema.ts  # this is better as its treated as 'Class' name in Typeorm
|  |  | - Space.ts
|  |  | - Record.ts
|  | - controller
|  |  | - schema.ts
|  |  | - space.ts
|  |  | - record.ts
|  | - config
|  |  | - dbconfig..js
|  | - index.js
|  | - server.js

Working on it, and created a draft PR. I Would like to know your thoughts.