https://github.com/wangpin34/webcam
web camera app
https://github.com/wangpin34/webcam
Last synced: 4 months ago
JSON representation
web camera app
- Host: GitHub
- URL: https://github.com/wangpin34/webcam
- Owner: wangpin34
- License: mit
- Created: 2016-12-04T07:08:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-10T06:15:22.000Z (over 8 years ago)
- Last Synced: 2025-01-08T06:35:54.926Z (5 months ago)
- Language: JavaScript
- Homepage: https://wangpin34.github.io/webcam/
- Size: 502 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webcam
It's a camera based on web technologies. You can take picture without any pre installed camara applications.## Development
This assumes nodejs and npm are installed at your local machine.Here is the detailed step about how to begin development.
1. Install dependencies
```
npm install
```
2. Start it
```
npm run dev
```
It will launch the dev server at port 8080. And you still have to chance to change it to any port when 8080 is used by other processes.Then you can open http://localhost:8080 in any modern browser to see the app.
3. Build & Publish
```
npm run build
```To deploy the app at any remote server, you need to build source code. This is not like the command used in 'Start it' which has complicated runtime for development.
After the command gets executed, several new files are generated under www folder.
```
git add www && git commit -m 'Update resouces'
git subtree push --prefix www origin gh-pages
```
Above commands deploys build files to branch gh-pages.