npm run start # or yarn dev
Open up http://localhost:3000, and you should be ready to go!
It is suggested to use VS Code for this project.
Read more
For now, we'll use just these:
fix:
- fixes a bugfeat:
- new featurechore:
- other changes and cleanups
Example:
fix: fixed navigation bar
feat: added new sign in feature
chore: Removed all comments and print statements
If theres a specific file thats changed or a specific sub category of the project has changes, you can specify it like so:
fix(NavBar): fixed overflowing image in nav bar
feat(SignIn): Added user verification before sign In
These are just good practices and it'll be easy to revert back if some new merge is breaking the project.
Read more
Each contributing member should make a separate branch for completing their tasks. You can follow these commands to do so:
git checkout -b <branch name>
git add .
git commit -m "<Meaningful message following the convention>"
git push origin <branch name>
Then in the github repo, you can create a new pull request under pull requests tab.
To keep your branch up-to-date with the master branch, you can use the following commands:
git merge main
git push
Note: Make sure there are no changes in your branch before merging. If there are any, you'll lose the progress.
Read more
This one's quite tricky. I've setup demo.js
and demo.css
in project.
When you want to make a new page, you can create a new file in the appropriate directory and copy the contents of demo.js
and demo.css
into it.
Make sure to:
- Change path of stylesheet on the js file.
- Change the function name(Doesn't matter but just for consistency)
- Change the class name.
For a clean project structure, We'll be adding stylesheets to directories same as js files inside styles/routes/
directory.
Read more
Components won't have much difference compared to React components.Just create a folder followed by a .js
file and a .css
file with the same name(The function should also be named same as the folder name).
One additional step is to import the .css
file in the styles/root/components.css
directory.
For example:
@import "../../Components/MockNavigator/MockNavigator.css";
Note: Don't name two components with same name. Since all components are styled from same file, we don't want overlaps of style. That'll mess everything up.