Skip to content

troup-io/troup-server

Repository files navigation

troup-banner

Troup Server

Join the community on Spectrum PRs Welcome first-timers-only

📢 We are looking for contributors!

This project is under heavy development and is on the lookout for contributors both technical and ono-technical. If you are interested in understanding the product and contributing, do get in touch at hello@troupapp.com.

The Troup server is the Express-GraphQL app that helps the client address problems that we aim to solve. The server is built atop wonderful open-source projects with the goal of providing a fluid experience to the client.

Languages:

Libraries:

Setting up environment variables

You will need to create two .env files in the root and the prisma folder. The instructions on setting those up are available within each example:

Available scripts

yarn boostrap

Bootstrap the database and the server. This will also seed your local database.

yarn dev

Start the development server and watch for file changes.

yarn build

Build the production-optimised bundle for deployment.

yarn start

Deploy the production-optimised bundle locally to test and simulate the production environment.

yarn lint

Run the linter, catching out any errors or warning that may occur.

yarn cmd

The raw command runner. All commands that are listed as category:command can be run using yarn cmd category command. For example, the app:dev command can run as yarn cmd app dev.

UNSAFE: yarn reset

Use this if something has gone horribly wrong with your database. It wipes out all data, clears out all volumes and containers and restarts a new container.

Resources: Available Commands