mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-18 20:59:39 +02:00
Improve Local Dev Setup Documentation and Contribution Guidelines (#339)
* Update contributing guide and README * Add back syntax highlighting
This commit is contained in:
parent
b8198d17b7
commit
ae241c29f0
2 changed files with 66 additions and 34 deletions
63
README.md
63
README.md
|
@ -26,22 +26,16 @@ We're now building the app in Ruby on Rails. We realize that's a controversial c
|
|||
|
||||
From the start our focus with this is to make it as easy as possible for you to both contribute to and deploy the app, and this move to Rails is a big part of that.
|
||||
|
||||
## Codebase
|
||||
## Local Development Setup
|
||||
|
||||
The codebase is vanilla [Rails](https://rubyonrails.org/) and [Postgres](https://www.postgresql.org/). Quite a simple setup.
|
||||
### Requirements
|
||||
|
||||
## Setup
|
||||
- Ruby >3 (see `Gemfile`)
|
||||
- PostgreSQL >9.3 (ideally, latest stable version)
|
||||
|
||||
You'll need:
|
||||
After cloning the repo, the basic setup commands are:
|
||||
|
||||
- ruby >3 (specific version is in `Gemfile`)
|
||||
- postgresql (if using stock `config/database.yml`)
|
||||
|
||||
If you prefer devcontainer, this project supports it (entirely optional).
|
||||
|
||||
Run the following commands after cloning the repo:
|
||||
|
||||
```shell
|
||||
```sh
|
||||
cd maybe
|
||||
cp .env.example .env
|
||||
bundle install
|
||||
|
@ -49,37 +43,48 @@ rails db:setup
|
|||
bin/dev
|
||||
```
|
||||
|
||||
And visit [http://localhost:3000](http://localhost:3000) to see the app.
|
||||
You can use the following credentials to log in:
|
||||
And visit http://localhost:3000 to see the app. You can use the following credentials to log in (generated by DB seed):
|
||||
|
||||
- Email: `user@maybe.local`
|
||||
- Password: `password`
|
||||
Email: user@maybe.local
|
||||
Password: password
|
||||
|
||||
### Email
|
||||
For further instructions, see guides below.
|
||||
|
||||
In development, we use `letter_opener` to automatically open emails in your browser. However, if you self-host, you'll likely want some basic email sending abilities.
|
||||
### Setup Guides
|
||||
|
||||
You can use any SMTP-based mail service and then simply drop in your SMTP credentials in the `.env` file.
|
||||
#### Dev Container (optional)
|
||||
|
||||
[Resend](https://resend.com) is a great option for personal use as they have a very generous free plan.
|
||||
This is 100% optional and meant for devs who don't want to worry about installing requirements manually for their platform. You can follow [this guide](https://code.visualstudio.com/docs/devcontainers/containers) to learn more about Dev Containers.
|
||||
|
||||
#### Mac
|
||||
|
||||
Please visit our [Mac dev setup guide](https://github.com/maybe-finance/maybe/wiki/Mac-Dev-Setup-Guide).
|
||||
|
||||
#### Linux
|
||||
|
||||
Please visit our [Linux dev setup guide](https://github.com/maybe-finance/maybe/wiki/Linux-Dev-Setup-Guide).
|
||||
|
||||
#### Windows
|
||||
|
||||
Please visit our [Windows dev setup guide](https://github.com/maybe-finance/maybe/wiki/Windows-Dev-Setup-Guide).
|
||||
|
||||
### Testing Emails
|
||||
|
||||
In development, we use `letter_opener` to automatically open emails in your browser. When an email sends locally, a new browser tab will open with a preview.
|
||||
|
||||
## Contributing
|
||||
|
||||
Before contributing, you'll likely find it helpful to [understand context and general vision/direction](https://github.com/maybe-finance/maybe/wiki).
|
||||
|
||||
It's still very early days for this so your mileage will vary here and lots of things will break.
|
||||
Once you've done that, please visit our [contributing guide](https://github.com/maybe-finance/maybe/blob/main/CONTRIBUTING.md) to get started!
|
||||
|
||||
But almost any contribution will be beneficial at this point. Check the [current Issues](https://github.com/maybe-finance/maybe/issues) to see where you can jump in!
|
||||
## Self Hosting
|
||||
|
||||
If you've got an improvement, just send in a pull request!
|
||||
Our long term goal is to make self-hosting as easy as possible. That said, during these early stages of building the product, we are focusing our efforts on development.
|
||||
|
||||
1. Fork it
|
||||
2. Create your feature branch (`git checkout -b my-new-feature`)
|
||||
3. Commit your changes (`git commit -am 'Add some feature'`)
|
||||
4. Push to the branch (`git push origin my-new-feature`)
|
||||
5. Create new Pull Request
|
||||
We will update this section as we get closer to an initial release.
|
||||
|
||||
If you've got feature ideas, simply [open a new issue](https://github.com/maybe-finance/maybe/issues/new)!
|
||||
Please see our [guide on self hosting here](https://github.com/maybe-finance/maybe/wiki/Self-Hosting-Setup-Guide).
|
||||
|
||||
## Repo Activity
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue