CRUD Angular application that uses json-server
for full fake REST API and json-server-auth
for authentication and authorization.
Entities:
- Contact
- User
- Run
ng serve
for a dev server. Navigate tohttp://localhost:4200/
. The app will automatically reload if you change any of the source files.
-
Install
json-server
and run it locally:- cmd command:
npm install -g json-server
- help: https://github.com/typicode/json-server
- note: existing database is provided in "src/server/db.json"
- cmd command:
-
Install
json-server-auth
for authentication an authorization:- cmd command:
npm install -g json-server-auth
- help: https://github.com/jeremyben/json-server-auth
- info: exsting data for authentication is provided in db.json
- cmd command:
-
Go to "src/server/" and run
json-server-auth db.json
to run the server with authentication locally.
- Users:
- email: [email protected] - password: 123456
- email: [email protected] - password: 123456
- email: [email protected] - password: 123456
- Contacts:
- each user has assigned a list of contacts