Blogging System
An easy to use, markdown based blogging system that supports users from website and desktop.
Quicky setup:
- Clone this repository or fork it.
- To clone this repository, type
git clone https://github.com/kimlimjustin/Blogging-System.git
on your command line. - To fork this repository, click fork button of this repository then type
git clone https://github.com/<your username>/Blogging-System.git
on your command line
- To clone this repository, type
- Inside
server
folder, create a new file named.env
which stores information about the server side, such asATLAS_URI
andSECURITY_KEY
. For example of this file, you can viewserver/.env.example
file - Inside
website
folder, create a new file called.env
which stores your information about client side such asREACT_APP_SECRET_KEY
andREACT_APP_SERVER_URL
informations. For example of this file, you can viewwebsite/.env.example
file - Install all dependencies
- Client side: on the
website
directory typenpm install
- Server side: on the
server
directory typenpm install
- Client side: on the
- Run it on node js:
- Client side(website and desktop app): on the
website
directory typenpm run start
- Server side: on the
server
directory typenpm start
- Client side(website and desktop app): on the
- Build for production of website and desktop
- On the
website
directory, typenpm run build
- On the
website
directory:
Commands available for npm run react-start
: Start and run react application in the development mode.npm run react-build
: Build react application to thebuild
folder.npm run react-eject
: Eject your react build tool and configs.npm run electron-build
: Build desktop app using electron.js.npm run build
: Build application for both website and desktopnpm run start
: Start your application for both website and desktop