Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.