Skip to content

Ariavm95/reddit_interview

Repository files navigation

Reddit App Interview

This project mainly started for an interview, and I tried to keep it as simnple as possible to avoid any confusion when giving the presentation. The time to complete this was few hours.

Prerequisites

Base dependencies

Note

Note that you need to create a .env file in the project directory and add API_BASE=https://api.reddit.com to make it work.

Run

  • Go to your project's root folder and run yarn.

  • run npx pod-install

  • run yarn start

  • Run the app by opening the ios and folder in xcode and Android sStudio. OR run yarn ios or yarn android to start your application!

Usage

This is just simple app to show sub reddit posts, but some functionalities are not feasible because the endpoints are not completely public.

Folder Structure

-src: This folder is the main container of all the code inside your application.

-components: Folder to store any common component that you use through your app.

-pages: Folder that contains all your application screens/features.

-App.tsx: Main component that starts your whole app.

-index.js: Entry point of your application as per React-Native standards.