This sample app demonstrates a photography site by using express
, mongoose
and stargate-mongoose
.
Make sure you have Cassandra support
If want to run cassandra locally, you need to have a local Stargate instance(DSE-Next) and JSON API running as described on the main page of this repo.
If want to run against AstraDB, please go to AstraDB create your database and keyspace 'photography' .
Make sure you have a local python (3.8 - 3.11) environment
install google-mediapipe pip install mediapipe
Make sure you have Node.js 17 or higher
- Copy the
.env.example
file to.env
and fill in the values for the environment variables. - Set
IS_ASTRA
totrue
- Set
OPENAI_API_KEY
to your openAI api key - Set
ASTRA_DBID
to your AstraDB database ID - Set
ASTRA_REGION
to your AstraDB database region - Set
ASTRA_KEYSPACE
to your AstraDB keyspace - Set
ASTRA_APPLICATION_TOKEN
to your AstraDB application token
- Copy the
.env.example
file to.env
and fill in the values for the environment variables. - Set
IS_ASTRA
tofalse
- Set
OPENAI_API_KEY
to your openAI api key - Set
JSON_API_URL
tohttp://127.0.0.1:8181/v1/photography
- Set
JSON_API_AUTH_URL
tohttp://127.0.0.1:8181/v1/auth
- Set
JSON_API_AUTH_USERNAME
tocassandra
- Set
JSON_API_AUTH_PASSWORD
tocassandra
- Run
npm install
- Run
npm run seed
- Run
npm start
- Visit
http://127.0.0.1:3000
to see the UI