Thanks for your willingness to contribute! Please make sure to check with me before doing a bunch of work on something.
If you do need to set the project up locally yourself, feel free to follow these instructions:
- Fork and clone the repo
- Copy
.env.example
into.env
- Run
npm run setup -s
to install dependencies and run validation - Create a branch for your PR with
git checkout -b pr/your-branch-name
Tip: Keep your
main
branch pointing at the original repository and make pull requests from branches on your fork. To do this, run:git remote add upstream https://github.com/epicweb-dev/rocket-rental.git git fetch upstream git branch --set-upstream-to=upstream/main main
This will add the original repository as a "remote" called "upstream," Then fetch the git information from that remote, then set your local
main
branch to use the upstream main branch whenever you rungit pull
. Then you can make all of your pull request branches based on thismain
branch. Whenever you want to update your version ofmain
, do a regulargit pull
.
If the setup script doesn't work, you can try to run the commands manually:
git clone <your-fork>
cd ./rocket-rental
# copy the .env.example to .env
# everything's mocked out during development so you shouldn't need to
# change any of these values unless you want to hit real environments.
cp .env.example .env
# Install deps
npm install
# setup database
prisma migrate reset --force
# Install playwright browsers
npm run test:e2e:install
# run build, typecheck, linting
npm run validate
If that all worked without trouble, you should be able to start development with:
npm run dev
And open up http://localhost:3000
and rock!