We wanted to do a game in which the people have an approach with image classification. People can put different objects to the webcam and check if is detect or not.
In order to deploy the page locally, you should have the following technologies install if you don't have installed just click on the name and you will be redirected to the dowloand page:
Enter in the root folder of the proyect and run the following commands:
# Install dependencies for server
yarn install
# Add mongodb to yarn
yarn add mongodb
Almost there!!!.
Go to where you intsalled mongo (eg.)
C:\Program Files\MongoDB\Server\3.2\bin>
Enter command
mongod
Then, open a new cmd and set your environment variables to be the admin and password
SET MONGO_USER=admin
SET MONGO_PWD=secret
Go to where you intsalled mongo (eg.)
C:\Program Files\MongoDB\Server\3.2\bin>
Enter command
mongo
Then open a new cmd and go to you folder where the app is and
yarn start
Create the image to mongodb with the name some-mongo with user mongoadmin and password secret:
docker run -d --name some-mongo -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=secret mongo:4.0.4
If you want to check mongo shell in the docker image, just run in the console :
docker run -it --rm --link some-mongo:mongo mongo mongo --host mongo -u mongoadmin -p secret --authenticationDatabase admin some-db
Before running the project, remember to set the variables for MONGO_USER and MONGO_PWD in this example run the next commands:
export MONGO_USER=mongoadmin
export MONGO_PWD=secret
Now, all you have to do is to be inside the root folder of the project and run:
yarn start
- HTML
- CSS
- Bootsrap
- Javascript
- TensorFlow.js
- MongoDB
- Docker
This project is licensed by the MIT License.