- Clone Git repository
git clone https://github.com/cezerin2/cezerin2
cd cezerin2
- Change settings
cd config
-
Open
server.js
and change- MongoDB Creditionals
- SMTP Settings
- JWT and Cookie Secret Key
Save file and go back to root app direcotry
cd ../
-
Install dependencies
npm i
- Setup database
Prepare database at this setup our database is empty. To add default data, indexes and access token we need to run:
npm run setup <email> <domain>
-
We don't have real domain, so we'll use our local domain:
npm run setup [email protected] http://localhost:3000
-
This script will add token with email [email protected] and my domain to http://localhost
-
Start application in the background
-
Install pm2 [if not already installed]
npm install -g pm2
-
Run application in the background
pm2 start process.json
-
Process will be offline - Make it online
pm2 start 0
-
-
or you can start app in your terminal (you will see debug information, that is useful for debug):
- Build project
npm run build
- start FrontEnd Site
npm start
- Build project
-
At this setup, we have api running on port 3001 and available at http://localhost:3001
-
For example, here is the default store settings: http://localhost:3001/api/v1/settings
info: API running at http://localhost:3001
info: MongoDB connected successfully
Youtube video: Cezerin Installation Manual. Part 1 - Backend (API) Installation.
- Clone Git repository
git clone https://github.com/cezerin2/cezerin2-store
- Change settings
cd cezerin2-store/config
-
Open
store.js
and change- JWT and Cookie Secret Key
Save file and go back to root app direcotry
cd ../
-
Install dependencies
npm i
- Build project
npm run build
- Start cezerin store frontend application in the background
pm2 start process.json
- or you can start app in your terminal (you will see debug information, that is useful for debug):
npm start
- At this setup your cezerin store is now connected to api and available in browser at http://localhost:3000
- P.S. Your backend (api) must be online. Don't forget to start backend before you starting storefront app.
info: Store running at http://localhost:3000
Youtube video: Cezerin Installation Manual. Part 2 - Frontend (Store) Installation.
- Clone Git repository
git clone https://github.com/Cezerin2/cezerin2-admin
- Go to cezerin2-admin app folder
cd cezerin2-admin
- Install dependencies
npm i
- Build project
npm run build
- Start cezerin store frontend application in the background
pm2 start process.json
- or:
pm2 serve ./dist 3002
- At this setup your cezerin admin dashboard app is now connected to api and available in browser at http://localhost:3002
- P.S. Your backend (api) must be online. Don't forget to start backend before you starting admin dashboard app.
[PM2] Starting /usr/local/lib/node_modules/pm2/lib/API/Serve.js in fork_mode (1 instance)
[PM2] Done.
[PM2] Serving /home/work/cezerin/cezerin2-admin/dist on port 3002
┌─────────────────────────┬────┬───────┬────────┬────────┬─────┬────────┬───────────┐
│ Name │ id │ mode │ status │ ↺ │ cpu │ memory │
├─────────────────────────┼────┼───────┼────────┼────────┼─────┼────────┼───────────┤
│ static-page-server-3002 │ 0 │ 3.2.9 │ fork │ online │ 0 │ 0% │ 29.3 MB │
└─────────────────────────┴────┴───────┴────────┴────────┴─────┴────────┴───────────┘
Use `pm2 show <id|name>` to get more details about an app
Youtube video: Cezerin Installation Manual. Part 3 - Admin Dashboard Installation.