-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(core): merge dev into main (#187)
- Loading branch information
Showing
119 changed files
with
687 additions
and
432 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 |
---|---|---|
|
@@ -20,10 +20,21 @@ If you already have experience with django/wagtail, understanding the backend wi | |
---- | ||
# Env Setup | ||
- ### Docker | ||
- Create a Python Virtual Environment and activate it | ||
- Install the pre-commit hooks by running `pre-commit install --install-hooks` | ||
- Make sure You have **docker** installed and the `cd` to `bfportal` directory | ||
- Copy the `.env.template` file to `.env` | ||
- Create a [discord application](https://discord.com/developers/applications) for OAuth2 and copy the client id and secret | ||
- Paste the client id and secret in `.env` file to `DISCORD_CLIENT_ID` and `DISCORD_SECRET` respectively | ||
- Then run `docker-compose --profile dev_local up` | ||
- The website should be available at `127.0.0.1:8000` | ||
- If You want to set up everything your self, See the next points | ||
|
||
|
||
- ### Python | ||
- Refer to [readme.md](/readme.md#how-to-run-locally) | ||
- install pre-commit checks by runnning (**make sure the Virtual Enviroment is activated !!**) | ||
- install pre-commit checks by running (**make sure the Virtual Enviroment is activated !!**) | ||
``` | ||
pre-commit install | ||
``` | ||
|
@@ -41,7 +52,10 @@ If you already have experience with django/wagtail, understanding the backend wi | |
``` | ||
python manage.py tailwind start | ||
``` | ||
- ### Postgres | ||
- Make sure postgres is installed and running | ||
- Create DB, USER and Password for the project | ||
- Update the `.env` file accordingly | ||
---- | ||
|
@@ -76,9 +90,9 @@ bfportal/ | |
- Make sure all the precommit test are passed | ||
- Open a pull request to merge the branch into dev branch | ||
- The changes will be reviewed on dev deployment | ||
- Upon successfull testing dev will be merged into main | ||
- Upon successfully testing dev will be merged into main | ||
# How to discuss with the maintainers | ||
- Join our [discord server](https://bfportal.gg/join). | ||
- Join our [discord server](https://discord.bfportal.gg/). | ||
- Open a new issue. | ||
- mail us at [email protected] |
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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
POSTGRES_HOST= | ||
DB_NAME= | ||
DB_USERNAME= | ||
DB_PASSWORD= | ||
|
||
SU_PASSWD= | ||
PRODUCTION_KEY= | ||
PRODUCTION_HOST= | ||
PRODUCTION_PORT= | ||
|
||
SU_PASSWD=1234 | ||
PRODUCTION_KEY=%dn0n58@4z7j(5=o(i1w-24-d2n7elvvu3hawh)$8d^^cfg40- | ||
PRODUCTION_HOST=127.0.0.1 | ||
ALLAUTH_PROTOCOL=HTTP | ||
OWNERS=236802771381125120,338947895665360898,216307162106822659 | ||
PRODUCTION_PORT=8000 | ||
DEBUG=True | ||
DB_NAME=postgres | ||
DB_USERNAME=postgres | ||
DB_PASSWORD=postgres | ||
# required for login via discord Oauth | ||
DISCORD_CLIENT_ID= | ||
DISCORD_SECRET= | ||
|
||
# Not required unless You want to the featues to publish updates to discord | ||
DISCORD_BOT_TOKEN=#required to get scheduled events of a server | ||
|
||
APPROVAL_CHANNEL_WEBHOOK_TOKEN= | ||
APPROVAL_CHANNEL_WEBHOOK_ID= | ||
|
||
APPROVAL_SUCCESS_CHANNEL_WEBHOOK_TOKEN= | ||
APPROVAL_SUCCESS_CHANNEL_WEBHOOK_ID= | ||
|
||
ALLAUTH_PROTOCOL= | ||
OWNERS= |
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
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
from django.contrib import admin | ||
|
||
from .models.users import Profile | ||
|
||
admin.site.register(Profile) | ||
# Register your models here. |
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.