Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b1a72e1

Browse files
committed
ready for heroku deployment
1 parent 60b7d2c commit b1a72e1

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

‎README.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The repo is using the following tech, I will break them down one by one for ease
3030

3131

3232
### Break down
33-
> `index.js`
33+
> `index.js`
3434
3535
The code below takes care of calling all the database functions to you index.js file.
3636
```sh
@@ -55,7 +55,7 @@ The function calls `saveUser` from the `models` and then saves the user, and ret
5555
If the function fails to register it returns a 400 error to the user.
5656
If you want to learn more click: [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
5757
```sh
58-
/* The function below
58+
/* The function below
5959
app.post('/createUser',(req,res,next)=>{
6060
saveUser(req.body).then((result)=>{
6161
return res.header('x-auth', result.token).send({email : result.email});
@@ -118,6 +118,8 @@ saveUser = (userinfo) => new Promise((resolve,reject)=>{
118118
To get it to the cloud either click the button below to deploy to heroku
119119
or just manually change the database to get a db in the cloud and push it to the server of your choice ( heroku, aws, digital ocean)
120120
121+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/nihitx/node-mysql-express-template-v1/tree/master)
122+
121123
### Final
122124
123125
To know more about how to setup a perfect architecture. Read the article below.
@@ -132,4 +134,3 @@ License
132134
MIT
133135
134136
**Free Software, Hell Yeah!**
135-

‎app.json‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "node-mysql-express-template-v1",
3+
"description": "Node mysql express template version 1 is a easy to use template, for any start-ups to download and get started with. It can be pushed to a cloud service in a matter of seconds.
4+
",
5+
"repository": "https://github.com/nihitx/node-mysql-express-template-v1",
6+
"logo": "https://rawgit.com/heroku/node-js-sample/master/public/node.svg",
7+
"keywords": ["node", "express", "mysql"]
8+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /