MySQL Express Angular Nodejs stack application with authentication using JSON web tokens
This app is to help speed up the process of deploying new MEAN (using MySQL) applications.
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
$ npm install
Enter Angular Src
$ cd angular-src/
Install the Angular dependencies
$ npm install
Return to root directory
$ cd ..
Run app
$ 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
I am still wokring on better way to encapsulate those processes. Stay tuned...