No.1 Mentoring app, All the help you need in one place
First, run:
npm installThe activate husky
npm run prepareThen run:
npm run dev- Hanken Grotesk ---> usage "font-hanken"
- Gladiora ---> usage "font-gladiora"
- Inter ---> usage "font-Inter"
colors are arranged based on the Figma Style Guide
Color Code
NeutalBase:"#020202",
Neutra50: "#2c2c2c",
Neutra40: "#565656",
Neutra30: "#808080",
Neutra20: "#ababab",
Neutra10: "#cccccc",
Accent1: "#008080",
Accent2: "#00cccc",
Accent3: "#00ffff",
Accent4: "#7fffff",
Accent5: "#b2ffff",
Accent6: "#e5ffff",
SuccessBase:"#0f973d",
Success10: "#cfead8",
Success20: "#afdcbe",
Success30: "#87cb93",
Success40: "#5fba7e",
Success50: "#37a85d",
Success60: "#0d7e33",
Success70: "#0a6529",
Success80: "#084c1f",
Success100: "#031e0c",
ErrorBase: "#d42620",
Error10: "#f6d4d2",
Error20: "#f1b7b5",
Error30: "#e9928f",
Error40: "#e26e6a",
Error50: "#db4a45",
Error60: "#b1201b",
Error70: "#8d1915",
Error80: "#6a1310",
Error90: "#450d0b",
Error100: "#2a0806",for color.
<p className="text-SuccessBase">Example</p>for background
<p className="bg-SuccessBase">Example</p>for border
<p className="border-SuccessBase">Example</p>you get the point
Open http://localhost:3000 with your browser to see the result.
MentoMe is open to contributions, but I recommend creating an issue or replying in a comment to let us know what you are working on first that way we don't overwrite each other.
-
Pull origin
git pull origin dev -
Create a new branch for the task you were assigned to, eg
TicketNumber/(Feat/Bug/Fix/Chore)/Ticket-title:git checkout -b MME-001/Feat/Dashboard -
After making changes, format codes with
npm run format -
Then stage your files
git add . -
Commit your changes with a descriptive commit message :
git commit -m "your commit message". -
IMPORTANT: To make sure there are no conflicts, run
git pull origin dev. -
Push changes to your new branch, run
git push -u origin MME-001/Feat/Dashboard. -
Create a pull request to the
devbranch notmain. -
Ensure to describe your pull request.
-
If you've added code that should be tested, add some test examples.
Under no circumstances should you merge a pull requests on a specific branch to the dev or main branch
| Type | Description | |
|---|---|---|
| feat | Features | A new feature |
| fix | Bug Fixes | A bug fix |
| docs | Documentation | Documentation only changes |
| style | Styles | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) |
| refactor | Code Refactoring | A code change that neither fixes a bug nor adds a feature |
| perf | Performance Improvements | A code change that improves performance |
| test | Tests | Adding missing tests or correcting existing tests |
| build | Builds | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) |
| ci | Continuous Integrations | Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) |
| chore | Chores | Other changes that don't modify , frontend or test files |
| revert | Reverts | Reverts a previous commit |
Sample Commit Messages
chore: Updated README file:=choreis used because the commit didn't make any changes to the , frontend or test folders in any way.feat: Added plugin info endpoints:=featis used here because the feature was non-existent before the commit.
A separate folder called api is created withing the app folder here, to make an API Call:
- create a new folder within the
app/apidir - within the created folder create a
route.tsfile - within the
route.tsfile you make either a GET or POST Request
❗❗Do not create any custom http calls inside a components. Whatever calls that need to be processed by the server should be called within the
route.tsfile.