Skip to content

easyoneweb/template-easy-nodejs-app

Repository files navigation

Easy-NodeJS-Template-App

NodeJS Template application bootstraped with eslint, typescript and husky.

Setup

Make sure to install the dependencies:

npm install

Environment variables should be put in .env file before building for production. See Environment variables section for more information.

Development Server

Start the development server on http://localhost:${PORT}:

npm run dev

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Environment variables

Application is using environment variables. You have to define:

  • NODE_ENV (development or production)
  • PORT (on which the server will run locally), default: 3000
  • DB (mongodb URI to connect to, example: mongodb://127.0.0.1:27017/name-of-database)
  • API_KEY (to access application's REST API).

You can define all needed variables in .env file in root folder of this application.

Additional information

Easy-NodeJS-Template-App is built on NodeJS (^18.20.2), ExpressJS (^4), MongoDB (^5). Please, before proceed be sure to check official documentation on corresponding technology.

Copyright

EasyOneWeb LLC 2020 - 2025. All rights reserved. See LICENSE.md for licensing and usage information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published