Challenge #3 for the Florida Hacks with IBM project
Member 1: Vince Duarte
Member 2: Jason Lusk
Member 3: Aadesh Thirukonda
Member 4: Kevin Tang
-
Node.js
node -v
-
Node Package Manager
npm -v
-
Create the application
npx create-react-app sustainable-fisheries
NOTE: make sure npm is not installed globally in root directory or there will be an error with node_modules. There should be a relative local node_modules with the app.
if you haven't already,
cd sustainable-fisheries && npm install
-
Install MUI Elements
-
yarn add @material-ui/icons
-
yarn add @material-ui/core
-
yarn add fontsource-roboto
-
Install Routing
npm install [email protected]
- Start the app locally
cd sustainable-fisheries && yarn start
Setup the server configuration
npm install mongodb express cors dotenv
Update the config.env file with your credentials:
Replace <username>
and <password>
If there is a bug with the server TextEncoder, add this line to node_modules/whatwg-url/dist/encoding.js
const {TextDecoder, TextEncoder} = require("util");
Git Authentication VS Code
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
git remote set-url origin https://<TOKEN>@github.com/<user_name>/<repo_name>.git
Install dependencies for the Backend server
cd sustainable-fisheries/server
npm i bcryptjs body-parser concurrently express is-empty jsonwebtoken mongoose passport passport-jwt validator
Install the nodemon module to run the server
sudo npm install -g nodemon
nodemon server
Install Postman for API testing https://www.postman.com/downloads/