Code base for the website spicygreenbook.com which is a directory of local black-owned businesses that users can find to support
Use the issues section on this page to let us know!
The app is built with React + NextJS and is hosted/deployed on Vercel (formerly now.sh)
Absolutely Critical: JavaScript
Helps a lot: Git/GitHub, React, NextJS, CSS, HTML, Understanding fetching JSON data from an API
# clone the repo
git clone git@github.com:spicygreenbook/greenbook.git
# change your directory into the greenbook repo
cd greenbook
# install node modules
npm install
# run the dev server
# this should make http://localhost:3000 available in your web browser
npm run dev
- All front-end page end-points are in the pages folder. Making file at
pages/hello.js
will create the spicygreenbook.com/hello page on the site. - All static files go into the public folder. Creating a file in
public/my-file.jpg
will create the spicygreenbook.com/my-file.jpg url resolve to that file. - We get data from prismic.io using the
utils/getListings.js
helper function that you can look at to figure out how to retreive content from the CMS - You will see
filename.module.css
in thecss/
folder which is css that you can write and include in a component. See any page for an example of usage. - Files in the
pages/api
folder will automatically become lambda functions that provide a simple request/response promise as the primary function export. See Vercel Serverless Functions - We use Feather Icons for the icons at the moment. Look at
components/Icons.js
to see how to add each individually needed Icon - The entire site is statically built upon deployment. Every page/listing is a static html file delivered straight from the CDN. Any time a new commit is pushed to master, or a document is published in prismic, a new deployment is created and the whole site is updated at once.
You can read this tutorial on how to fork a project, make changes, and get those changes accepted to a repository.
For your first patch you can make a PR and if we like it we'll merge it.
We will invite you to the volunteer team on github and you will be able to have write access to this repository in order to be able to more conveniently provide updates and handle issues.
Our slack is at spicy-green-book.slack.com if you want to be part of the community.
We have a public trello board at https://trello.com/b/2hUKxisJ/spicy-green-book if you're looking for tasks to help us out with.