The Veritone app boilerplate is a full-fledged boilerplate for creating Veritone powered web applications (SPAs).
- node
^8.11.0
- yarn
^1.6.0
You can use nvm to easily switch Node versions between different projects.
We use Yarn for dependency management.
$ yarn install # Install project dependencies
- Clone this repo and install the dependencies
git clone https://github.com/veritone/veritone-app-boilerplate-react.git
cd veritone-app-boilerplate-react/
yarn install
-
Create a Veritone developer account if you don't already have one.
-
Register a new Veritone application.
- URL:
http://localhost:3001
- Oauth2 Redirect URL:
http://localhost:3001
- URL:
-
Add your application's Client ID, found in Developer App, to
config.json
at the keyOAuthClientID
. -
Start the development server
yarn start
- The sample app should now be serving at
http://localhost:3001
.
$ yarn build # Build production assets
- Create and enter a directory for your project:
mkdir my-project; cd my-project
- Create a new git repo:
git init
- Add this boilerplate as a remote:
git remote add boilerplate https://github.com/veritone/veritone-app-boilerplate-react
- Fetch the new remote:
git fetch --all
- Merge the boilerplate:
git merge boilerplate/master
If you followed the steps above to create your project based on this boilerplate, staying up to date is simple:
- Fetch the latest changes:
git fetch --all
- Merge the boilerplate:
git merge boilerplate/master
Copyright 2018, Veritone Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.