To create a simple static React website template app.
Starting a React basic static website from scratch
Remembered to take all files from client folder so Heroku can find buildpack.
View the deployed website on Heroku here
- Description
- User Story
- Screenshots
- Installation
- Features
- Technology
- Contributors
- Acknowledgements
- Testing
- License
- Questions
I Want to create a template for basic setup of a static React SPA. So That I can develop static websites faster.
-
Clone the repo to your computer by clicking the green code button and copying the SSH version or clicking the blue use template button.
-
Open Gitbash in your desired folder and type
git clonethen right click to paste the string and hit enter. The repo will then be cloned to your computer. -
Navigate to the repo folder and type
code .into gitbash to open the repo in VS Code. -
Open a new Terminal in VS Code and type
npm installto install the repo dependencies. -
Finally, type
npm startinto the terminal and it will start the dev server at localhost:3000.
Note: To make a static React site work on Heroku you need to take all the files out of the folder name you specified in the react-create-app. E.g. if you did create-react-app client, React will create the app in a folder called client, take all the files out of the client folder so they are now all at root level and then delete the empty client folder.
- 3 pages with navigation and footer setup
- Fontawesome set up for icons
- React
- Bootstrap
- Fontawesome
You can also contribute by opening a pull request or submitting an issue.
Important: If you get a something is running on port 3000 error, , type npx kill-port 3000 into your VS Code terminal and hit enter, will kill port 3000 and let you run the app.
No tests for this project
MIT
Copyright 2022 Zachary Hobba
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Find me on Github at HobbaZ
If this has helped you with your web development, consider buying me a Coffee (only costs $3) at zachobba
Email me at zachobba@gmail.com
