Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

This is my first practice with Node/Express


I didn't do any error handling or focus on controller files. I feel like some things may also be suitable for .env that I haven't included.

environment variables

how to use

  • write the variables: create a .env file at the root of the directory
  • load the variables: when writing the CLI commands to run the app, use --env-file=.env prior to referencing the app.
    • e.g.: node --env-file=.env --watch app
  • access the variables: variable keys within .env will be accessible throughout the directory via Node's global process.env.KEY_NAME object

list of variables and what their value(s) consist of

  • Ports -> MAIN_APP_PORT & BACK_APP_PORT
    • are common ports, use what you want - I did 3000 and 5000

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages