(In progress, still working on it...)
This template is mostly made for beginners in order to start simple react project faster. It's pre-configured with a minimal set of simple tools.
I strongly recommand you explore those differents tools repo and/or website so you can learn how to use them to their best.
For the backend, you'll find a SQL branch ( MySQL ) and a NoSQL one ( MongoDB ).
You'll find all instructions and links below.
- In VSCode, install plugins Prettier - Code formatter and ESLint and configure them.
- Clone this repo, enter it.
- If you do not need a backend setup simply run
npm installfrom the root directory and skip the following two steps. - Use
git checkout mysqlORgit checkout mongodbto access the setup you need. - Run command
npm install🚨 from root directory 🚨. - Create environment files (
.env) in bothbackendandfrontend: you can copy.env.samplefiles as starters. - Run command
npm run dev🚨 from root directory 🚨. - Delete
.gitand initialize a new one (see below).
- Clean
App.jsx- including homepage route using react-router-dom
App.scssreset- Custom Sass properties & utilities
.styles/_utilities.scss- Sass is included in this project. If you want to use vscode extension like Live Sass Compiler, or don't use it at all, feel free to
npm uninstall sass. - .gitignore containing
**.css.map( in case of vscode extension )
- Sass is included in this project. If you want to use vscode extension like Live Sass Compiler, or don't use it at all, feel free to
pages,components,styles&hooksdirectories.
server.jsincluding express app, basic routes & middlewares.routesdirectory.
rm -r .git
(
chmod -R +w .might be necessary)
git init -b maingit add .git commit -m (<YOUR_MESSAGE_HERE>)
Adding locally hosted code to GitHub
git remote add origin <NEW_REMOTE_URL>
git remote -v
should show 👉
origin <NEW_REMOTE_URL> (fetch)
should show 👉<NEW_REMOTE_URL> (push)
git push -u origin main
Check this amazing tuto, on Git & Github.