"Catch of the Day" is a real-time app for a seafood market where price and quantity available are variable and can change at a moment's notice. Contains a menu of available and sold out fish, an order form, and an inventory management area where authorized users can immediately update product details.
- React.js
- create-react-app for Webpack Tooling
- Firebase - real time web socket data
- prop-types for type hinting
- react-transition-group for animations
You can run the project locally by downloading or cloning the GitHub repo. Installation requires NPM.
git clone git@github.com:AlinChindea/react-practice.git
cd catch-of-the-day
npm install
npm start
to run the dev environment ornpm run watch
to run the dev server and watch for style changes concurrently
npm run build
to build the app for production
Netlify has a free plan and it's super easy to set up. There are several way of deploying. The below just indicates how to do it from the command line.
- Install their global CLI
npm i netlify-cli -g
- Add a file in your build directory
_redirects
and paste in there/* /index.html 200
- run
netlify deploy
(if you haven't signed in yet, it will pop open a window, click ok and then pop back in the terminal, there is no password)
- choose to create a new site (you can skip giving it a name at this point, you can do it from the Netlify panel)
- when prompted for a
path to deploy
typebuild
- this will test deploy it and issue you a temporarily link where you can test your app
- if all is fine run
netlify deploy --prod
=> issues you a permanent link
To make sure that GitHub authentication works you need to add your new netlify domain to Firebase (in the console, authentication menu - sign-in method, add domain).