Dad jokes Generator is an application for generating and serving jokes. Layout is made up of several simple components such as a header, a search engine, a container for displaying jokes and reusable buttons.
The application provides several basic functionalities, these are:
- random generation of jokes
- generation of jokes according to words typed into the search engine
- generation of jokes according to categories
For the project, I used an external Joke API that provides data with search parameters to specific jokes due to categories and words occurring in jokes.
Tech | Description |
---|---|
React | Library for building user interfaces |
React Native | Creating native apps for Android and iOS using React |
Expo | Framework and a platform for universal React applications |
-
Clone a project:
git clone
-
Install dependencies:
npm install
-
Install Expo CLI:
npm install --global expo-cli
-
Run app in development mode using Expo CLI:
npm start
-
On your Android device, press "Scan QR Code" on the "Projects" tab of the Expo Go app and scan the QR code you see in the terminal or in Expo Dev Tools.
Command | Description |
---|---|
npm run start |
Run app in development mode |
npm run android |
Open app on a connected Android device or emulator |
npm run ios |
Open app in the iOS Simulator |
npm run web |
Open app on web |
npm run eject |
Eject CRA |