This repository contains well-organized notes and problem solutions from the Namaste DSA course. Powered by Docsify, this documentation is lightweight, easy to navigate, and runs entirely in the browser.
You can run this project locally using Docsify for the documentation, or use custom scripts to execute individual JavaScript/TypeScript code files.
- Node.js (v14 or higher recommended)
- npm (comes bundled with Node.js)
git clone https://github.com/n4ryn/namaste-dsa.git
cd namaste-dsa
If you want to test a specific .js
or .ts
file locally:
-
Install project dependencies:
npm install
-
Run a file:
-
For JavaScript files:
npm run js ./<path-to-file>
-
For TypeScript files:
npm run ts ./<path-to-file>
Example:
npm run ts ./01_warm_up/01_programming_101.ts npm run js ./03_arrays_lvl_0/01_remove_duplicates.js
-
To preview the course notes and documentation in your browser:
-
Install Docsify CLI globally (if not already installed):
npm install -g docsify-cli
-
Serve the Docsify site:
docsify serve
-
Open your browser and visit:
Contributions are welcome! If you'd like to add new notes, fix typos, or improve formatting:
- Fork the repo
- Create a branch (
git checkout -b feature-name
) - Commit your changes
- Push to your fork
- Open a Pull Request
Please follow the existing structure and naming conventions in folders and filenames.
- JavaScript
- Markdown
- Docsify
- GitHub Pages
For suggestions or issues, feel free to:
- Open an issue on GitHub Issues