Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsmunim/astro
https://github.com/itsmunim/astro
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsmunim/astro
- Owner: itsmunim
- Created: 2017-11-13T19:25:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T06:17:41.000Z (almost 7 years ago)
- Last Synced: 2024-02-23T09:43:04.137Z (9 months ago)
- Language: JavaScript
- Size: 184 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
Awesome Lists containing this project
README
#### Setup
- `npm install -g gulp bower pm2`
- `npm install`
- `bower install`#### Frontend
- `gulp serve`##### Building for deployment
- `gulp`##### Running from built distro
- `gulp serve:dist`#### Backend for Frontend(*[BFF](http://samnewman.io/patterns/architectural/bff/)*)
##### Run server
- `node server/index.js`##### API for Frontend
- `/api/channels` - get all the channels with necessary info (paginated)
- `/api/channels/all` - get all the channels at once
- `/api/channels/:channelId` - get single channel info
- `/api/channels/:channelId/events` - get single channel events
- `/auth/facebook` - facebook login
- `/auth/logout` - logs out and deletes an existing user
- `/user/me` - `GET` to get user profile, `PUT` to update
- `/events/all` - get all events for all channels within time specified
by `startDate` & `endDate`#### Run both Frontend and Backend
- `npm start`#### Build and Run for Production Environment
- `gulp`
- `npm install pm2 -g`
- `pm2 start server/index.js -i 4` (spin up 4 instances and let pm2 load
balance)Check out the [live](http://ec2-18-217-186-253.us-east-2.compute.amazonaws.com:8080) site.