About | Technologies | Requirements | Starting | Author |
This project was generated with Angular CLI version 10.1.0.
This project was developed using the following technologies:
Before starting 🏁, you need to have Git and ANGULAR installed.
# 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>
# 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.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.