This sample app demonstrates a photography site by using express
, mongoose
and stargate-mongoose
.
Make sure you have Node.js 17 or higher
Make sure you have Cassandra support
If want to run cassandra locally, you need to have a local Stargate instance(DSE-Next) 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 environment and install google-mediapipe pip install mediapipe
- 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
- 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_DB_ID
to your AstraDB database ID - Set
ASTRA_DB_REGION
to your AstraDB database region - Set
ASTRA_DB_KEYSPACE
to your AstraDB keyspace - Set
ASTRA_DB_APPLICATION_TOKEN
to your AstraDB application token
- Run
npm install
- Run
npm run seed
- Run
npm start
- Visit
http://127.0.0.1:3000
to see the UI