Install SWI Prolog https://www.swi-prolog.org/download/stable
This for static data so when restart server, data will be reset
change directory to api-static
cd api-static
Install package
npm install
Serve with hard reload
npm run start
Opsionally, you can use nodemon by
npm run start:nodemon
This api is include:
- Store
- Store Review
- Store Recommendations (TBC)
This live is connected to MYSQL Database so be sure to prepare that mysql connection already exists
change directory to api-dynamic
cd api-dynamic
Install package
npm install
Serve with hard reload
npm run start
Opsionally, you can use nodemon by
npm run start:nodemon
Migrate database table.sql to mysql
This api is include:
-
Store
-
Store Review
-
Store Recommendations
-
Postman support import
Open SWI Prolog
consult file index.pl
Landing Page
http://localhost:8000
Add Store
http://localhost:8000/add_store
Specific Store by Id
http://localhost:8000/store?id={id}