Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paalamugan/cms-blog
It helps to create authenticate blog posts, and users can also comments the specific posts.
https://github.com/paalamugan/cms-blog
aws-s3 express mongo nodejs passport passport-facebook passport-google-oauth20 passport-jwt react react-redux rich-text-editor
Last synced: about 5 hours ago
JSON representation
It helps to create authenticate blog posts, and users can also comments the specific posts.
- Host: GitHub
- URL: https://github.com/paalamugan/cms-blog
- Owner: paalamugan
- License: apache-2.0
- Created: 2021-04-27T10:11:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T12:16:04.000Z (about 2 years ago)
- Last Synced: 2024-05-17T20:53:35.728Z (6 months ago)
- Topics: aws-s3, express, mongo, nodejs, passport, passport-facebook, passport-google-oauth20, passport-jwt, react, react-redux, rich-text-editor
- Language: JavaScript
- Homepage: https://cms-blog.paalamugan.com
- Size: 1.54 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CMS BLOG
- It helps to create authenticate blog posts, and users can also comments the specific posts.
## Get Started
**Default Login credentials**
username - `admin`
password - `admin`
**One Time Only in Linux OS**
- Install mongodb
```shell
sudo apt install mongodb-org
```- Please Make sure whether your mongodb server running or not. before start the app
```
sudo systemctl start mongod
```*Alternative*
- If you have docker machine, run below command to start a mongodb server
```shell
docker-compose up -d
```**Node Engine**
- node - v14.5.3
- npm - 6.14.9## Install Dependencies
- If you have nvm package, just use below command to switch node engine
```shell
nvm use
```- Install node_modules packages
```shell
npm install && npm run client:install
```## Development
```shell
cp -rf .env-example .env
```**After that you have to replace your environment variable inside `.env` file.**
- `.env` file look like this,
```env
ADMIN_USERNAME= // default "admin"
ADMIN_PASSWORD= // default "admin"
MONGODB_URI= // default "mongodb://localhost/cms-blog"
COOKIE_SECRET_KEY= // default "mycookiesecret"
SESSION_SECRET_KEY= // default "mysessionsecret"
JWT_SECRET_KEY= // default "myjwtsecret"
FACEBOOK_CLIENT_ID=(Optional)
FACEBOOK_CLIENT_SECRET=(Optional)
GOOGLE_CLIENT_ID=(Optional)
GOOGLE_CLIENT_SECRET=(Optional)
S3_ACCESS_KEY=(Optional)
S3_SECRET_ACCESS_KEY=(Optional)
```- If you want to start a both backend and frontend simultaneously in single command, use below command
```shell
npm run dev
```- For server(Run only in backend)
```shell
npm run server
```- For client(Run only in frontend)
```shell
npm run client
```- After run the both frontend and backend click this link [http://localhost:3000](http://localhost:3000) to view.
## Production
- Start a production server
```shell
npm run prod
```- After run the production server click this link [http://localhost:8000](http://localhost:8000) to view.