- You'll need to edit
line 5
ofindex.ts
with the path to this repo's.env
To install the project, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/readme-bot.git
- Navigate to the project directory:
cd readme-bot
- Install the dependencies:
npm install
In your terminal, navigate to a repo that you want to create a README.md for and then run the index.ts
file using ts-node
like so :
ts-node ~/GENERTIC_DIRECTORY/readme-bot/src/index.ts
(Creating an alias or function within your .zshrc or equaivalent is advised)
To run the application, use the following command:
npm start
This will start the application using node dist/src/app.js
.
To run tests for the project, use the following command:
npm test
This will run tests using Jest with specific configurations.
The project also includes several additional scripts to help maintain code quality and consistency:
- Development mode: To run the application in development mode with live reloading, use
npm run dev
. - Prettier: To format your code using Prettier, use
npm run prettier
. - Lint: To lint your code using ESLint, use
npm run lint
. - Validate: To validate your code by running both linting and TypeScript compilation, use
npm run validate
. - Format: To format your TypeScript files using Prettier, use
npm run format
. - Prepare: To set up Husky for Git hooks, use
npm run prepare
.
You'll need to create a .env
using the .env.example
file and add your OPENAI_KEY
to it
Contributions are welcome! If you'd like to contribute to this project, please feel free to submit a pull request or open an issue with your suggestions or improvements.