Skip to content

Commit f53ac64

Browse files
chore: bump lib version + remove license
1 parent ed20321 commit f53ac64

File tree

6 files changed

+19
-47
lines changed

6 files changed

+19
-47
lines changed

LICENSE.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
> MERN stands for MongoDB, Express, React and Node.js Full Stack, which is one of the standard full stack for JavaScript developers.
1010
11-
This template is configured for the ScaleDynamics web platform. It is on MIT license and ready to use to build your own MERN based app/service. All is pre-configured: we provide one command to develop with live reload (frontend and backend) and one to deploy to make it live on a url.
11+
This template is configured for the ScaleDynamics web platform. It is ready to use to build your own MERN based app/service. All is pre-configured: we provide one command to develop with live reload (frontend and backend) and one to deploy to make it live on a url.
1212

1313
One particularity of our platform is that you don’t have to manage the [Express](https://expressjs.com/) layers, the platform manages them for you automatically, so you can focus only on the MongoDB/Node/React coding.
1414

@@ -30,10 +30,12 @@ npm install
3030
To enter a live-reload development session, use the command below. Feel free to update the frontend or the backend code, it will be rebuilt at each change.
3131

3232

33-
```ssh
33+
```sh
3434
npm run start
3535
```
3636

37+
Note that when running this command, you have to select a project. On the ScaleDynamics platform, a project identifies an application or a microservice. If you are logged, select an existing project or create a new one. Else, you can use the platform anonymously. For more details on projects, see the [documentation](https://docs.scaledynamics.com).
38+
3739
#### Deploy with ScaleDynamics
3840

3941
First you have to compile and minify your project for production.
@@ -54,9 +56,7 @@ Finally, use the deploy command
5456
npm run deploy
5557
```
5658

57-
Note that when running this command, you have to select a project and an environment. On the ScaleDynamics platform a project identifies an application or a microservice.
58-
59-
Select an existing project or create a new one. An environment identifies the cloud execution environment to run your app. You can create as many as you want like ‘staging’, ‘demo’, ‘prod’... Each environment has its own url.
59+
Note that when running this command, you have to select an environment. An environment identifies the cloud execution environment to run your app. You can create as many as you want like ‘staging’, ‘demo’, ‘prod’... Each environment has its own url.
6060

6161
To deploy, select an existing environment or create a new one. For more details on projects or environments, see the [documentation](https://docs.scaledynamics.com).
6262

@@ -73,7 +73,7 @@ const URI = 'mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[de
7373
```
7474

7575

76-
You can create new functions that can be called by the frontend. Add them in `index.js` or into another module and export it. The platform manages the [Express](https://expressjs.com/) layers automatically.
76+
You can create new functions that can be called by the frontend. Add them in `src/index.js` or into another module and export it. The platform manages the [Express](https://expressjs.com/) layers automatically.
7777

7878

7979
```js
@@ -101,9 +101,3 @@ If you need more information, you can refer to the documentation:
101101
Here are some links to useful libraries :
102102
- [Axios](https://github.com/axios/axios)
103103
- [Parcel](https://parceljs.org/)
104-
105-
106-
## License
107-
108-
Copyright 2021 ScaleDynamics SAS. All rights reserved.
109-
Licensed under the MIT license.

backend/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "backend",
33
"version": "1.0.0",
4-
"main": "index.js",
5-
"license": "MIT",
4+
"main": "src/index.js",
65
"dependencies": {
7-
"mongodb": "^3.6.6"
6+
"mongodb": "^4.1.0"
87
}
98
}

backend/index.js renamed to backend/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { fetchMovies } = require('./src/mongodb');
1+
const { fetchMovies } = require("./mongodb");
22

33
const hello = () => {
44
return `Hello from ScaleDynamics Platform, MongoDB, React and Node.js ${process.version} !`;

backend/src/mongodb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { MongoClient } = require('mongodb');
44
const URI = 'mongodb+srv://test:test@movies-scqxj.gcp.mongodb.net/';
55

66
// create & connect a new MongoDB client
7-
const connection = MongoClient(URI, {
7+
const connection = new MongoClient(URI, {
88
useNewUrlParser: true,
99
useUnifiedTopology: true,
1010
}).connect();

react-app/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
"private": true,
55
"dependencies": {
66
"@testing-library/jest-dom": "^5.14.1",
7-
"@testing-library/react": "^11.2.7",
8-
"@testing-library/user-event": "^13.1.9",
9-
"@warpjs/engine": "^4.0.9",
7+
"@testing-library/react": "^12.0.0",
8+
"@testing-library/user-event": "^13.2.1",
9+
"@warpjs/engine": "^4.0.13",
1010
"react": "^17.0.2",
1111
"react-dom": "^17.0.2",
1212
"react-scripts": "4.0.3",
13-
"web-vitals": "^2.0.1"
13+
"web-vitals": "^2.1.0"
1414
},
1515
"scripts": {
1616
"postinstall": "cd ../backend/ && npm install",
17-
"start:client": "react-scripts start",
18-
"start:server": "warp dev ../backend/",
19-
"start": "run-p start:*",
17+
"predev": "warp project select",
18+
"dev:client": "react-scripts start",
19+
"dev:server": "warp dev ../backend/",
20+
"dev": "run-p dev:*",
2021
"build:client": "react-scripts build",
2122
"build:server": "warp build ../backend/",
2223
"build": "run-s build:server build:client",
23-
"predeploy": "warp project select",
2424
"deploy": "warp deploy ./ ../backend/",
2525
"test": "react-scripts test",
2626
"eject": "react-scripts eject"
@@ -45,6 +45,6 @@
4545
},
4646
"devDependencies": {
4747
"npm-run-all": "^4.1.5",
48-
"warp": "^4.0.9"
48+
"warp": "^4.0.13"
4949
}
5050
}

0 commit comments

Comments
 (0)