2.1.8 • Published 4 years ago

@treinaweb/tw-dev-server v2.1.8

Weekly downloads
28
License
ISC
Repository
github
Last release
4 years ago

TW Dev Server

https://treinaweb.com.br

A powerful and lightweight server to be used for testing, local development and learning.

Use it as static file server and CRUD server. It has live reload and browser sync too!

Installation

npm i -g @treinaweb/tw-dev-server

This will install tw-dev-server globally so that it may be run from the command line.

Usage

tw-dev-server

Now you can visit http://localhost:3002 to view your server

GUI

You can make requests on https://treinaweb.github.io/tw-dev-server

Options

NameDescriptionExample
--portport to use (defaults to 3002)--port=4200
--tempdata will be erased when stop the server (defaults to false)--temp
--versionshows current tool version (defaults to false)--version
--synclive reload and browser sync (defaults to false)--sync
--livelive reload (no browser sync) (defaults to false)--live

CRUD Operations

CRUD operations are available under "/api/".

MethodURLDescription
GEThttp://localhost:3002/api/:project-name/:object-namereturns all :object-name from storage
GEThttp://localhost:3002/api/:project-name/:object-name?id=:idreturns the :object-name with the :id ID
POSThttp://localhost:3002/api/:project-name/:object-namesaves some data on :object-name
PUThttp://localhost:3002/api/:project-name/:object-name?id=:idupdates the :object-name with the :id ID
DELETEhttp://localhost:3002/api/:project-name/:object-name?id=:iderases the :object-name with the :id ID
DELETEhttp://localhost:3002/api/:project-name/:object-name?id=allerases all :object-name from :project-name

URL Examples:

2.1.8

4 years ago

2.1.6

4 years ago

2.1.5

4 years ago

2.1.7

4 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.22

4 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago