TERN is a stack for web development consisting of Tigris as a database (and search), Express.js for the web server, React for the client, and Node.js for the server runtime.
This codebase is a fork of the MongoDB MERN stack codebase.
- A Tigris Cloud account or a self-hosted Tigris instance
- Node.js LTS or above
Create a tern/server/config.env
from the tern/server/config.env.example
:
cp tern/server/config.env.example tern/server/config.env
Create a project in Tigris (e.g. via the
Tigris Cloud Console)
and populate the configuration values in the config.env
file:
TIGRIS_CLIENT_ID={TIGRIS_CLIENT_ID}
TIGRIS_CLIENT_SECRET={TIGRIS_CLIENT_SECRET}
TIGRIS_PROJECT=mern-to-tern
TIGRIS_URI=api.preview.tigrisdata.cloud
TIGRIS_DB_BRANCH=main
PORT=5000
Start the server:
cd tern/server
npm install
npm start
Start the client:
cd tern/client
npm install
npm start
The MERN code base came with some tests that don't appear to run by default when
running npm test
. However, you can manually run the existing two tests by
starting the client and server (as above) and then running:
node_modules/.bin/cypress run cypress/integration/endToEnd.spec.js
- 💻 Contribute to Tigris, the open source serverless NoSQL and Search platform
- 🌱 Join the Tigris Discord