Texpress
IntroductionGetting StartedPrerequisitesInstallationUsageContributing
Docs
Extras

Getting Started With Texpress

Texpress is a project setup for using ExpressJS with Typescript. It includes a monorepo architecture and uses turborepo for managing the codebase.

Prerequisites

  • Node.js v17 or later
  • Yarn package manager
  • RabbitMQ (For Queue Management)
  • Redis (For Caching and Sessions)
  • PostgreSQL (For Database)

Installation

To get started with Texpress, follow these steps:

  1. Clone the repository:
git clone https://github.com/sonish777/t-express.git
  1. Install the dependencies:
cd texpress
yarn install
  1. Create configuration file 'default.json' and copy the contents from 'default.example.json' to the new file (inside config directory).

Texpress uses config package for managing configurations

  1. Create env file '.env' and copy the contents from '.env.example' to the new file in the project root directory.
  1. Run migrations

Note: Create a database named texpress (or the database name you have in previously created config file) in PostgreSQL.

yarn migration:run
  1. Run Seeder
yarn seeder:run
  1. Compile the Javascript files for the CMS application
yarn build:js

Note: Use yarn watch:js to compile in watch mode.

  1. Start the development server
yarn dev

Usage

Once you have started the development server, you can access the built-in apps at the following URLs:

You can customize the apps and add your own functionality by editing the code in the 'apps' and 'packages' directory.

Contributing

If you find a bug or have a feature request, please create an issue on the GitHub repository.

To contribute to Texpress, follow these steps:

  1. Fork the repository.

  2. Create a new branch with your changes:

  3. Commit your changes:

  4. Push your changes to your fork:

  5. Open a pull request on the main repository.