The Lead Management System is a simple web application tailored for businesses to manage and track their leads and their respective orders. It features a sleek Angular front-end that interacts with a SurrealDB backend, providing a seamless user experience for lead and order management.
To connect the application to the database, set up the following environment variables:
DB_URL= // Database URL
DB_NAMESPACE= // Namespace for logical data separation
DB_DATABASE= // Database name
DB_USERNAME= // Username for database authentication
DB_PASSWORD= // Password for database authentication
- Angular: Robust front-end framework for building dynamic and reactive interfaces.
- SurrealDB: Innovative NoSQL database that offers real-time capabilities.
- RxJS: Powerful library for composing asynchronous and event-based programs by using observable sequences.
- SCSS: Syntactically Awesome Style Sheets, a CSS preprocessor that adds power and elegance to the basic language.
- TypeScript: A typed superset of JavaScript that compiles to plain JavaScript and adds type safety to the development process.
- Zod - A TypeScript-first schema declaration and validation library.
The project setup and initial implementation were allocated 16 hours, ensuring a robust foundation and streamlined workflow.
The Angular application and the SurrealDB instance are hosted on DigitalOcean, providing a reliable and scalable cloud platform.
- DigitalOcean App Platform: Link to Dolphin App
- DigitalOcean Database Cluster: Link to SurrealDB instance
The choice of SurrealDB was driven by its real-time capabilities and ease of use. For more information and documentation on how to set up and use SurrealDB, visit their official website: Zod is a TypeScript-first schema declaration and validation library. It was chosen for its ease of use and its ability to provide a clear and concise way to define the shape of the data. For more information and documentation on how to set up and use Zod, visit their official website:
To get the application up and running on your local machine:
- Clone the repository.
- Set up the required environment variables.
- Run
npm install
to install dependencies. - Use
ng serve
to start the development server. - Visit
http://localhost:4200/
in your browser.