- Facebook authentication and authorization.
- Using google map API to retrieve needed information for the user location.
- Store neede information from facebook into Redis(Mongodb) local server.
For Angular 2 development information and wiki, look here:
- Angular2-Seed Wow wow it's our parent :)
- Angular2-Seed-WIKI Wiki Information about Seed!
- Angular2-Seed-Advanced It's a Nathan's Walker child seed for multi-platform Angular2 apps.
git clone --depth 1 https://github.com/IpIvanov/angular2-seed-express
cd hitchhiking-app
# install the project dependencies
$ npm install
# watches your files and uses livereload by default
$ npm start
# api document for the app
# $ npm run build.docs
# dev build
$ npm run build.dev
# prod build
$ npm run build.prod
# run Redis
$ src/redis-server
# stop Redis
$ src/redis-cli
$ shutdown SAVE
# run Express server (keep in touch, only after `npm run build.prod` )
$ node app.server.prod.js
# or development
$ node app.server.dev.js
# run server in daemon mode
$ pm2 start app.server.prod.js
Before starting development. Run you development server:
# run dev server
$ node app.server.dev.js
Express server run for prod build.
# run Express server (keep in touch, only after `npm run build.prod` )
# keep in mind that prod build will be builded with prod env flag
$ node app.server.prod.js
# run Express server in dev mode
$ node app.server.dev.js
For daemonize your server I propose to uze PM2
.
# before daemonize production server `npm run build.prod`
$ pm2 start app.server.prod.js
# restart only your project
$ pm restart <id>
# restart all project on daemon
$ pm2 restart all
# in cluster mode ( example 4 workers )
$ pm2 start app.server.prod.js -i 4
More details about PM2
src/server/index.js
var _clientDir = '../client'; // Dist prod folder.
app.server.dev.js
// Configure server Port ( keep in mind that this important if you will use reverse-proxy)
// Dev mode will give you only middleware.
// WARNING! DEPEND ON YOUR Angular2 SEED PROJECT API CONFIG!
/**
* @ng2 Server Runner `Development`.
*/
require('./server')(9001, 'dev');
app.server.prod.js
// Configure server Port ( keep in mind that this important if you will use reverse-proxy)
// Prod mode give you middleware + static.
// WARNING! DEPEND ON YOUR Angular2 SEED PROJECT API CONFIG!
/**
* @ng2 Server Runner `Production`.
*/
require('./server')(9000);
- About Redis.
- Download and install latest stable version of Redis.
- Documentation about Redis.
After installation we need to start our server:
# start server
$ src/redis-server
- Redis Persistence
- Redis More Properties
- In progress
- In progress
MIT