A news blog with content management functionalities developed using Node, Express and MongoDB.
- JavaScript
- Node
- Express
- MongoDB
- Passport
- Cloudinary
- Clone the repository:
git clone https://github.com/jelilio/zenblog.git- Install dependencies:
npm install- Setup .env file in the project directory and provide the below properties
PORT=<port> DEVELOPMENT_DB_DSN=<mongodb url> DEVELOPMENT_CLOUDINARY_CLOUD_NAME=<cloudinary environment name> DEVELOPMENT_CLOUDINARY_API_KEY=<cloudinary api key> DEVELOPMENT_CLOUDINARY_API_SECRET=<cloudinary api secret>
- Run the below command
To run the project in development, use the following command:
npm run dev
- Provide the below key-value properties
PORT=<port> PRODUCTION_DB_DSN=<mongodb url> PRODUCTION_CLOUDINARY_CLOUD_NAME=<cloudinary environment name> PRODUCTION_CLOUDINARY_API_KEY=<cloudinary api key> PRODUCTION_CLOUDINARY_API_SECRET=<cloudinary api secret>
- To run the project in production, use the below command:
npm run start
This project is licensed under the MIT License.
