A React App with Typescript
The goal of this project is to develop an accessible web page with a video frame searching engine powered by object detection and scene detection machine learning models.
Make sure npm
(package manager) is installed.
If you are using VS Code, please install Prettier
and ESLint
extenstions. It's necessary for automated lint and code style.
Change the local env variable in .env
file to local/cloud database. Copy .env.example
to your own .env
. To test with local API, REACT_APP_API_BASE
is http://localhost:8080
. To use the production environment API, just change it to https://video-segment-search-api.herokuapp.com/
.
This project was bootstrapped with Create React App.
-
npm install
: Install all packages -
npm start
: Runs the app in the development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits. You will also see any lint errors in the console.
npm test
: Launches the test runner in the interactive watch mode.
npm run build
: Builds the app for production to the build
folder. 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.
Use the main
branch to deploy: git push heroku main
, deploy to Heroku.