Repo này sử dụng hệ thống API của Goship để build một ứng dụng SPA đơn giản. Giúp các developer tiếp cận code và hệ thống nhanh hơn và dễ dàng hơn. Bạn có thể sử dụng code trong Repo này ngay cho hệ thống có sẵn của bạn hoặc tham khảo để tự xây dựng 1 hệ thống ship riêng dựa trên Goship API.
$ git clone https://github.com/alvintran/goship-example-react.git
$ cd goship-example-react
$ npm install
$ npm start
Tạo tài khoản goship lấy client_key
& client_secret
theo hướng dẫn tại đây.
Copy client_key
& client_secret
của bạn vào file /src/components/login/index.js
this.state = {
client_id: {{your_client_key}},
client_secret: {{your_client_secret}},
username: '',
password: ''
}