Skip to content

FRanggaY/prolog-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Install SWI Prolog https://www.swi-prolog.org/download/stable

Static API

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)

Dynamic API

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

Web Prolog for frontend

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}

About

Playground for final task using prolog

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •