This is a React application using TypeScript, Bootstrap, and Styled-Components.
Before you run this app, make sure you're using Node Version Manager (NVM) and are using at least Node v10.16.1 (nvm install 10.16.1
and nvm use 10.16.1
)
Running this app:
npm install
npm run start
- Now access the app at http://localhost:3000 (should open automatically). Editing files should automatically build and hot-reload the page
We have standard guidelines for contributing code to the project.
- Fork the repo to your own GitHub. You should now have a repo in your account called
<your-username>/frontend-cag
. - Clone that repo locally to your machine:
git clone [email protected]:<your-username>/frontend-cag.git
and thencd frontend-cag
- Add the org's repo as
upstream
:git remote add upstream [email protected]:Chicago-Artist-Guide/frontend-cag.git
- Create a branch off of
master
named after your JIRA ticket. For example, let's say you have JIRA ticket #125, you'd do:git pull upstream master
on master, and thengit checkout -b dev125
- Contribute changes as commits to your local branch
dev125
. For new files,git add .
, and then to add commit messages:git commit -am "<your commit message here>"
. Your commit messages don't matter too much here because we're going to Squash and Merge later, anyway. - When you're ready to PR your changes, push:
git push origin dev125
- Go to the Chicago-Artist-Guide/frontend-cag repo in GitHub and a message should pop up recognizing your new branch. Click on
Compare & Pull Request
- Pull Requests must have:
- A title formatted like so:
[DEV-XXX] Some Descriptive Title
- A description of the changes
- Screenshots of the changes, if applicable
- A title formatted like so:
- Your PR must be reviewed by one or both of the tech leads, depending on magnitude and/or who is available
- Once you have your approval(s), all comments have been addressed, and tests are passing, you may click on,
Squash and Merge
. Please make sure the commit title is the same as the PR title
PR tips:
- The smaller, the better. Smaller PRs help tech leads and team members do a better job of reviewing your code and is more respectful of everyone's time
- Do not commit a package-lock.json file unless you've explicitly made changes to package.json
- Do not commit and PR any potentially sensitive or insecure information, keys, etc. Please confirm with the tech leads if you have a question about something being sensitive prior to it being in a commit
- Please follow linting rules. Make sure indentation is 2 spaces, general code style is consistent/cohesive, attributes and properties are ordered alphabetically, and so forth
- Please remind tech leads and team members in Slack if you need reviews and haven't received any
Warning: commits to master trigger a push and build on production in AWS. Do not merge if you have any concerns about the branch breaking something. In some cases, we may work off of specific feature branches as an extra layer of protection, so please pay attention in those situations to use the feature branches instead of master.