A Node.js Express API service for EnsoGrow.
- Express.js with TypeScript
- Environment configuration with dotenv
- CORS enabled
- Request logging with Morgan
- Error handling middleware
- Development mode with nodemon
- Node.js (v14 or higher)
- npm (v6 or higher)
- Clone the repository:
git clone https://github.com/vrbaghel/ensogrow-service.git
cd ensogrow-service- Install dependencies:
npm install- Create a
.envfile in the root directory and configure your environment variables:
PORT=3000
NODE_ENV=development
To start the development server:
npm run devThe server will start on http://localhost:3000
To build the project:
npm run buildTo start the production server:
npm startensogrow-service/
├── src/ # Source files
│ └── app.ts # Main application file
├── dist/ # Compiled files (generated)
├── .env # Environment variables
├── package.json # Project dependencies and scripts
└── tsconfig.json # TypeScript configuration
ISC