Update README.md

This commit is contained in:
Expand-sys 2021-06-15 18:13:29 +10:00 committed by GitHub
parent af3a5e9856
commit 84752c9a43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,16 +9,14 @@ From here is will assume you have set up the api server, know its URL and what p
if deploying to a serverless application make sure you set the environmental variables first. these are as follows if deploying to a serverless application make sure you set the environmental variables first. these are as follows
* BANKAPIURL=your api url including http/s and the trailing slash NOT BANKF * BANKAPIURL=your api url including http/s and the trailing slash NOT BANKF
* SECURE=true if you have ssl on your front end host * SECURE=true if you have ssl on your front end host
* MONGO=put your mongodb url here (not required)
* MARKETPLACE=True if you want a market place, its not very good and not complete so i dont suggest using it. blank if not wanted
* SETUP=true when you have set the above this just gets rid of the setup page that will show if it equals false or the .env file is not found * SETUP=true when you have set the above this just gets rid of the setup page that will show if it equals false or the .env file is not found
* PORT=Optional will default to 3000 if not set * PORT=Optional will default to 3000 if not set
if you are deploying on a vps then if you are deploying on a vps then
1. git clone repository 1. git clone repository
2. run npm install 2. run npm install
3. run with your favourite node webserver if you dont know any use [pm2](https://pm2.keymetrics.io/) 3. Set environmental variables (they are no longer set through the webpage) hint: make a .env file in the root and fill in environmental variables as above
4. go to localhost or the ip of the server 4. run with your favourite node webserver if you dont know any use [pm2](https://pm2.keymetrics.io/)
5. restart the application and badda bim badda boom you done 5. restart the application and badda bim badda boom you done
If you want to properly deploy it put it behind a reverse proxy too so you can have virtual hosts and all that shizzaz If you want to properly deploy it put it behind a reverse proxy too so you can have virtual hosts and all that shizzaz