|
1年前 | |
---|---|---|
doc | 2年前 | |
public | 1年前 | |
src | 1年前 | |
.dockerignore | 2年前 | |
.drone.yml | 1年前 | |
.editorconfig | 2年前 | |
.eslintrc.json | 1年前 | |
.gitignore | 1年前 | |
.prettierignore | 2年前 | |
.prettierrc.json | 2年前 | |
Dockerfile | 1年前 | |
LICENSE.txt | 2年前 | |
README.md | 1年前 | |
package.json | 1年前 | |
tsconfig.json | 2年前 | |
yarn.lock | 1年前 |
The web client for Project Amber, made with React, Redux, and TypeScript.
Simply run:
% yarn install --dev
% yarn start
Set the REACT_APP_APIURI
environment variable in case you're testing against
a local server. It should point to the base URI for all API requests, namely
https://amber.h.tdem.in/api/v0
.
Run:
% docker build . -t amber_web
% docker run -it -p 8080:80 amber_web
If you're running your own API server, be sure to set the
REACT_APP_APIURI
flag when building:
% docker build . -t amber_web --build-arg REACT_APP_APIURI=https://your.tld/api
The source code of this app is formatted automatically with Prettier. Be sure
to run yarn beautify
and yarn lint
before sending a pull request!
This program is MIT-licensed. See LICENSE.txt for details.