Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tcampbppu/mean_01

Easy Deployment for new apps.
https://github.com/tcampbppu/mean_01

angular7 express javscript jsonwebtoken mysql nodejs

Last synced: 22 days ago
JSON representation

Easy Deployment for new apps.

Awesome Lists containing this project

README

        

# Full MEAN APP

MySQL Express Angular Nodejs stack application with authentication using JSON web tokens

## Description
This app is to help speed up the process of deploying new MEAN (using MySQL) applications.

## Installation

Create `credentials.js` in the main directory

The credentials file should look similar to this:

```
module.exports = {
port: SOME_PORT,
url: "YOUR_URL",
host: "DB_HOST_URL",
user: "DB_USER",
password: "DB_PASSWORD",
database: "DB",
cookieSecret: "ENTER_YOUR_SECRET"
};
```

Install the dependencies for root directory

```sh
$ npm install
```

### Setting up Angular 7

Enter Angular Src
```sh
$ cd angular-src/
```

Install the Angular dependencies

```sh
$ npm install
```
Return to root directory

```sh
$ cd ..
```

Run app

```sh
$ npm start
```

If all steps were followed the console should print: `Server listening on 3000 press Ctrl-C to terminate`

Go to your browser at `localhost:3000`

#### You will need to update the table names and tables fields in both `db.js` & `routes/users.js`
I am still wokring on better way to encapsulate those processes. Stay tuned...