Skip to content

Commit 31a0183

Browse files
author
Andy Chen
committed
change name
1 parent c70e1fa commit 31a0183

14 files changed

+67
-67
lines changed

Diff for: .circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
docker:
55
- image: circleci/node:10
66

7-
working_directory: ~/mern-stack
7+
working_directory: ~/mern
88

99
steps:
1010
- checkout

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ MERN stack is the idea of using Javascript/Node for fullstack web development.
2323

2424
## clone or download
2525
```terminal
26-
$ git clone https://github.com/amazingandyyy/mern-stack.git
26+
$ git clone https://github.com/amazingandyyy/mern.git
2727
$ npm i
2828
```
2929

@@ -90,13 +90,13 @@ $ heroku create
9090
$ npm run heroku:add <your-super-amazing-heroku-app>
9191
// remember to run this command in the root level, not the server level, so if you follow the documentation along, you may need to do `cd ..`
9292
$ pwd
93-
/Users/<your-name>/mern-stack
93+
/Users/<your-name>/mern
9494
$ npm run deploy:heroku
9595
```
9696

9797
### After creating heroku
9898

99-
remember to update the file of [client/webpack.prod.js](https://github.com/amazingandyyy/mern-stack/blob/master/client/webpack.prod.js)
99+
remember to update the file of [client/webpack.prod.js](https://github.com/amazingandyyy/mern/blob/master/client/webpack.prod.js)
100100
```javascript
101101
'API_URI': JSON.stringify('https://your-super-amazing-heroku-app.herokuapp.com')
102102
```
@@ -131,7 +131,7 @@ After signing in user can go to account route and make request to token-protecte
131131

132132
## BUGs or comments
133133

134-
[Create new Issues](https://github.com/amazingandyyy/mern-stack/issues) (preferred)
134+
[Create new Issues](https://github.com/amazingandyyy/mern/issues) (preferred)
135135

136136
Email Me: [email protected] (welcome, say hi)
137137

Diff for: client/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ After signing in user can go to account page and make request to token-protected
3838
![After signing in user can go to account page](http://i.imgur.com/FzLB51u.png)
3939

4040
## BUGs or comments
41-
[Create new Issues](https://github.com/amazingandyyy/mern-stack/issues)
41+
[Create new Issues](https://github.com/amazingandyyy/mern/issues)
4242

4343
## Author
4444
[Amazingandyyy](amazingandyyy.github.io)

Diff for: client/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "mern-stack-client",
2+
"name": "mern-client",
33
"version": "1.0.1",
44
"description": "Simple starter package for Redux with React and Babel support",
55
"main": "index.js",

Diff for: client/webpack.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = merge(common, {
88
new webpack.DefinePlugin({
99
'process.env': {
1010
'NODE_ENV': JSON.stringify('production'),
11-
'API_URI': JSON.stringify('https://mern-stack-amazingandyyy.herokuapp.com')
11+
'API_URI': JSON.stringify('https://mern-amazingandyyy.herokuapp.com')
1212
},
1313
}),
1414
]

Diff for: docs/js/app.3b6d5294a0997e0eb0af.js

+46-46
Original file line numberDiff line numberDiff line change
@@ -783,27 +783,27 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
783783
/* 9 */
784784
/***/ (function(module, exports) {
785785

786-
var g;
787-
788-
// This works in non-strict mode
789-
g = (function() {
790-
return this;
791-
})();
792-
793-
try {
794-
// This works if eval is allowed (see CSP)
795-
g = g || Function("return this")() || (1,eval)("this");
796-
} catch(e) {
797-
// This works if the window reference is available
798-
if(typeof window === "object")
799-
g = window;
800-
}
801-
802-
// g can still be undefined, but nothing to do about it...
803-
// We return undefined, instead of nothing here, so it's
804-
// easier to handle this case. if(!global) { ...}
805-
806-
module.exports = g;
786+
var g;
787+
788+
// This works in non-strict mode
789+
g = (function() {
790+
return this;
791+
})();
792+
793+
try {
794+
// This works if eval is allowed (see CSP)
795+
g = g || Function("return this")() || (1,eval)("this");
796+
} catch(e) {
797+
// This works if the window reference is available
798+
if(typeof window === "object")
799+
g = window;
800+
}
801+
802+
// g can still be undefined, but nothing to do about it...
803+
// We return undefined, instead of nothing here, so it's
804+
// easier to handle this case. if(!global) { ...}
805+
806+
module.exports = g;
807807

808808

809809
/***/ }),
@@ -3229,7 +3229,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
32293229
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__types__ = __webpack_require__(44);
32303230

32313231

3232-
const ROOT_URL = "https://mern-stack-amazingandyyy.herokuapp.com" || 'http://localhost:8000';
3232+
const ROOT_URL = "https://mern-amazingandyyy.herokuapp.com" || 'http://localhost:8000';
32333233

32343234
__WEBPACK_IMPORTED_MODULE_0_axios___default.a.defaults.baseURL = ROOT_URL;
32353235
if (localStorage.getItem('auth_jwt_token')) {
@@ -4586,30 +4586,30 @@ var result = Object(__WEBPACK_IMPORTED_MODULE_0__ponyfill_js__["a" /* default */
45864586
/* 69 */
45874587
/***/ (function(module, exports) {
45884588

4589-
module.exports = function(originalModule) {
4590-
if(!originalModule.webpackPolyfill) {
4591-
var module = Object.create(originalModule);
4592-
// module.parent = undefined by default
4593-
if(!module.children) module.children = [];
4594-
Object.defineProperty(module, "loaded", {
4595-
enumerable: true,
4596-
get: function() {
4597-
return module.l;
4598-
}
4599-
});
4600-
Object.defineProperty(module, "id", {
4601-
enumerable: true,
4602-
get: function() {
4603-
return module.i;
4604-
}
4605-
});
4606-
Object.defineProperty(module, "exports", {
4607-
enumerable: true,
4608-
});
4609-
module.webpackPolyfill = 1;
4610-
}
4611-
return module;
4612-
};
4589+
module.exports = function(originalModule) {
4590+
if(!originalModule.webpackPolyfill) {
4591+
var module = Object.create(originalModule);
4592+
// module.parent = undefined by default
4593+
if(!module.children) module.children = [];
4594+
Object.defineProperty(module, "loaded", {
4595+
enumerable: true,
4596+
get: function() {
4597+
return module.l;
4598+
}
4599+
});
4600+
Object.defineProperty(module, "id", {
4601+
enumerable: true,
4602+
get: function() {
4603+
return module.i;
4604+
}
4605+
});
4606+
Object.defineProperty(module, "exports", {
4607+
enumerable: true,
4608+
});
4609+
module.webpackPolyfill = 1;
4610+
}
4611+
return module;
4612+
};
46134613

46144614

46154615
/***/ }),

Diff for: package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "mern-stack",
3-
"version": "2.1.0",
2+
"name": "mern",
3+
"version": "2.1.1",
44
"description": "CRUD in MongoDB, Express, React/Hooks, Node",
55
"main": "index.js",
66
"scripts": {
@@ -12,17 +12,17 @@
1212
},
1313
"repository": {
1414
"type": "git",
15-
"url": "git+https://github.com/amazingandyyy/mern-stack.git"
15+
"url": "git+https://github.com/amazingandyyy/mern.git"
1616
},
1717
"keywords": [
1818
"react"
1919
],
2020
"author": "Amazingandyyy <[email protected]> (Andy Chen)",
2121
"license": "MIT",
2222
"bugs": {
23-
"url": "https://github.com/amazingandyyy/mern-stack/issues"
23+
"url": "https://github.com/amazingandyyy/mern/issues"
2424
},
25-
"homepage": "https://github.com/amazingandyyy/mern-stack#readme",
25+
"homepage": "https://github.com/amazingandyyy/mern#readme",
2626
"devDependencies": {
2727
"eslint": "^4.14.0",
2828
"eslint-config-logux": "^17.0.0",

Diff for: server/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $ npm run build // this will build the server code to es5 js codes and generate
3434
| morgan: ^1.7.0
3535

3636
## BUGs or comments
37-
[Create new Issues](https://github.com/amazingandyyy/mern-stack/issues)
37+
[Create new Issues](https://github.com/amazingandyyy/mern/issues)
3838

3939
## Author
4040
[Amazingandyyy](amazingandyyy.github.io)

Diff for: server/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: server/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "mern-stack-server",
2+
"name": "mern-server",
33
"version": "0.0.1",
44
"description": "",
55
"main": "index.js",

Diff for: server/src/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ if(process.env.NODE_ENV != 'production'){
88
module.exports = {
99
jwt_secret: process.env.JWT_SECRET || 'unsafe_jwt_secret',
1010
mongoose: {
11-
uri: process.env.MONGODB_URI || 'mongodb://localhost/mern-stack'
11+
uri: process.env.MONGODB_URI || 'mongodb://localhost/mern'
1212
},
1313
}

Diff for: server/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Authentication from './api/authentication'
1111
import UserRouter from './user/router'
1212

1313
if(!process.env.JWT_SECRET) {
14-
const err = new Error('No JWT_SECRET in env variable, check instructions: https://github.com/amazingandyyy/mern-stack#prepare-your-secret');
14+
const err = new Error('No JWT_SECRET in env variable, check instructions: https://github.com/amazingandyyy/mern#prepare-your-secret');
1515
console.error(err);
1616
}
1717

@@ -30,7 +30,7 @@ app.use(morgan('dev'));
3030
app.use(bodyParser.json())
3131
app.use(bodyParser.urlencoded({extended: false}));
3232
app.get('/ping', (req, res) => res.send('pong'))
33-
app.get('/', (req, res) => res.json({'source': 'https://github.com/amazingandyyy/mern-stack'}))
33+
app.get('/', (req, res) => res.json({'source': 'https://github.com/amazingandyyy/mern'}))
3434
app.post('/signup', Authentication.signup)
3535
app.post('/signin', Authentication.signin)
3636
app.get('/auth-ping', Middlewares.loginRequired, (req, res) => res.send('connected'))

0 commit comments

Comments
 (0)