question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Directories & files organization

See original GitHub issue

Cleanup and make better folder system

  • Move rest & ws to its own folders
  • Fix any other organiztion thats obvious that was originally done as a rush to just get it done

This is just an example

src
  api
    mod.ts
    deps.ts
    // structures and handlers and such
  rest
    mod.ts
    deps.ts
  ws
    mod.ts
    deps.ts
  interactions
    mod.ts
    deps.ts

Cleanup and make better file names

  • example we don’t have a concept like client so src/modules/client.ts` makes almost no sense. Maybe init.ts or something not sure but we need to think of better names

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Dec 15, 2020

As previously discussed, client.ts is to be renamed to bot.ts.

0reactions
Skillz4Killzcommented, Dec 15, 2020

Should structures really be in api directory? “Structures” is not a part of the Discord API, we internally create “structure” for members, guilds, etc.

- structs/
- api/
    - rest/
    - ws/
    - types/
    - handlers/
    - controllers
- interactions/

What do you think about this?

Wouldnt the same apply to like handlers/controllers? Maybe lib is better than api

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Most Effective Way of Organizing Your Files and Folders
An easy way to do this is to grab a sheet of paper or a whiteboard and map out your company/enterprise in detail,...
Read more >
11 Ideas for How to Organize Digital Files - Microsoft
It can be overwhelming to organize thousands of files, but there are tools to help you. To sort files, open the folder containing...
Read more >
Chapter 4. Organizing and Naming Files and Folders - O'Reilly
The directory structure is the organization of files into a hierarchy of folders. It should be stable and scalable; it should not fundamentally...
Read more >
How to Organize Your Digital Files | Reviews by Wirecutter
How long will it take me to get organized? · Make a plan · Use “resources,” “in progress,” “final,” and “scrap” folders for...
Read more >
How to Best Organize Your Computer Files, Folders ...
Skip the Desktop. Never ever store files on your Desktop. · Skip Downloads. Don't let files sit in your Downloads folder. · File...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found