In-memory test datasource for development, testing, and demonstrations
The Dummy datasource is an in-memory test datasource for testing and learning Forest back-end functionality only. It is not intended for production use.
This datasource is strictly for development, testing, and learning purposes. All data is stored in memory and resets on application restart.
Basic usage
import { createAgent } from '@forestadmin/agent';import { createDummyDataSource } from '@forestadmin/datasource-dummy';const agent = createAgent(options);agent.addDataSource(createDummyDataSource());
Sample data
The dummy datasource provides 4 pre-configured collections with realistic relationships:
Collections
persons (Authors)
id (Number, Primary Key)
firstName (String)
lastName (String)
Sample: Edward O. Thorp, Isaac Asimov, Roberto Saviano, Stephen Kingbooks
id (Number, Primary Key)
title (String)
publication (Date)
authorId (Number)
Sample: Beat the dealer, Foundation, Gomorrah, Misery, Christine, Running Manlibraries