Before you start your json-server you have to add routes.json
file:
{
"/api/*/_search?*=:searchstring": "/$1/?$2_like=:searchstring",
"/api/*": "/$1"
}
After you added routes.json
run this command to run json-server:
json-server db.json --routes routes.json
Clone this repo:
git clone https://github.com/FxOmar/Football-Matches.git
Go to nextJS
folder and run these commands:
# to install the dependencies
yarn install
# run nextJs server
yarn dev
Client: NextJs, Typescript, MUI
Server: Node, json-server