Skip to content

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

Notifications You must be signed in to change notification settings

topseySuave/crud-example-app-ts-webpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD Example App

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

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 and TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 73.4%
  • JavaScript 23.8%
  • HTML 2.8%