A boilerplate application used to scale applications faster. Using various node modules to build a solid foundation for any application. Which include user authentication, authorization, mailing, flash messages, OAuth, Mocha testing suite, PostgreSQL, MongoDB and more.
- pg-promise: https://github.com/vitaly-t/pg-promise
- body-parser: https://github.com/expressjs/body-parser
- cors: https://github.com/expressjs/cors
- Git clone this project
- Open up Terminal or Command line
- Navigate to the directory where the project was cloned to
- Run this command: psql -f ./config/db/schema.sql
- This command will create a PostgreSQL database along with the tables
- Setup environment variables:
- Create .env file in your project root with this variable
DATABASE_URL=postgres://localhost:5432/node_express_starter_app
- To run the application, you need to install the dependencies, run this command: npm install --save
- To start the application, run this command: npm start
- The application will run at: localhost:3000, if that port is already in use, run this command: PORT=1738 npm start
- This command will start the server at: localhost:1738