Food Recipe API created with ExpressJS and PostgreSQL
-
Clone this repo
git clone https://github.com/aldobangun/food-paradise.git food-paradise
-
Go to app directory
cd food-paradise
-
Install dependencies using
npm install
-
Create new database named
food_paradise
-
Create database tables by running this command in your terminal
psql -U <db_username> -h <db_host> -p <db_port> -d <db_name> -f config/tables.sql
for example:
psql -U postgres -h localhost -p 5432 -d food_paradise -f config/tables.sql
and then enter your database password
-
Rename
.env.example
to.env
-
Open
.env
and insert your environment variables there -
Run the server using
npm run dev
-
Download or Open Postman
-
To easily test the API you can download and import this postman collection to your postman or you can get it on API Documentation below
-
Here is the API Documentation created by Postman
-
Alternatively u can use this (Deployed) API Documentation for testing the API