https://github.com/rizanw/xjs-blog
https://github.com/rizanw/xjs-blog
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rizanw/xjs-blog
- Owner: rizanw
- Created: 2021-02-12T14:11:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-14T15:09:52.000Z (over 4 years ago)
- Last Synced: 2025-01-21T15:45:20.485Z (9 months ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ExpressJs-blog-CMS
> This repository is a free to use!
### ChangeLog
> 2021/02/12
- initial blog based on [my expressjs boilerplate](https://github.com/rizanw/restful-js-boilerplate)## Getting Started:
1. Install the packages
`yarn install`
or
`npm install`
2. Setup the env
copy `.env.sample` as `.env` then config the variable
3. Lit it up!
`yarn start`
or
`npm start`## Structure
│
├── index.js - ExpressJS application instance
├── src
│ ├── config - any configs and variables.
│ ├── controllers - application logic related stuff
│ ├── db - db related stuff
│ ├── middlewares - middle service related stuff
│ ├── models - models, scheme, data logic related stuff
│ └── routes - web related stuff and handle routes
└── .env - environtment variables.## Tech Stacks: (furthermore read [package.json](package.json))
- ExpressJS `just an amazing backend framework for Node.js`
- morgan `to add some logging capabilities to your Express API.`
- helmet `to secure Express APIs by defining various HTTP headers.`
- cors `to configure Express to add headers stating that your API accepts requests coming from other origins.`
- body-parser `to convert the body of incoming requests into JavaScript objects.`
- dotenv `to store configuration in the environment.`
- mongoose `an ODM library to make working with MongoDB easier.`