A simple portal that allows vendors to sign up to apply, view application progress and status, as well as providing a central location for documents.
AA-DR Portal requires AWS-CLI in order to get credentials needed to make AWS service related calls.
- Install AWS-CLI for your respective OS
- For Windows please run installation commands in Powershell. Run the project in Powershell only.
- Once installed run
aws configure sso
on your terminal / PowerShell - Follow the prompts as shown here exactly (if you don't things will break)
SSO session name (Recommended): aa-dr-developer
SSO start URL [None]: https://castlepointanime.awsapps.com/start
SSO region [None]: us-east-1
SSO registration scopes [sso:account:access]: (just hit enter here)
You will be prompted on your web browser to allow access, just follow the steps
There are X roles available to you.
> PowerUserAccess
Use the role name "PowerUserAccess"
CLI default client Region [us-east-2]: us-east-1
CLI default output format [json]: json
CLI profile name [PowerUserAccess-971141433805]: cpac-webmaster
- Once finished, login with
aws sso login --profile cpac-webmaster
- Follow the prompts and make sure to sign in with your CPAC Google Account
- Important: You will need to re-run step 4 and restart your local / docker instance if you get a credential expiration
- Follow the next steps below for local / container setup.
To begin simply pull this repository and its submodules using the following command:
git clone --recurse-submodules https://github.com/cpacdev/portal.git
...or if you setup SSH already:
git clone --recurse-submodules [email protected]:cpacdev/portal.git
This method will build both front-end and back-end at once with minimal local installation!
-
Make sure to install Docker for your system first!
-
After doing so simply run
docker compose up -d --build
-
To shutdown both the front-end and backend run
docker compose down
You will now see the frontend on localhost:3000
and the backend on localhost:3001
Requirements:
- VSCode
- Docker
- VSCode Dev Containers plugin
Running the backend
- In vscode click
File
and then clickOpen Folder...
- Open the
backend
folder - Click
Ctrl + Shift + P
and then selectDev Containers: Rebuild and Reopen in Container
- See steps Running the backend in Running Locally without Docker below to see how to start the backend
Running the frontend
- In vscode click
File
and then clickOpen Folder...
- Open the
frontend
folder - Click
Ctrl + Shift + P
and then selectDev Containers: Rebuild and Reopen in Container
- See steps Running the frontend in Running Locally without Docker below to see how to start the frontend
Make sure to have the following installed before proceeding:
- Node.js
- Yarn package manager
- Python 3.10+
Running the backend
cd backend
pip install -r requirements.txt
python app.py
Running the frontend
cd frontend
yarn
yarn run dev
git push --recurse-submodules=on-demand