[Second Capstone project] is a Html , Css & javascript based project
1- HTML. 2- CSS. 3- Javascript. 4- webpack.
Client
- Webpack used
- APIs used
- Live update like and comments
To get a local copy up and running, follow these steps.
- Web browser
- Code editor.
- git-smc.
Clone this repository to your desired folder:
Run this command:
cd my-project
git clone [email protected]:ankitt26/Second-Capstone-project.git
Install this project with:
Example command:
cd my-project
npm install
--->
To run the project, execute the following command:
cd my-project
npm run start
To fetch movies and show data use this API π
`https://api.tvmaze.com/shows`
To fetch Likes and comments data use this API π
`https://us-central1-involvement-api.cloudfunctions.net/capstoneApi/`
/apps/
Allowed actions:
- POST to create a new app
Parameters:
- No parameters required
Return value: unique identifier for the app
abc234
β‘οΈ /apps/:app_id/likes/
Allowed actions:
- POST to create a new like for the given item
- GET to get a list of items with its respective likes
Parameters for POST action:
URL parameters:
- app_id: unique identifier of the app (mandatory)
Request body: a JSON object with the key: item_id
(mandatory)
Example of request body:
{
"item_id": "item1"
}
URL example: /apps/abc234/likes
Return value for POST action: 201 status (created)
Parameters for GET action:
URL parameters:
- app_id: unique identifier of the app (mandatory)
URL example: /apps/abc234/likes
Return value for GET action: array of objects
[
{
"likes": 5,
"item_id": "item1"
}
]
β‘οΈ /apps/:app_id/comments
Allowed actions:
- POST to create a new comment for the given item
- GET to get a list of items with its respective comments
Parameters for POST action:
URL parameters:
- app_id: unique identifier of the app (mandatory)
Request body: a JSON object with the following keys: item_id
, username
, comment
(mandatory)
Example of request body:
{
"item_id": "item1",
"username": "Jane",
"comment": "Hello"
}
URL example: /apps/abc234/comments
Return value for POST action: 201 status (created)
Parameters for GET action:
URL parameters:
- app_id: unique identifier of the app (mandatory)
Query parameters:
- item_id: unique identifier of the item (mandatory)
URL example: /apps/abc234/comments?item_id=item1
Return value for GET action: array of objects
[
{
"comment": "This is nice!",
"creation_date": "2021-01-10",
"username": "John"
},
{
"comment": "Great content!",
"creation_date": "2021-02-10",
"username": "Jane"
}
]
Jestπ§ͺ
$ npm run test
$ npm run build
$ npm start
π€ Ankit
π€ Kelvin
- GitHub: @Unleashedicon
- Twitter: @KipkuruiKelvin3
- LinkedIn: Kelvin-Kipkurui
- reservation popup
- Display TV shows
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project give it a star.
I would like to thanks microverse .
This project is MIT licensed.