Skip to content

neoskx/example-typeorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example how to use TypeORM with Electron using JavaScript

  1. clone repository
  2. run npm i
  3. run npm start
  4. enjoy!

RESTFul API

Create a User

curl -X POST \
  http://localhost:3030/apis/users \
  -H 'Content-Type: application/json' \
  -d '
  {
  "firstName": "Michael",
  "lastName": "Sui",
  "isActive": true,
  "profile": {
    "about": "About Trees and Me",
    "education": "Tree School",
    "career": "Lumberjack"
  },
  "address": {
  	"streetAddress": "4220 Network Cir",
  	"city": "Santa Clara",
  	"state": "CA",
  	"zipCode": 95054
  },
  "photos": [
    {
      "url": "me-and-trees.jpg",
      "description": "Me and Trees",
      "size": 100
    },
    {
      "url": "me-and-chakram.jpg",
      "description": "Me and Chakram",
      "size": 200
    }
  ]
}
'

Get uers

curl -X GET \
  http://localhost:3030/apis/users \
  -H 'Accept: */*'

About

Examples about TypeORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published