This project requires Node.js. To check if your device has node.js installed, open your terminal and type:
node -v-
If it is displaying any version, then it is installed!
-
Otherwise, install Node.js
For this project, we are using yarn as our package manager. Inside your terminal, type:
npm i -g yarnGo to the folder where you want to clone this project, and type the following in your terminal:
git clone https://github.com/CSC4350-TR/GitHubGo.gitGo to your project folder and write the following in your terminal:
yarn- This will install all the dependencies that are in the package.json file
Open your project folder and type this in your terminal:
yarn startThe website will run on localhost:3000
To deploy the lastest changes to the production website, run:
yarn run deploy- Always run the following commands whenever you start working on the project or change a git branch to get fresh changes
git pull
yarnWe are using TailwindCSS for styling and its plugin - Tailwind Elements - to use pre-built UI components.
Read their docs to learn more about them:
- ESLint
dbaeumer.vscode-eslint - ES7+ React/Redux/React-Native snippets
dsznajder.es7-react-js-snippets - Prettier - Code Formatter
esbenp.prettier-vscode
| Path | Description |
|---|---|
| /public | Static files |
| /src | Source code |
| /src/assets | Images and styles |
| /src/components | Functional components |
| /src/pages | Routes |