Welcome to Rahat, an open-source blockchain-based platform backend! This README provides guidelines to set up and use the Rahat backend project.
Before you begin, ensure you have the following installed:
- Node.js and npm (or yarn)
- PostgreSQL (or your preferred database)
Clone this repository:
git clone https://github.com/rahataid/rahat-backend.git
```
## Installation
### Install Dependencies
```bash
yarn install
Create a .env
file in the root directory and add:
DATABASE_URL=your_database_url
PORT=your_port_number
Seed your database with initial data:
ts-node prisma/seed.ts
Explain how to use your project. Provide examples, code snippets, or screenshots to demonstrate how users can interact with it. Cover common use cases and potential scenarios.
Run in development mode:
yarn dev
Build and start the server for production:
yarn build
yarn start
Husky enforces code quality checks before commits.
Detailed overview of the folder structure:
src/
modules/
users/
- ...
entities/
user.entity.ts
utils/
utility1.ts
utility2.ts
app.module.ts
main.ts
prisma/
schema.prisma
seed.ts
Organized for clear separation of concerns.
Contributions are welcome! To contribute:
- Fork this repository.
- Create a new branch:
git checkout -b feature/your-feature-name
. - Make your changes and commit:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature/your-feature-name
. - Create a pull request.
Specify the project's license.
For questions or collaboration: team@rahat.io