Skip to content

Backend services for Trenchpad with local development setup using MongoDB (via Docker) and a local Solana chain. Includes test scripts and environment configuration.

Notifications You must be signed in to change notification settings

leodev007/trenchpad-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trenchpad-backend

Run tests

Prepare local MongoDb

  1. The local MongoDb is run via docker-compose with secrets. You need to create two files:
  • mongo-docker/db_root_username.txt
  • mongo-docker/db_root_password.txt

you can choose whatever username and password for your local MongoDb.

  1. Start MongoDb

You can start MongoDb locally via Docker: docker-compose -f mongo-docker/docker-compose.yml up -d

  1. Setup local Mongo URI env

The Mongo URI for connection is fairly simple. It looks like this: mongodb://<username>:<password>@localhost:27017/

Start your local Solana chain

You will need to setup your Solana test validator yourself along with your deployed program.

Run API tests

# run all tests
yarn test

# Run a single test
yarn test -t "test-create-a-new-coin"

About

Backend services for Trenchpad with local development setup using MongoDB (via Docker) and a local Solana chain. Includes test scripts and environment configuration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published