First off, thanks for taking the time to contribute! 🎉
The following is a set of guidelines for contributing to Inscript. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/harshankur/inscript.git cd inscript - Install dependencies:
npm install
- Create a branch for your feature or bugfix:
git checkout -b feature/amazing-feature
Inscript is a React + Vite app with a lightweight Express backend for file operations.
-
Start the Development Server:
npm run dev
This concurrently starts the Express server (port 3001) and the Client (port 5173).
-
Pre-commit Hooks: We use
huskyto ensure quality. Commits will automatically trigger a build of the demo documentation to keep it in sync.
src/- React frontend code.server.js- Express backend (handles file system operations).scripts/- Utility scripts (setup, sitemap generation, etc).content/- Default location for markdown posts.
The app runs in two modes:
- Real Mode: Connects to
server.jsviaaxios. Used for local development. - Demo/Readonly Mode: Uses
src/lib/api.js(mock adapter) or reads fromdata.json. Used for the live demo and static deployment.
- Push your changes to your fork.
- Open a Pull Request against the
mainbranch. - Describe your changes clearly.
- Ensure
npm run buildpasses locally.
By contributing, you agree that your contributions will be licensed under its MIT License.