mirror_admin v1.3.1
Mirror admin panel
Getting Started
These instructions will get you a copy of the project up and running for development and production environment.
Prerequisites
What things you need to install the software:
- node.js (i.e.,>=v8.4.0)
- forever (Install using the command: npm install forever -g or sudo npm install forever)
Installing
Follow the steps to install and make the application up and running:
Clone repository
You will need to clone source code of MirrorApi GitHub repository. To do this open console and execute following lines:
git clone https://github.com/huulkecrew/mirror-api.git
Install dependencies
After repository is cloned, go inside of the repository directory and install the dependencies there:
- For development server or local machin setup
npm installOR - For production server
npm install --production
Configuration for the project on development, production environment and mirror production environment 1. Updates the config/dev.js or config/prod.js or mirror.js according to environment 2. Create storage directory with 777 permission in project root and also create sub directories under storage like: accounts, brands, favourites, items, outfits, products, profiles, providers etc.
Running the server and restart
Runing on Local machine a. Use
npm startto run the server locally. b. Usenpm run restartto restart server locally.Running server development environment a. use
npm run devORsudo npm run devto run the server in development environment. b. usenpm run devrestartOR to restart server in development environment.Runing server in production environment a. use
npm run prodORsudo npm run prodto run the server in production environment b. usenpm run prodrestartORsudo npm run prodrestartto run the server in production environmentRuning server in mirror production environment a. use
npm run mirrorORsudo npm run mirrorto run the server in mirror production environment b. usenpm run mirrorrestartORsudo npm run mirrorrestartto run the server in mirror production environment
Verify Domain working: 1. Open URL in browser with:
http://YourIPAddress:port/ Output: Admin panel should open You can also make Configuration for redirecting
http://www.mirror.comtohttp://YourIPAddress:portinside the server hosting.
License
© 2017 Huulke Technologies. All rights reserved.
Enjoy!
6 years ago