1. Music Contest #10 - Results are finally published! Drop by to check some retro songs and congratulate the winners!
    Dismiss Notice
  2. Join Terraining Contest #19 and witness the aftermath!
    Dismiss Notice
  3. The 3rd Melee Mapping Contest is ON! Join in on a ride of a 4v4 melee experience!
    Dismiss Notice
  4. The 30th edition of the Modeling Contest is finally up! The Portable Buildings need your attention, so come along and have a blast!
    Dismiss Notice

[Node.js] TypeScript, TypeORM, GraphQL masters, hear my call!

Discussion in 'Programming' started by Fransisco Wijaya, Nov 13, 2018.

  1. Fransisco Wijaya

    Fransisco Wijaya

    Joined:
    Feb 22, 2018
    Messages:
    8
    Resources:
    0
    Resources:
    0
    I need you to review my code, please suggest a good project structure, efficiency, modularity etc.

    This project is in progress, so there's no big things to show.

    Right to the REPO!
     
  2. Daffa the Mage

    Daffa the Mage

    Map Reviewer

    Joined:
    Jan 30, 2013
    Messages:
    7,102
    Resources:
    22
    Packs:
    1
    Maps:
    8
    Spells:
    12
    Tutorials:
    1
    Resources:
    22
    A website project?
     
  3. Fransisco Wijaya

    Fransisco Wijaya

    Joined:
    Feb 22, 2018
    Messages:
    8
    Resources:
    0
    Resources:
    0
    You guess it.
    Similar to wiki page.
     
  4. Pinzu

    Pinzu

    Joined:
    Nov 30, 2007
    Messages:
    1,014
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    You should create a gitignore file to remove more of the excess stuff from your IDE.
     
  5. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,393
    Resources:
    17
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    17
    I noted that you're using a .ts file instead of an .env file for config, might want to change that
     
  6. Fransisco Wijaya

    Fransisco Wijaya

    Joined:
    Feb 22, 2018
    Messages:
    8
    Resources:
    0
    Resources:
    0
    I need the config of IDE for consistency across platform.

    Nah I'm really lazy to learn .env
    Btw, some people just use .ts file for their environtment.
     
  7. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,393
    Resources:
    17
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    17
    .env is super simple actually.

    It's just..
    PORT = 3000

    I use dotenv from npmjs to read the file.
     
  8. Fransisco Wijaya

    Fransisco Wijaya

    Joined:
    Feb 22, 2018
    Messages:
    8
    Resources:
    0
    Resources:
    0
    Alright I'll later. thanks for the advice.