forked from lukevella/rallly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
83 changed files
with
2,448 additions
and
1,163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
[](https://www.gnu.org/licenses/agpl-3.0) | ||
[](https://www.paypal.com/donate/?hosted_button_id=7QXP2CUBLY88E) | ||
|
||
|
||
 | ||
|
||
Rallly is a free group meeting scheduling tool – built with [Next.js](https://github.com/vercel/next.js/), [Prisma](https://github.com/prisma/prisma) & [TailwindCSS](https://github.com/tailwindlabs/tailwindcss) | ||
|
@@ -18,18 +17,13 @@ git clone https://github.com/lukevella/rallly.git | |
cd rallly | ||
``` | ||
|
||
_optional_: Configure your SMTP server. Without this, Rallly won't be able to send out emails. You can set the following environment variables in a `.env` in the root of the project | ||
Once inside the directory create a `.env` file where you can set your environment variables. There is a `sample.env` that you can use as a reference. | ||
|
||
```bash | ||
cp sample.env .env | ||
``` | ||
# support email - used as FROM email by SMTP server | ||
[email protected] | ||
# SMTP server - required if you want to send emails | ||
SMTP_HOST=your-smtp-server | ||
SMTP_PORT=587 | ||
SMTP_SECURE="false" | ||
SMTP_USER=your-smtp-user | ||
SMTP_PWD=your-smtp-password | ||
``` | ||
|
||
_See [configuration](#-configuration) to see what parameters are availble._ | ||
|
||
Build and run with `docker-compose` | ||
|
||
|
@@ -54,20 +48,7 @@ Copy the sample `.env` file then open it and set the variables. | |
cp sample.env .env | ||
``` | ||
|
||
Fill in the required environment variables. | ||
|
||
``` | ||
# postgres database - not needed if running with docker-compose | ||
DATABASE_URL=postgres://your-database/db | ||
# support email - used as FROM email by SMTP server | ||
[email protected] | ||
# SMTP server - required if you want to send emails | ||
SMTP_HOST=your-smtp-server | ||
SMTP_PORT=587 | ||
SMTP_SECURE="false" | ||
SMTP_USER=your-smtp-user | ||
SMTP_PWD=your-smtp-password | ||
``` | ||
_See [configuration](#-configuration) to see what parameters are availble._ | ||
|
||
Install dependencies | ||
|
||
|
@@ -91,6 +72,19 @@ yarn build | |
yarn start | ||
``` | ||
|
||
## ⚙️ Configuration | ||
|
||
| Parameter | Default | Description | | ||
| --------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | ||
| DATABASE_URL | postgres://postgres:postgres@rallly_db:5432/db | A postgres database URL. Leave out if using the docker-compose file since it will spin up and connect to its own database instance. | | ||
| SECRET_PASSWORD | - | A long string (minimum 25 characters) that is used to encrypt session data. | | ||
| SUPPORT_EMAIL | - | An email address that will appear as the FROM email for all emails being sent out. | | ||
| SMTP_HOST | - | Host name of your SMTP server | | ||
| SMTP_PORT | - | Port of your SMTP server | | ||
| SMTP_SECURE | false | Set to "true" if SSL is enabled for your SMTP connection | | ||
| SMTP_USER | - | Username to use for your SMTP connection | | ||
| SMTP_PWD | - | Password to use for your SMTP connection | | ||
|
||
## 👨💻 Contributors | ||
|
||
If you would like to contribute to the development of the project please reach out first before spending significant time on it. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import clsx from "clsx"; | ||
import React from "react"; | ||
|
||
const Badge: React.VoidFunctionComponent<{ | ||
children?: React.ReactNode; | ||
color?: "gray" | "amber" | "green"; | ||
className?: string; | ||
}> = ({ children, color = "gray", className }) => { | ||
return ( | ||
<div | ||
className={clsx( | ||
"inline-flex h-5 items-center rounded-md px-1 text-xs", | ||
{ | ||
"bg-slate-200 text-slate-500": color === "gray", | ||
"bg-amber-100 text-amber-500": color === "amber", | ||
"bg-green-100/50 text-green-500": color === "green", | ||
}, | ||
className, | ||
)} | ||
> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
export default Badge; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.