You can use it as a basic project for Authentication/Authorization and CRUD operations.
Before you begin, do not forget create an .env file, such as an .env.example file.
git clone https://github.com/mJiyan/nodejs-blog.git
cd nodejs-blog
docker-compose up --build
git clone https://github.com/mJiyan/nodejs-blog.git
cd nodejs-blog
yarn
## Prepare your environment variables with generating .env file like in the .env.example file
yarn start
git clone https://github.com/mJiyan/nodejs-blog.git
cd nodejs-blog
yarn
## Prepare your environment variables with generating .env file like in the .env.example file
yarn test
git clone https://github.com/mJiyan/nodejs-blog.git
cd nodejs-blog
yarn
## Prepare your environment variables with generating .env file like in the .env.example file
yarn start
## Then open the: http://localhost:8081/api-docs
├─ src
│ ├─ api
│ │ ├─ controllers
│ │ │ ├─ authControllers.js
│ │ │ ├─ blogController.js
│ │ │ └─ userController.js
│ │ ├─ routes
│ │ │ ├─ authRoutes.js
│ │ │ ├─ blogRoutes.js
│ │ │ ├─ routeManager.js
│ │ │ └─ userRoutes.js
│ │ ├─ swagger
│ │ │ └─ swagger.yaml
│ │ └─ validators
│ │ └─ user.validator.js
│ ├─ config
│ │ ├─ index.js
│ │ ├─ logger.config.js
│ │ └─ swagger.config.js
│ ├─ loaders
│ │ ├─ express.js
│ │ ├─ index.js
│ │ └─ mongoose.js
│ ├─ models
│ │ ├─ blogModel.js
│ │ ├─ index.js
│ │ └─ userModel.js
│ ├─ utils
│ │ ├─ index.js
│ │ └─ util.js
│ └─ app.js
├─ test
│ └─ api
│ ├─ controllers
│ │ ├─ auth.test.js
│ │ ├─ blog.test.js
│ │ ├─ index.test.js
│ │ └─ user.test.js
│ └─ helpers
│ └─ test.model.json
├─ .dockerignore
├─ .env
├─ .gitignore
├─ docker-compose.yaml
├─ Dockerfile
├─ LICENSE
└─ package.json
Please open an issue for support & suggestions.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.