NodeJS Template application bootstraped with eslint, typescript and husky.
Make sure to install the dependencies:
npm installEnvironment variables should be put in .env file before building for production. See Environment variables section for more information.
Start the development server on http://localhost:${PORT}:
npm run devBuild the application for production:
npm run buildLocally preview production build:
npm run previewApplication 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.
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.
EasyOneWeb LLC 2020 - 2025. All rights reserved. See LICENSE.md for licensing and usage information.