Backend for Custom Frontend OSPRO Surveyor Indonesia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
farhantock fc4c967a57 Merge pull request 'staging' (#11) from staging into master 4 months ago
cypress Test example add project 1 year ago
docs deleted file not used 11 months ago
nginx Update URL for Konstruksi 1 year ago
public update fav icon 10 months ago
src fix: change nilai kontrak <-> anggaran biaya & typo 4 months ago
.editorconfig first commit 2 years ago
.env perubahan api 1 year ago
.gitignore add build files for staging 2 years ago
Dockerfile Update URL for Konstruksi 1 year ago
LICENSE first commit 2 years ago
README.md update README dockerfile 2 years ago
cypress.config.js Add cypress e2e 1 year ago
docker-compose.yml feat(docker):setting docker si 6 months ago
package.json fix(delete dependecies): remove on dependencies Dashboard 6 months ago

README.md

ADW-FrontEnd Installation

# clone the repo
$ git clone https://git.oslog.id/OSPRO/ADW-FrontEnd

# go into app's directory
$ cd ADW-FrontEnd

# install app's dependencies
$ npm install

# fix dependency
$ npm audit fix

# start project
$ npm start

API Documentation

Here is the API Documentation.

ADW-FrontEnd Build to Production

# build the project
$ npm run build

# zip the files inside build folder -> name it as build.zip

# copy the zip file to server
$ scp -rP 2001 build/build.zip dev@202.47.70.196:/var/www/html/geohr

# login to dev@202.47.70.196
$ ssh dev@202.47.70.196 -p 2001

# go to geohr folder
$ cd /var/www/html/geohr

# unzip the build.zip
$ unzip build.zip

# if prompt shown, choose [A] to replace all existing files
[dev@oscarp geohr]$ unzip build.zip
Archive:  build.zip
replace favicon.ico? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
  inflating: favicon.ico
  ...

# remove build.zip file
$ rm -rf build.zip

# DONE !
# Open siopas.co.id/geohr
# Don't forget to shift+reload on browser

Docker

docker build --tag react .
docker run -it -p 3000:3000 react:latest