Fakultas Ilmu Komputer UI

README.md 1.68 KB
Newer Older
WILLIAM GATES's avatar
WILLIAM GATES committed
1
2
3
4
# Home Industry Admin

[![pipeline status](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-tpu-online/post-rpl-web/badges/master/pipeline.svg)](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-tpu-online/post-rpl-web/commits/master)
[![coverage report](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-tpu-online/post-rpl-web/badges/master/coverage.svg)](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/diskominfo-depok-tpu-online/post-rpl-web/commits/master)
5
6
7
8

A local e-commerce application created for ease of buying and selling transactions.

## Table of Contents
WILLIAM GATES's avatar
WILLIAM GATES committed
9

10
11
12
13
14
- [Install](#install)
- [Running Development Mode](#running-development-mode)
- [References](#references)

## Install
WILLIAM GATES's avatar
WILLIAM GATES committed
15

16
17
18
19
20
The Admin Website's frontend uses Node.js and is developed using React. You need to install the required dependencies prior to building and contributing to the project.

- [Node.js](https://nodejs.org/en/download/releases/) and npm package manager

Verify that Node.js has been successfully installed. Make sure the interpreter can be invoked from the shell. For example:
WILLIAM GATES's avatar
WILLIAM GATES committed
21

22
23
24
25
26
```
npm --version
```

Now install the packages required for Node.js:
WILLIAM GATES's avatar
WILLIAM GATES committed
27

28
29
30
31
```
npm install
```

WILLIAM GATES's avatar
WILLIAM GATES committed
32
33
34
35
36
37
38
39
40
41
42
43
44
45
## Build

```
npm build
```

## Prepare environment

Create a .env file in the root folder. Inside the .env file, put

```
REACT_APP_BASE_URL= https://industripilar-staging.herokuapp.com
```

46
## Running Development Mode
WILLIAM GATES's avatar
WILLIAM GATES committed
47

48
To serve the frontend:
WILLIAM GATES's avatar
WILLIAM GATES committed
49

50
51
52
53
54
55
56
```
npm run start
```

You can see the app running by going to localhost:1234 via your favourite web browser.

## References
WILLIAM GATES's avatar
WILLIAM GATES committed
57

58
59
- https://docs.gitlab.com/ee/user/markdown.html#wiki---direct-page-link
- https://nodejs.org/en/download/package-manager/