Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

A simple example showing how to build a full-stack CRUD app with Layr

Notifications You must be signed in to change notification settings

layrjs/crud-example-app-js-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD Example App

This Layr example app is deprecated.

A simple example showing how to build a full-stack CRUD app with Layr.

Install

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.

Usage

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.

Debugging

Client

Add the following entry in the local storage of your browser:

| Key   | Value     |
| ----- | --------- |
| debug | layr:* |

Server

Add the following environment variables when starting the app:

DEBUG=layr:* DEBUG_DEPTH=10

About

A simple example showing how to build a full-stack CRUD app with Layr

Resources

Stars

Watchers

Forks