This application is built with the following technologies:
- Frontend: React.js, Semantic UI, styled-components
- Backend: Express.js, Node.js
- Build Tool: Webpack
This project is optimized for development and production. It features a modern JavaScript setup with Webpack for bundling and Babel for JavaScript compilation.
To check your current Node.js and npm versions:
node -v && npm -v
# Example output:
# v20.16.0
# 10.8.1
To install and use the correct Node.js version:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm install 20
For more details on the project and the lessons learned, please refer to My Portfolio.
To stop any running Node.js processes:
pkill -f node
-
Clone the Repository:
git clone {{repository-url}} cd {{repository-directory}}
-
Install Dependencies:
npm install
In the project directory, you can run:
Example Output:
webpack-dev-server v5.0.4 ready in 107 ms
➜ Local: http://localhost:5000/
➜ Network: use --host to expose
➜ press h + enter to show help
Runs the app in development mode. Open http://localhost:5000 to view it in your browser. The page will reload if you make edits, and lint errors will be displayed in the console.
Builds the app for production to the build
folder. This bundles React in production mode and optimizes the build for the best performance. The build is minified, and the filenames include hashes. Your app is ready to be deployed.
Formats the code according to Prettier configuration.
Cleans the npm cache and builds the project. Use this to ensure a fresh start for builds.
Before pushing changes to the repository, clean up the code and update dependencies:
npm run prettier
rm -rf package-lock.json
rm -rf node_modules
git add .
git commit -m "Update README"
git push
or
npm run prettier && rm -rf package-lock.json && rm -rf node_modules && git add . && git commit -m "Update README" && git push
To update dependencies and handle known issues:
rm -rf package-lock.json
rm -rf node_modules
npm install -g npm-check-updates
ncu -u
npm install
npm ls ajv
npm install --save-dev ajv@^8
or
rm -rf package-lock.json && rm -rf node_modules && npm install -g npm-check-updates && ncu -u && npm install && npm ls ajv && npm install --save-dev ajv@^8
-
Check Your Current Branch: List all branches and check your current branch:
git branch -a
If you need to create a new branch:
git checkout -b {{name-of-your-branch}}
-
Add and Commit Your Changes: Add and commit your work:
git add . git commit -m "{{explain your changes}}" git push
-
Fetch and Pull Updates: Fetch and pull all changes from remote branches:
git fetch --all git pull --all
-
Merge or Rebase: Merge changes from the main branch to your branch:
git merge main
Alternatively, you can rebase:
git rebase main
Important: Resolve any conflicts that arise, accept the incoming changes as needed, and commit the resolved changes:
git add . git commit -m "Merged main branch into current branch" git push
or
git add . && git commit -m "Merged main branch into current branch" && git push
Fleurimond 2024
For details on how to contribute, please refer to CONTRIBUTING.md.
The application provides real-time fantasy football news and player projections, utilizing React for the frontend and Express for the backend. It interacts with the Sportsdata.io API to fetch data, which is then displayed through a user-friendly interface with Semantic UI and styled-components.
.. For any questions or feedback, please reach out to Fleur..