A simple example showing how to build a full-stack CRUD app with Layr and TypeScript.
Install the npm dependencies with:
npm install
Make sure you have Docker installed as it is used to run the database (MongoDB) when running the app in development mode.
Execute the following command:
FRONTEND_URL=http://localhost:16577 \
BACKEND_URL=http://localhost:16578 \
MONGODB_STORE_CONNECTION_STRING=mongodb://test:test@localhost:16579/test \
npm run start
The app should then be available at http://localhost:16577.
Add the following entry in the local storage of your browser:
| Key | Value |
| ----- | --------- |
| debug | layr:* |
Add the following environment variables when starting the app:
DEBUG=layr:* DEBUG_DEPTH=10