Author: Syafiq Abdillah Umarghanis abdillah.syafiq@gmail.com
- Git
- Node 12.x
- Clone app's repository using git
$ git clone https://github.com/syafiqabdillah/sistem-alumni-web
- Change current directory to
sistem-alumni-web
$ cd sistem-alumni-web
- Install all dependencies
$ npm install
- Build the application
$ npm run build
- Put
.env
file sent by email tosistem-alumni-web
directory. This file contains 2 environtment variables like so
BASE_API_URL=https://sistem-alumni-asysyaamil-api.herokuapp.com
PORT=3000
- Run the application
$ npm run start
- Now you're application will run on port 3000
- Stop the application process
- Open
.env
with your text editor of choice - Change the
PORT
value
PORT=1234
- Start the application
$ npm run build && npm run start
- Stop the application process
$ killall node
- Pull the updated version from
$ git pull
- Reinstall dependencies
$ npm install
- Rebuild the application
$ npm run build
- Run the application
$ npm run start