Skip to content

This project was generated with Angular CLI version 10.1.0.

Notifications You must be signed in to change notification settings

chagasleandro/Angular-crud

Repository files navigation

AngularCrud

About   |   Technologies   |   Requirements   |   Starting   |   Author  |  


PRs welcome! License

🎯 About

This project was generated with Angular CLI version 10.1.0.

🚀 Technologies

This project was developed using the following technologies:

ANGULAR HTML SCSS TypeScrit

✅ Requirements

Before starting 🏁, you need to have Git and ANGULAR installed.

🏁 Starting

# cloning this repository
$ git clone https://github.com/chagasleandro/Angular-crud.git
# Acces
$ cd Angular-crud
# Install dependencies
$ npm install
# Run the project
$ ng serve -o
# The server will initialize in the <https://localhost:4200>

Development server

# Acces
$ cd backend
# Install json-server

Install 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 in back-end folder.

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.

tela 1

tela 2

tela 3

tela 4

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

This project was generated with Angular CLI version 10.1.0.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published