Skip to content

Commit

Permalink
Merge pull request #2 from photocol/dbv2
Browse files Browse the repository at this point in the history
dbv2 branch is stable, merge to master
  • Loading branch information
jlam55555 authored May 13, 2020
2 parents beb018e + faab9a2 commit 5b50509
Show file tree
Hide file tree
Showing 47 changed files with 2,807 additions and 2,570 deletions.
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# for running locally with `npm start`
REACT_APP_SERVER_URL=http://localhost:4567
2 changes: 2 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# for running in Docker (with `npm run-script build`)
REACT_APP_SERVER_URL=http://18.212.189.64:6700
80 changes: 20 additions & 60 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,28 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`
# Photocol Website
React frontend for the Photocol webapp. The following instructions are to run the Photocol website standalone (i.e., for development). If you want to run the whole project configuration using `docker-compose` containers along with the rest of the project, see the instructions at [photocol-DB_SETUP][1].

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
### Installation instructions

### Advanced Configuration
###### npm packages
Make sure npm and nodejs are installed. Install the packages:
```shell script
npm i
```

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
### Run instructions (run test server)
Make sure to set the environment variable `REACT_APP_SERVER_URL` to the URL of the server. (The default is `REACT_APP_SERVER_URL=http://localhost:4567` if running on the same machine.)

### Deployment
```shell script
npm start
```

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify
### Compile instructions (create optimized static build)
Make sure to set the environment variable `REACT_APP_SERVER_URL` to the URL of the server. (The default is `REACT_APP_SERVER_URL=http://localhost:4567` if running on the same machine.)
```shell script
npm run build
```

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
[1]: https://github.com/photocol/photocol-DB_SETUP
Loading

0 comments on commit 5b50509

Please sign in to comment.