Skip to content

Commit 99a2b22

Browse files
committed
docs: rename to code genie projec
1 parent ebd42d4 commit 99a2b22

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+956
-718
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ npm-debug.log
44
.env
55
coverage
66
sam-template.packaged.yaml
7-
vendia-serverless-express-*.tgz
7+
codegenie-serverless-express-*.tgz
88
dist/
99
examples/nextjs
1010
typescript-out

CHANGELOG.md

Lines changed: 118 additions & 118 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Please read through this document before submitting any issues or pull requests
88

99
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
1010

11-
When filing an issue, please check [existing open](https://github.com/vendia/serverless-express/issues), or [recently closed](https://github.com/vendia/serverless-express/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
11+
When filing an issue, please check [existing open](https://github.com/CodeGenieApp/serverless-express/issues), or [recently closed](https://github.com/CodeGenieApp/serverless-express/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
1212

1313
* A reproducible test case or series of steps
1414
* The version of our code being used
@@ -44,7 +44,7 @@ Please refer to our [Code of Conduct](CODE_OF_CONDUCT.md)
4444

4545
## Security issue notifications
4646

47-
If you discover a potential security issue in this project we ask that you notify us directly - brett@vendia.net. Please do **not** create a public github issue.
47+
If you discover a potential security issue in this project we ask that you notify us directly - brett@codegenie.codes. Please do **not** create a public github issue.
4848

4949
## Licensing
5050

README.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11

22
<h2 align="center">Serverless Express by</h1>
33
<p align="center">
4-
<a href="https://vendia.com">
5-
<img src="https://raw.githubusercontent.com/vendia/serverless-express/mainline/vendia-logo.png" alt="Vendia Logo">
4+
<a href="https://codegenie.codes">
5+
<img src="https://raw.githubusercontent.com/CodeGenieApp/serverless-express/mainline/code-genie-logo.png" alt="Code Genie Logo">
66
</a>
77
</p>
88
<p width=200>
9-
Data sharing is hard. Data sharing between partners is even harder. That’s why we built Vendia Share. Bring trust and a single source of truth to partner data sharing and secure, compliant, real-time collaboration — no matter your partners’ geographies, stack of systems, data architecture, or clouds.
9+
10+
Starting a new software project? Check out Code Genie - a <a href="https://codegenie.codes">Full Stack App Generator</a> that generates source code based on your project's data model. Including:
11+
12+
1. A React Next.js Web App hosted on Amplify Hosting
13+
1. Serverless Express REST API running on API Gateway and Lambda
14+
1. Cognito User Pools for Identity/Authentication
15+
1. DynamoDB Database
16+
1. Cloud Development Kit (CDK) for Infrastructure as Code (IAC)
17+
1. Continuous Integration/Delivery (CI/CD) with GitHub Actions
18+
1. And more!
1019
</p>
1120

1221
# Serverless Express
1322

1423
<p align="center">
15-
<a aria-label="Made by Vendia" href="https://vendia.com">
16-
<img src="https://img.shields.io/badge/MADE%20BY%20Vendia-000000.svg?style=for-the-badge&logo=Vendia&labelColor=000">
24+
<a aria-label="Made by Code Genie" href="https://codegenie.codes">
25+
<img src="https://img.shields.io/badge/MADE%20BY%20Code%20Genie-000000.svg?style=for-the-badge&logo=Code%20Genie&labelColor=000">
1726
</a>
18-
<a aria-label="NPM version" href="https://www.npmjs.com/package/@vendia/serverless-express">
19-
<img alt="" src="https://img.shields.io/npm/v/@vendia/serverless-express.svg?style=for-the-badge&labelColor=000000">
27+
<a aria-label="NPM version" href="https://www.npmjs.com/package/@codegenie/serverless-express">
28+
<img alt="" src="https://img.shields.io/npm/v/@codegenie/serverless-express.svg?style=for-the-badge&labelColor=000000">
2029
</a>
21-
<a aria-label="License" href="https://github.com/vendia/serverless-express/blob/canary/license.md">
22-
<img alt="" src="https://img.shields.io/npm/l/@vendia/serverless-express.svg?style=for-the-badge&labelColor=000000">
30+
<a aria-label="License" href="https://github.com/CodeGenieApp/serverless-express/blob/canary/license.md">
31+
<img alt="" src="https://img.shields.io/npm/l/@codegenie/serverless-express.svg?style=for-the-badge&labelColor=000000">
2332
</a>
24-
<a aria-label="Number of Downloads" href="https://www.npmjs.com/package/@vendia/serverless-express">
25-
<img alt="" src="https://img.shields.io/npm/dm/@vendia/serverless-express.svg?style=for-the-badge&labelColor=000000">
33+
<a aria-label="Number of Downloads" href="https://www.npmjs.com/package/@codegenie/serverless-express">
34+
<img alt="" src="https://img.shields.io/npm/dm/@codegenie/serverless-express.svg?style=for-the-badge&labelColor=000000">
2635
</a><!--
2736
<a aria-label="Contributor Covenant" href="CODE_OF_CONDUCT.md">
2837
<img alt="" src="https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=for-the-badge&labelColor=000000">
@@ -32,7 +41,7 @@ Data sharing is hard. Data sharing between partners is even harder. That’s why
3241
Run REST APIs and other web applications using your existing [Node.js](https://nodejs.org/) application framework (Express, Koa, Hapi, Sails, etc.), on top of [AWS Lambda](https://aws.amazon.com/lambda/) and [Amazon API Gateway](https://aws.amazon.com/api-gateway/) or [Azure Function](https://docs.microsoft.com/en-us/azure/azure-functions/).
3342

3443
```bash
35-
npm install @vendia/serverless-express
44+
npm install @codegenie/serverless-express
3645
```
3746

3847
## Quick Start/Example
@@ -54,19 +63,19 @@ The only AWS Lambda specific code you need to write is a simple handler like bel
5463

5564
```js
5665
// lambda.js
57-
const serverlessExpress = require('@vendia/serverless-express')
66+
const serverlessExpress = require('@codegenie/serverless-express')
5867
const app = require('./app')
5968
exports.handler = serverlessExpress({ app })
6069
```
6170

6271
### Async setup Lambda handler
6372

64-
If your application needs to perform some common bootstrap tasks such as connecting to a database before the request is forward to the API, you can use the following pattern (also available in [this example](https://github.com/vendia/serverless-express/blob/mainline/examples/basic-starter-api-gateway-v2/src/lambda-async-setup.js)):
73+
If your application needs to perform some common bootstrap tasks such as connecting to a database before the request is forward to the API, you can use the following pattern (also available in [this example](https://github.com/CodeGenieApp/serverless-express/blob/mainline/examples/basic-starter-api-gateway-v2/src/lambda-async-setup.js)):
6574

6675
```js
6776
// lambda.js
6877
require('source-map-support/register')
69-
const serverlessExpress = require('@vendia/serverless-express')
78+
const serverlessExpress = require('@codegenie/serverless-express')
7079
const app = require('./app')
7180

7281
let serverlessExpressInstance
@@ -101,7 +110,7 @@ The only Azure Function specific code you need to write is a simple `index.js` a
101110

102111
```js
103112
// index.js
104-
const serverlessExpress = require('@vendia/serverless-express')
113+
const serverlessExpress = require('@codegenie/serverless-express')
105114
const app = require('./app')
106115
const cachedServerlessExpress = serverlessExpress({ app })
107116

@@ -144,7 +153,7 @@ The _out-binding_ parameter `"name": "$return"` is important for Serverless Expr
144153
1. Node.js 12+
145154
1. Improved support for custom domain names
146155

147-
See [UPGRADE.md](UPGRADE.md) to upgrade from aws-serverless-express and @vendia/serverless-express 3.x
156+
See [UPGRADE.md](UPGRADE.md) to upgrade from aws-serverless-express and @codegenie/serverless-express 3.x
148157

149158
## API
150159

@@ -337,7 +346,7 @@ Provide a custom `log` object with `info`, `debug` and `error` methods. For exam
337346
This package exposes a function to easily get the `event` and `context` objects Lambda receives from the event source.
338347

339348
```js
340-
const { getCurrentInvoke } = require('@vendia/serverless-express')
349+
const { getCurrentInvoke } = require('@codegenie/serverless-express')
341350
app.get('/', (req, res) => {
342351
const { event, context } = getCurrentInvoke()
343352
@@ -365,7 +374,7 @@ app.get('/', (req, res) => {
365374

366375
# AWS Serverless Express is now under the stewardship of Vendia
367376

368-
On 11/30, the AWS Serverless Express library moved from AWS to [Vendia](https://github.com/vendia/serverless-express) and will be rebranded to `@vendia/serverless-express`. Similarly, the [`aws-serverless-express` NPM package](https://www.npmjs.com/package/aws-serverless-express) will be deprecated in favor of [@vendia/serverless-express](https://www.npmjs.com/package/@vendia/serverless-express).
377+
On 11/30, the AWS Serverless Express library moved from AWS to [Vendia](https://github.com/CodeGenieApp/serverless-express) and will be rebranded to `@codegenie/serverless-express`. Similarly, the [`aws-serverless-express` NPM package](https://www.npmjs.com/package/aws-serverless-express) will be deprecated in favor of [@codegenie/serverless-express](https://www.npmjs.com/package/@codegenie/serverless-express).
369378

370379
[Brett Andrews](https://github.com/brettstack), the original creator of the Serverless Express library, will continue maintaining the repository and give it the attention and care it deserves. At the same time, we will be looking for additional contributors to participate in the development and stewardship of the Serverless Express library. AWS and the [SAM team](https://github.com/aws/aws-sam-cli) will remain involved in an administrative role alongside Vendia, Brett, and the new maintainers that will join the project.
371380

SCOPE.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ directory which allows developers to quickly deploy a running application using
1616

1717
This repository should contain:
1818

19-
- The @vendia/serverless-express library.
20-
- Documentation on using @vendia/serverless-express
21-
- Examples of using the @vendia/serverless-express library.
19+
- The @codegenie/serverless-express library.
20+
- Documentation on using @codegenie/serverless-express
21+
- Examples of using the @codegenie/serverless-express library.
2222

2323
This repository does not contain:
2424

UPGRADE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exports.handler = (event, context) => { awsServerlessExpress.proxy(server, event
1717

1818
```javascript
1919
// 4.x
20-
const serverlessExpress = require('@vendia/serverless-express')
20+
const serverlessExpress = require('@codegenie/serverless-express')
2121
const app = require('./app')
2222

2323
exports.handler = serverlessExpress({ app })
@@ -51,7 +51,7 @@ router.get('/', (req, res) => {
5151

5252
```javascript
5353
// 4.x
54-
const { getCurrentInvoke } = require('@vendia/serverless-express')
54+
const { getCurrentInvoke } = require('@codegenie/serverless-express')
5555
router.get('/', (req, res) => {
5656
const currentInvoke = getCurrentInvoke()
5757
res.json({

__tests__/unit.api-gateway-v2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const apiGatewayEventSource = eventSources.getEventSource({
77

88
test('request has correct headers', () => {
99
const req = getReq()
10-
// see https://github.com/vendia/serverless-express/issues/387
10+
// see https://github.com/CodeGenieApp/serverless-express/issues/387
1111
expect(typeof req).toEqual('object')
1212
expect(JSON.stringify(req.headers)).toEqual(
1313
'{"cookie":"","host":"localhost:9000","user-agent":"curl/7.64.1","accept":"*/*","x-forwarded-proto":"http","x-forwarded-port":"9000"}'

code-genie-logo.png

36.2 KB
Loading

examples/alb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
```bash
44
npm pack ../..
5-
npm install ./vendia-serverless-express-4.0.0-rc.3.tgz
5+
npm install ./codegenie-serverless-express-4.0.0-rc.3.tgz
66
npm install --prefix ./src ./
77
node local.js
88
```

examples/alb/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@vendia/serverless-express-alb-example",
2+
"name": "@codegenie/serverless-express-alb-example",
33
"version": "1.0.0",
44
"description": "Example application for running Express on AWS Lambda backed by ALB",
55
"main": "src/index.js",
@@ -13,7 +13,7 @@
1313
"author": "",
1414
"license": "Apache-2.0",
1515
"dependencies": {
16-
"@vendia/serverless-express": "^4.3.0",
16+
"@codegenie/serverless-express": "^4.3.0",
1717
"body-parser": "^1.19.0",
1818
"cors": "^2.8.5",
1919
"express": "^4.17.1",
@@ -22,4 +22,4 @@
2222
"devDependencies": {
2323
"lodash": "^4.17.21"
2424
}
25-
}
25+
}

examples/alb/src/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const path = require('path')
22
const express = require('express')
33
const bodyParser = require('body-parser')
44
const cors = require('cors')
5-
const { getCurrentInvoke } = require('@vendia/serverless-express')
5+
const { getCurrentInvoke } = require('@codegenie/serverless-express')
66
const app = express()
77
const router = express.Router()
88

@@ -22,8 +22,8 @@ router.get('/', (req, res) => {
2222
})
2323
})
2424

25-
router.get('/vendia', (req, res) => {
26-
res.sendFile(path.join(__dirname, 'vendia-logo.png'))
25+
router.get('/code-genie-logo', (req, res) => {
26+
res.sendFile(path.join(__dirname, 'code-genie-logo.png'))
2727
})
2828

2929
router.get('/users', (req, res) => {

examples/alb/src/code-genie-logo.png

36.2 KB
Loading

examples/alb/src/lambda.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const serverlessExpress = require('@vendia/serverless-express')
1+
const serverlessExpress = require('@codegenie/serverless-express')
22
const app = require('./app')
33

44
exports.handler = serverlessExpress({ app })

examples/alb/src/vendia-logo.png

-8.17 KB
Binary file not shown.

examples/alb/src/views/index.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ html
2626
white-space: nowrap;
2727
overflow-x: auto;
2828
}
29-
.vendia-logo {
29+
.code-genie-logo {
3030
display: block;
3131
width: 10rem;
3232
margin: auto;
@@ -42,7 +42,7 @@ html
4242
}
4343
body
4444
h1 My Serverless Application
45-
img.vendia-logo(src='vendia')
45+
img.code-genie-logo(src='code-genie-logo')
4646
p
4747
| Welcome to your AWS serverless application. This example application has several resources configured for you to explore. State is stored in memory in a given container, and is therefore ephemeral - see
4848
a(href='https://aws.amazon.com/blogs/compute/container-reuse-in-lambda/', target='_blank') Understanding Container Reuse in AWS Lambda

examples/azure-http-function-v3/HttpExample/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const express = require('express')
33
const bodyParser = require('body-parser')
44
const cors = require('cors')
55
const compression = require('compression')
6-
const { getCurrentInvoke } = require('../../../src/index') // require('@vendia/serverless-express')
6+
const { getCurrentInvoke } = require('../../../src/index') // require('@codegenie/serverless-express')
77
const ejs = require('ejs').__express
88
const app = express()
99
const router = express.Router()
@@ -28,8 +28,8 @@ router.get('/api', (req, res) => {
2828
res.render('index', { apiUrl })
2929
})
3030

31-
router.get('/api/vendia', (req, res) => {
32-
res.sendFile(path.join(__dirname, 'vendia-logo.png'))
31+
router.get('/api/code-genie-logo', (req, res) => {
32+
res.sendFile(path.join(__dirname, 'code-genie-logo.png'))
3333
})
3434

3535
router.get('/api/users', (req, res) => {
Loading

examples/azure-http-function-v3/HttpExample/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const serverlessExpress = require('../../../src/index') // require('@vendia/serverless-express')
1+
const serverlessExpress = require('../../../src/index') // require('@codegenie/serverless-express')
22
const app = require('./app')
33
const cachedServerlessExpress = serverlessExpress({ app })
44

Binary file not shown.

0 commit comments

Comments
 (0)