Skip to content

lbayer10/TERN-Stack-Starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TERN stack example

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.

TERN stack diagram

This codebase is a fork of the MongoDB MERN stack codebase.

Prerequisites

How To Run

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

Tests

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

Get involved

  • 💻 Contribute to Tigris, the open source serverless NoSQL and Search platform
  • 🌱 Join the Tigris Discord

About

The TERN stack is an evolution of the MERN stack, replacing MongoDB with Tigris. The TERN stack is made up of: Tigris: An open source Serverless NoSQL Database & Search platform. Express.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published