This is a simple Next.js
application that searches for sports players and sports teams.
- Next.js
- React.js
- TypeScript
- Material-ui
- React-icons
- The Sports Db API
- axios
- React Custom Hooks
- Next routing
- CSS
- React Custom Hooks
- Hosting using firebase
- Create a project in firebase and activate hosting then:
firebase login
firebase init
- Make you choose the following as the public directory during the
firebase init
process
? What do you want to use as your public directory? build/out
- before running the following command make sure the
scripts
looks like this inpackage.json
"scripts": {
"dev": "next",
"build": "next build && next export",
"start": "next start"
},
npm run build
- Before running the following command move the
out
folder in thebuild
folder
firebase deploy