Skip to content

GleytonLima/angular-crud

Repository files navigation

AngularCrud

This project was generated with Angular CLI version 8.1.1.

Development server

Install json-server (https://github.com/typicode/json-server):

npm install -g json-server

Create a db.json file with some data

{  
	"itens":[  
	{  
		"id":1,
		"nome":"Item 1"
	},
	{  
		"id":2,
		"nome":"Item 2"
	}
	]
}

Start JSON Server

json-server --watch db.json

Now if you go to http://localhost:3000/itens/1, you'll get

{  
    "id":1,
    "nome":"Item 1"
}

Then run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

About

Um CRUD básico com Angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published