-
Clone the forked repository:
git clone https://github.com/<your username>/oscghana-website.git && cd oscghana-website
- Read the Contributors Guide
- Install the Gatsby CLI
npm install -g gatsby-cli
- Change directories into site folder in your computer
cd oscghana-website
- Install packages
npm install
- Create and checkout to a new branch for your feature
git checkout -b aboutus-component
- Start development server
npm run develop
Gatsby will start a hot-reloading development environment accessible by default at localhost:8000
- Create a production build
npm run build
Gatsby will perform an optimized production build, generating static HTML and per-route JavaScript code bundles.
- Serve the production build locally
npm run serve
Gatsby starts a local HTML server for testing the built site. Remember to build the site using gatsby build before using this command.
- Make a Git commits
git commit -m "commit messages"
- See what ESLint and Prettier can fix
npm run analyze
- Run Prettier and ESLint with the --fix option
npm run fix
- The design team have designed the UI AND COMPONENTS be sure to check them and develop accordinly.