Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/build-commerceapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Jhoose Commerce API Build

on:
push:
branches: [ main, release/* ]
pull_request:
branches: [ main ]
workflow_dispatch:

env:
BUILD_NO: 1.0.0.${{ github.run_number }}
BUILD_NO_PRE: 1.0.0-rc.${{ github.run_number }}

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x

- name: Configure Source
working-directory: ./src/Jhoose.CommerceApi
run: |
dotnet nuget add source https://nuget.pkg.github.com/andrewmarkham/index.json --name "GithubBuild" --store-password-in-clear-text --username andrewmarkham --password ${{ secrets.PACKAGE_TOKEN }}
dotnet nuget add source https://api.nuget.optimizely.com/v3/index.json --name "Optimizely"

- name: Restore (nuget.exe)
run: dotnet restore Jhoose.CommerceApi.csproj --configfile ../../Nuget.config
working-directory: ./src/Jhoose.CommerceApi

- name: Build (Production)
if: github.ref == 'refs/heads/main'
run: dotnet build --configuration Release --no-restore -p:Version=${{ env.BUILD_NO }}
working-directory: ./src/Jhoose.CommerceApi

- name: Build (Pre Release)
if: github.ref != 'refs/heads/main'
run: dotnet build --configuration PreRelease --no-restore -p:Version=${{ env.BUILD_NO_PRE }}
working-directory: ./src/Jhoose.CommerceApi

- name: Run Jhoose.CommerceApi.Tests
working-directory: ./src/Jhoose.CommerceApi.Tests
run: dotnet test Jhoose.CommerceApi.Tests.csproj --no-restore --configuration Release --logger "trx;LogFileName=test_results.trx"

- name: nuget push
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release')
working-directory: ./src/Jhoose.CommerceApi
run: dotnet nuget push "**/Jhoose.CommerceApi*.nupkg" -k ${{ secrets.PACKAGE_TOKEN }} -s https://nuget.pkg.github.com/andrewmarkham/index.json --skip-duplicate
env:
GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
27 changes: 0 additions & 27 deletions .github/workflows/npm-publish-commerce-core.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .vs/Foundation/xs/UserPrefs.xml

This file was deleted.

1 change: 0 additions & 1 deletion .vs/Foundation/xs/project-cache/Foundation-Debug.json

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"args": [
"watch",
"run",
"${workspaceFolder}/src/Sample/DemoSite/DemoSite.csproj",
"${workspaceFolder}/src/Jhoose.Demo/Jhoose.Demo.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
Expand Down
2 changes: 1 addition & 1 deletion Developer Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ COMMERCE_AUTHORIZATION_KEY = ...
- npm run build - builds and packages the project.
- npm run test - runs the unit tests
- npm run testf - runs the unit functional tests, requires the Rest API to be running
- npm run doc - creates the documentation
- npm run doc - creates the documentation

### components
This is the reactjs component library
Expand Down
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ A Rest API layer that supports these common eCommerce journies
- Pricing
- Markets

See [Customer Rest API](./docs/customerRestapi.md)

#### Javascript/Typescript Customer API Layer
This library provides an abstration of the Rest API which simplifies the approach when developing either clientside components in Vanilla JS or more complex applications via Frameworks such as NEXT.js or Angular.
This library provides an abstration of the Rest API which simplifies the approach when developing either client-side components in Vanilla JS or more complex applications via Frameworks such as NEXT.js, React or Angular.
- Parity functionality to the Customer Rest API
- Caching to enhance performance

See [Javascript Customer API Layer](https://github.com/andrewmarkham/CommerceApi.Frontend/blob/main/docs/javascriptapi.md)

#### Microfront UI Layer
This is a React framework that delivers a core set of components that can be used to accelerate development.

Expand All @@ -28,6 +32,8 @@ This is a React framework that delivers a core set of components that can be use

The components can be styled to match designs.

See [Micro UI Layer](https://github.com/andrewmarkham/CommerceApi.Frontend/blob/main/docs/microfrontend.md)

---
## Why

Expand All @@ -53,17 +59,31 @@ The Rest API can be used by Websites, POS, Mobile apps, surfacing the same Cart,
### Authentication
See [Authentication](./docs/authentication.md)

### Markets
See [Markets](./docs/markets.md)

### Extensibility
Feature [Extensibility](https://github.com/andrewmarkham/CommerceApi/issues/2)

---
## Getting Started
Please read the [Customer Rest API](./docs/customerRestapi.md) documentation to understand how to add the framework to an existing Optimizely Commerce solution.

For an example api site please see [Jhoose Demo](./src/Jhoose.Demo/README.md)

For an example headless site (Next.js) please see [Ozone Clothing](https://github.com/andrewmarkham/OzoneClothing)

---
## API Documentation

### Customer Rest API Layer
See [Customer Rest API](./docs/customerRestapi.md)

### Javascript Customer API Layer
See [Javascript Customer API Layer](./docs/javascriptapi.md)
See [Javascript Customer API Layer](https://github.com/andrewmarkham/CommerceApi.Frontend/blob/main/docs/javascriptapi.md)

### Micro UI Layer
See [Micro UI Layer](./docs/microfrontend.md)
See [Micro UI Layer](https://github.com/andrewmarkham/CommerceApi.Frontend/blob/main/docs/microfrontend.md)

---

Expand Down
41 changes: 0 additions & 41 deletions build/SqlScripts/FoundationConfigurationSchema.sql

This file was deleted.

38 changes: 0 additions & 38 deletions build/SqlScripts/ServiceApiCms.sql

This file was deleted.

37 changes: 0 additions & 37 deletions build/SqlScripts/ServiceApiCommerce.sql

This file was deleted.

Loading