Savio Fernando 726d2fff84 Update 'README.md' | 1 år sedan | |
---|---|---|
.bundle | 1 år sedan | |
.github | 1 år sedan | |
__tests__ | 1 år sedan | |
android | 1 år sedan | |
ios | 1 år sedan | |
src | 1 år sedan | |
.eslintrc.js | 1 år sedan | |
.gitignore | 1 år sedan | |
.prettierrc.js | 1 år sedan | |
.watchmanconfig | 1 år sedan | |
App.jsx | 1 år sedan | |
Gemfile | 1 år sedan | |
README.md | 1 år sedan | |
SETUP.md | 1 år sedan | |
app.json | 1 år sedan | |
babel.config.js | 1 år sedan | |
index.js | 1 år sedan | |
jest.config.js | 1 år sedan | |
metro.config.js | 1 år sedan | |
package-lock.json | 1 år sedan | |
package.json | 1 år sedan | |
react-native.config.js | 1 år sedan | |
tsconfig.json | 1 år sedan | |
yarn.lock | 1 år sedan |
Clone Project from GOGS
git clone gogs@git.fafadiatech.com:savio/Newscout_Mobile.git
cd Newscout_Mobile
bash
npx react-native doctor
NOTE: Please rectify the issues shown by RN Doctor before running the project.Install NPM Packages
npm install
For Emulator
Run Project with
npx react-native start
TBD
NOTE: Please refer the package.json
file for the versions used for the packages.
src
folder.api
: Contain URL Constants and API Entity Functionsassets
: Contain Static Files like images and fontscomponents
: Contain Resuable Components for the Screens. The folder follows Atomic Development Project Structure.constants
: Contain Colors, Fonts and Responsive Scaling Constantsutils
: Contain Utility Functionscontext
: Contain App Context Files like Theme and Auth. This helps us aggregate the context data accessible from a single point.navigation
: Contain Logic to navigate across the screens.screens
: Contains All Pages for the App. Each File represents a Page for the Application. Pages are segregated by their features / functionPlease refer the data
for API Functions.
BASE URL : http://www.newscout.in
GET
/trending
name type data type description None required object (JSON or YAML) N/A
200
Response (application/json){
"header": {
"status": "1"
},
"body": {
"results": [
{
"id": 2515514,
"articles": [
{
"id": 2075649,
"title": "Democrat Gabe Amo Becomes Rhode Island's First Black Candidate Elected To Congress",
"source": "huffpost.com",
"category": "Uncategorised",
"hash_tags": [
"gabe amo",
"congress",
"rhode island"
],
"source_url": "https://www.huffpost.com/entry/rhode-island-gabe-amo-elected_n_654ae415e4b0e63c9dc1646b",
"cover_image": "https://img.huffingtonpost.com/asset/654ae418220000cc11cef254.jpeg?ops=1200_630",
"blurb": "Democrat Gabe Amo defeated Republican Gerry Leonard to win Rhode Island’s 1st Congressional District seat Tuesday, becoming the state’s first Black candidate elected to Congress....",
"published_on": "2023-11-08T01:29:50Z",
"article_media": [],
"category_id": 123,
"domain": "newscout",
"active": true,
"source_id": 51,
"article_format": null,
"author": "",
"slug": "democrat-gabe-amo-becomes-rhode-islands-first-black-candidate-elected-to-congress-2075649",
"root_category": "Uncategorised",
"root_category_id": 123
},
{
"id": 2075495,
"title": "Boat captain found guilty for 2019 California boat tragedy that killed 34",
"source": "foxnews.com",
"category": "Uncategorised",
"hash_tags": [],
"source_url": "https://www.foxnews.com/us/boat-captain-found-guilty-2019-california-boat-tragedy-killed-34",
"cover_image": "https://static.foxnews.com/foxnews.com/content/uploads/2023/11/captain-boat-2-1.jpg",
"blurb": "Fox News Flash top headlines are here. Check out whats clicking on Foxnews.com.",
"published_on": "2023-11-07T16:39:50Z",
"article_media": [],
"category_id": 123,
"domain": "newscout",
"active": true,
"source_id": 24,
"article_format": null,
"author": "",
"slug": "boat-captain-found-guilty-for-2019-california-boat-tragedy-that-killed-34-2075495",
"root_category": "Uncategorised",
"root_category_id": 123
},
{
"id": 2075283,
"title": "Captain found guilty of ‘seaman’s manslaughter’ in boat fire that killed 34 off California coast",
"source": "washingtontimes.com",
"category": "China",
"hash_tags": [
"b jerry boylan",
"b law crime",
"b los angeles"
],
"source_url": "https://www.washingtontimes.com/news/2023/nov/6/jerry-boylan-captain-guilty-seamans-manslaughter-b/?utm_source=RSS_Feed&utm_medium=RSS",
"cover_image": "https://twt-thumbs.washtimes.com/media/image/2023/11/06/California_Boat_Fire_63868--6d532_c0-145-2930-1854_s1200x700.jpg?a8da2264f2a94c98eb4f636ca322450b5b36eb33",
"blurb": "LOS ANGELES — A scuba dive boat captain was convicted Monday of criminal negligence in the deaths of 34 people killed in a fire aboard the vessel in 2019, the deadliest maritime disaster in recent U.S. history.....",
"published_on": "2023-11-07T04:44:57.499413Z",
"article_media": [],
"category_id": 134,
"domain": "newscout",
"active": true,
"source_id": 16,
"article_format": null,
"author": "",
"slug": "captain-found-guilty-of-seamans-manslaughter-in-boat-fire-that-killed-34-off-california-coast-2075283",
"root_category": "Regional Updates",
"root_category_id": 132
}
],
"domain": "newscout",
"created_at": "2023-11-08T09:31:51.661510Z",
"modified_at": "2023-11-08T09:31:51.697270Z",
"active": true,
"score": 0.0
}
]
}
}
GET
/article/search/
name type data type description category optional string N/A page optional number N/A
200
Response (application/json){
"header": {
"status": "1"
},
"body": {
"results": [
{
"id": 2075412,
"title": "Jack Smith Opposes Trump’s Efforts To Get Federal Election Interference Case Tossed Out",
"source": "huffpost.com",
"category": "Tech",
"hash_tags": [
"jack smith",
"donald trump"
],
"source_url": "https://www.huffpost.com/entry/jack-smith-trump-jan-6-case_n_654a14f0e4b0e63c9dc0cd3b",
"cover_image": "https://img.huffingtonpost.com/asset/654a236424000055005533f2.jpeg?cache=OJF7V5KFoP&ops=1200_630",
"blurb": "Breaking News Reporter, HuffPost\nSpecial counsel Jack Smith’s team on Monday forcefully rejected former President Donald Trump’s efforts to get his federal election interference case thrown out in a series of court filings Monday.",
"published_on": "2023-11-07T13:11:32Z",
"article_media": [],
"category_id": 127,
"domain": "newscout",
"active": true,
"source_id": 51,
"article_format": null,
"author": "",
"slug": "jack-smith-opposes-trumps-efforts-to-get-federal-election-interference-case-tossed-out-2075412",
"root_category": "Sector Updates",
"root_category_id": 124,
"article_score": 66.95
},
{
"id": 2075374,
"title": "Axis Bank inks an MoU with IRMA to promote financial inclusion and literacy",
"source": "livemint.com",
"category": "Banking",
"hash_tags": [
"axis bank",
"all you need to know",
"mintgenie"
],
"source_url": "https://www.livemint.com/money/personal-finance/axis-bank-inks-an-mou-with-irma-to-promote-financial-inclusion-and-literacy-in-india-details-here-11699352032103.html",
"cover_image": "https://www.livemint.com/lm-img/img/2023/11/07/1600x900/2-0-470760800-axis-bank-0_1680765658586_1699352302423.JPG",
"blurb": "\nJust a few days ahead of “National Education Day\" observed on November 11 every year, Axis Bank and the Institute of Rural Management Anand (IRMA) have entered into a Memorandum of Understanding (MoU) on November 06, 2023. The idea behind entering the MoU is to establish the Axis Bank Chair for financial inclusion at IRMA. ....",
"published_on": "2023-11-07T11:28:03Z",
"article_media": [],
"category_id": 125,
"domain": "newscout",
"active": true,
"source_id": 49,
"article_format": null,
"author": "",
"slug": "axis-bank-inks-an-mou-with-irma-to-promote-financial-inclusion-and-literacy-2075374",
"root_category": "Sector Updates",
"root_category_id": 124,
"article_score": 78.6
},
{
"id": 2075369,
"title": "Amazon Sale 2023: Want new display? Get up to 69% off on monitors under ₹10000",
"source": "livemint.com",
"category": "Tech",
"hash_tags": [],
"source_url": "https://www.livemint.com/technology/gadgets/amazon-sale-2023-want-new-display-get-up-to-69-off-on-monitors-under-rs-10000-11699334735112.html",
"cover_image": "https://www.livemint.com/lm-img/img/2023/11/07/1600x900/amazon_sale_1699335717698_1699343218352.jpg",
"blurb": "As the Amazon Sale of 2023 draws to a close, the opportunity to enhance your workspace with a brand-new monitor under ₹ 10,000 couldn't be more enticing. ...",
"published_on": "2023-11-07T10:50:06Z",
"article_media": [],
"category_id": 127,
"domain": "newscout",
"active": true,
"source_id": 49,
"article_format": null,
"author": "",
"slug": "amazon-sale-2023-want-new-display-get-up-to-69-off-on-monitors-under-10000-2075369",
"root_category": "Sector Updates",
"root_category_id": 124,
"article_score": 66.95
}
],
"filters": {
"category": [
{
"key": "Automotive Industry",
"doc_count": 1052
},
{
"key": "Banking",
"doc_count": 13785
}
],
"source": [
{
"key": "business-standard.com",
"doc_count": 11865
},
{
"key": "economictimes.indiatimes.com",
"doc_count": 3889
}
],
"hash_tags": [
{
"key": "amazon",
"doc_count": 2249
},
{
"key": "apple",
"doc_count": 3698
}
]
},
"count": 167432,
"total_pages": 8372,
"current_page": 1,
"next": "http://www.newscout.in/api/v1/article/search/?category=Sector+Updates&domain=newscout&page=2",
"previous": null
}
}
GET
/article/search/
name type data type description category optional string N/A page optional number N/A q optional string N/A
200
Response (application/json){
"header": {
"status": "1"
},
"body": {
"results": [
{
"id": 2075766,
"title": "India, US to review bilateral ties, key global issues at '2+2' dialogue",
"source": "newindianexpress.com",
"category": "India",
"hash_tags": [
"usa",
"indo us ties",
"india",
"2+2 dialogue"
],
"source_url": "https://www.newindianexpress.com/nation/2023/nov/08/india-us-to-review-bilateral-ties-key-global-issues-at-22-dialogue-2631234.html",
"cover_image": "https://images.newindianexpress.com/uploads/user/imagelibrary/2023/11/8/w600X390/India_US_Two_Plus_Two.jpg",
"blurb": "NEW DELHI: India and <em>the</em> US will carry out a comprehensive review of their fast-expanding strategic ties at <em>the</em> next edition of <em>the</em> here on Friday.\nUS Secretary of State Antony Blinken and Defence Secretary Lloyd Austin are visiting India for <em>the</em> dialogue.",
"published_on": "2023-11-08T10:04:10.930895Z",
"article_media": [],
"category_id": 160,
"domain": "newscout",
"active": true,
"source_id": 54,
"article_format": null,
"author": "",
"slug": "india-us-to-review-bilateral-ties-key-global-issues-at-22-dialogue-2075766",
"root_category": "Regional Updates",
"root_category_id": 132,
"article_score": 70.28
}
],
"filters": {
"category": [
{
"key": "Asia",
"doc_count": 98997
},
{
"key": "China",
"doc_count": 34794
}
],
"source": [
{
"key": "business-standard.com",
"doc_count": 166957
},
{
"key": "financialexpress.com",
"doc_count": 71065
}
],
"hash_tags": [
{
"key": "",
"doc_count": 4368
},
{
"key": "apple",
"doc_count": 4069
}
]
},
"count": 1418743,
"total_pages": 70938,
"current_page": 1,
"next": "http://www.newscout.in/api/v1/article/search/?domain=newscout&page=2&q=the",
"previous": null
}
}
LandingPageNavigator.jsx
: Contains Initial Landing Page and Authentication Workflow Page.HomePageNavigator.jsx
: Provides Navigation for the Post Login Workflow for UserRecommended: When using VSCode for development, Please use these VSCode Extensions
Example: News Detail Page