Skip to content

Commit

Permalink
Rename http-server to ep-tool-server
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom committed Dec 3, 2024
1 parent b62b86f commit 71e0583
Show file tree
Hide file tree
Showing 47 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
node-version: '16.x'
- name: Install Node dependencies
run: npm ci
working-directory: ./http-server
working-directory: ./ep-tool-server
- name: Push Docker Image
uses: gradle/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
node-version: '16.x'
- name: Install Node dependencies
run: npm ci
working-directory: ./http-server
working-directory: ./ep-tool-server
- name: Build with Gradle
uses: gradle/[email protected]
with:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This project provides an alternative [Micronaut](https://micronaut.io/)-based im
To build this project, you will need:

- [Java 17](https://adoptium.net/) (for Micronaut 4.x)
- [Node.js 16](https://nodejs.org/en) (for packing the JavaScript files in `http-server`)
- [Node.js 16](https://nodejs.org/en) (for packing the JavaScript files in `ep-tool-server`)

Alternatively, you can open this project in [VS Code](https://code.visualstudio.com/) and use the provided [development container](https://code.visualstudio.com/docs/devcontainers/containers), which includes both.

Expand All @@ -16,7 +16,7 @@ Alternatively, you can open this project in [VS Code](https://code.visualstudio.
The project is divided into three modules:

* [`core`](./core) is a library that contains most of the implementations of the microservices.
* [`http-server`](./http-server) exposes the microservices as an HTTP server, which can be distributed as an uber-JAR or as a Docker image.
* [`ep-tool-server`](./ep-tool-server) exposes the microservices as an [MDENet Education Platform tool service](https://github.com/mdenet/educationplatform/wiki/Adding-a-Tool#tool-service), which can be distributed as an uber-JAR or as a Docker image.
* [`gcp-function`](./gcp-function) exposes the microservices as a Google Cloud Function, and adds an endpoint for communicating with the Google Cloud Storage API.

## Endpoints
Expand All @@ -29,7 +29,7 @@ The endpoints are [CORS](https://fetch.spec.whatwg.org/)-aware: they allow reque
* `POST /flexmi2plantuml`: transforms a model written in [Flexmi](https://eclipse.dev/epsilon/doc/flexmi/) that conforms to a metamodel written in Emfatic to a PlantUML class diagram.
* `POST /epsilon`: runs an Epsilon script against a given set of metamodels (written in Emfatic) and models (written in Flexmi or XMI). The first model can alternatively be a JSON document.

### Additional endpoints for the HTTP server
### Additional endpoints for the EP tool server

* `GET /tools`: returns a JSON document according to the [MDENet Education Platform tool specification](https://github.com/mdenet/educationplatform/wiki/Adding-a-Tool).
* `GET /swagger/epsilon-playground-core-0.0.yml`: returns the OpenAPI specification for the core endpoints.
Expand Down Expand Up @@ -62,7 +62,7 @@ This will also build uber-JAR distributions of the HTTP server and the Google Cl
After the project has been built, you can build a Docker image for the HTTP server as well:

```bash
cd http-server
cd ep-tool-server
../gradlew dockerBuild
```

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion http-server/build.gradle → ep-tool-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tasks.named("dockerfile") {
}

tasks.named("dockerBuild") {
images = ["ghcr.io/epsilonlabs/playground-micronaut:$project.version"]
images = ["ghcr.io/epsilonlabs/playground-micronaut:ep-tool-server"]
}

// Webpack for syntax highlighting
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion http-server/package.json → ep-tool-server/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "http-server",
"name": "ep-tool-server",
"version": "0.1.0",
"description": "HTTP server for Playground microservices",
"author": "Epsilon Labs",
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
rootProject.name="playground-micronaut"

include 'core'
include 'http-server'
include 'ep-tool-server'
include 'gcp-function'

dependencyResolutionManagement {
Expand Down

0 comments on commit 71e0583

Please sign in to comment.