Skip to content

Commit

Permalink
move server files to server
Browse files Browse the repository at this point in the history
  • Loading branch information
aidangannon committed Jun 18, 2023
1 parent 17e948f commit 9a9f1c2
Show file tree
Hide file tree
Showing 45 changed files with 20 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
python-version: "3.9"
- name: Test with unittest
run: |
cd server
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-test.txt
Expand All @@ -25,5 +26,5 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2
- run: sam build --use-container && cd .aws-sam/build/PinfluencerFunction && rm -fr clean-build.sh tests events env.json README.md samconfig.toml template.yaml requirements.txt
- run: sam deploy --no-fail-on-empty-changeset --no-confirm-changeset --stack-name pinfluencer-api-staging --s3-bucket aws-sam-cli-managed-default-samclisourcebucket-1mycbpdtzxnbk --region eu-west-2 --capabilities CAPABILITY_IAM --parameter-overrides ${{ secrets.SAM_PARAMETER_OVERRIDES }}
- run: cd server && sam build --use-container && cd .aws-sam/build/PinfluencerFunction && rm -fr clean-build.sh tests events env.json README.md samconfig.toml template.yaml requirements.txt
- run: cd server && sam deploy --no-fail-on-empty-changeset --no-confirm-changeset --stack-name pinfluencer-api-staging --s3-bucket aws-sam-cli-managed-default-samclisourcebucket-1mycbpdtzxnbk --region eu-west-2 --capabilities CAPABILITY_IAM --parameter-overrides ${{ secrets.SAM_PARAMETER_OVERRIDES }}
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Created by https://www.gitignore.io/api/osx,linux,python,windows,pycharm,visualstudiocode

/.idea
*.idea

### Linux ###
*~
Expand Down Expand Up @@ -246,17 +246,17 @@ $RECYCLE.BIN/
# SAM
packaged.yaml
.aws-sam/
samconfig.toml
server/samconfig.toml
samconfig.toml.olddb
env.json

# End of https://www.gitignore.io/api/osx,linux,python,windows,pycharm,visualstudiocode

# sandbox
sandbox.py
server/sandbox.py

# aws
awssecrets.secrets
server/awssecrets.secrets

# test runenr artifacts
/tests/template.yaml
/server/tests/template.yaml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion src/data/entities.py → server/src/data/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import sqlalchemy.orm
from sqlalchemy import Column, String, DateTime, Float, Table, Integer, Boolean, Enum, orm, and_
from sqlalchemy.orm import foreign

from src import T
from src.data import Base
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions src/web/sequences.py → server/src/web/sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,17 @@ def build(self):
self._add_command(command=self.__influencer_listing_controller.get_all)


class SequenceBuilder(FluentSequenceBuilder):

def __init__(self,
influencer_listing_controller: InfluencerListingController):
super().__init__()
self.__influencer_listing_controller = influencer_listing_controller

def build(self):
self._add_command(command=self.__influencer_listing_controller.get_all)


class NotImplementedSequenceBuilder(FluentSequenceBuilder):

def __init__(self):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_hooks.py → server/tests/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from src.exceptions import NotFoundException
from src.web import PinfluencerContext, PinfluencerResponse
from src.web.error_capsules import AudienceDataAlreadyExistsErrorCapsule, BrandNotFoundErrorCapsule, \
InfluencerNotFoundErrorCapsule, ListingNotFoundErrorCapsule, AudienceDataNotFoundErrorCapsule, BrandNotAuthorized
InfluencerNotFoundErrorCapsule, ListingNotFoundErrorCapsule, BrandNotAuthorized
from src.web.hooks import UserAfterHooks, UserBeforeHooks, BrandAfterHooks, InfluencerAfterHooks, CommonBeforeHooks, \
InfluencerBeforeHooks, BrandBeforeHooks, ListingBeforeHooks, ListingAfterHooks, CommonAfterHooks, \
NotificationAfterHooks, NotificationBeforeHooks, AudienceAgeBeforeHooks, AudienceCommonHooks, \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9a9f1c2

Please sign in to comment.