-
User Data
- Username
- Password
- Name
-
User API
- Register User
- Login User
- Update User
- Get User
- Logout User
-
Contact Data
- First Name
- Last Name
- Phone
-
Contact API
- Create Contact
- Update Contact
- Get Contact
- Search Contact
- Remove Contact
-
Contact Address Data
- Street
- City
- Province
- Country
- Postal Code
-
Address API
- Create Address
- Update Address
- Get Address
- List Address
- Remove Address
git clone https://github.com/mazufik/restful-api-contact-management.git
cd restful-api-contact-management
docker-compose up -d
- Create new database example db_contact
- Rename file .env.example to be .env
- Setting database user, database password and database name on file .env
npx prisma migrate dev
npm run dev
npm run test
http://127.0.0.1:5000/api-doc