Welcome to the SmartDB Project Template! This repository provides a ready-to-use template for projects implementing the SmartDB library. It contains the essential files and directories needed to kick-start your application, offering a foundation to develop with SmartDB seamlessly.
- Basic Project Structure: Includes predefined directories and files to streamline your development.
- SmartDB Integration: Prepares your project to use the SmartDB library, including environment setup and example configurations.
- Customizable Components: Easily extend and adapt the template to fit your specific use case.
For detailed documentation, please visit our Gitbook.
├── docs/
│ └── Step-by-Step.md # Step-by-step example of an
│ end-to-end implementation
├── src/
│ ├── components/ # UI components for frontend
│ ├── pages/ # Main application pages
│ ├── styles/ # SCSS or CSS files for styling
│ └── utils/ # Utility functions and helpers
├── .env.example # Example environment configuration
├── smart-db.tgz # SmartDB library package for installation
├── package.json # Project dependencies and scripts
└── README.md # Project documentation
- Click the "Use this template" button at the top of this repository.
- Name your new repository and set it to public or private.
- Clone your newly created repository to your local environment.
git clone https://github.com/<your_username>/<your_repo_name>.git
cd <your_repo_name>
Run the following command to install all required dependencies:
npm install
To start the project, you need the CBOR files of the Plutus smart contracts you plan to implement. These files are essential for deploying and interacting with on-chain scripts.
- CBOR files can be generated using the appropriate Plutus tools or your preferred Haskell development environment.
You must install the Scaffold Project to define and generate your SmartDB entities.
The Scaffold Project provides tools for:
- Creating database schemas.
- Generating TypeScript types for both MongoDB and PostgreSQL.
To get started with the Scaffold Project, follow the instructions in its official repository.
Once installed, you can use the scaffold commands to generate entities for your SmartDB project.
Explore a comprehensive step-by-step guide for building an end-to-end project with SmartDB in the file.
This example demonstrates how to:
- Implement entities using SmartDB.
- Develop basic CRUD functionalities.
- Create frontend components for marketplace operations.
- Deploy and test your application.
- Documentation: For detailed SmartDB library documentation, visit SmartDB Docs.
- Support: Reach out to us via Issues for assistance or to report bugs.
Happy coding with SmartDB! 🎉