https://github.com/cdelmoral/microposts
AngularJS Tutorial (server): sample application
https://github.com/cdelmoral/microposts
Last synced: 3 months ago
JSON representation
AngularJS Tutorial (server): sample application
- Host: GitHub
- URL: https://github.com/cdelmoral/microposts
- Owner: cdelmoral
- Created: 2015-07-27T04:35:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-04-05T04:02:51.000Z (about 6 years ago)
- Last Synced: 2025-01-18T08:24:20.696Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 427 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/cdelmoral/microposts)
# Microposts: sample application (server)
This is the sample application (server side) for the
[*Ruby on Rails Tutorial:
Learn Web Development with Rails*](http://www.railstutorial.org/)
by [Michael Hartl](http://www.michaelhartl.com/) done with [AngularJS](https://angularjs.org).## Instructions
Clone repository and run `npm install`. Make sure to have [mongoDB](https://www.mongodb.org) installed in your computer.
### Development
Create an `.env.json` file with the following structure:
```
{
"DB_URL": "mongodb://localhost/microposts",
"SECRET": "secret",
"MAILGUN_DOMAIN": "localhost",
"MAILGUN_PORT": 1025,
"CLIENT_HOST": "http://localhost:4200"
}
```### Production
Create the following environment variables:
- `DB_URL`: `mongodb://localhost/microposts`
- `SECRET`: `secret`
- `MAILGUN_DOMAIN`: `mailservice.com`
- `MAILGUN_SMTP_SERVER`: `smtp.mailservice.com`
- `MAILGUN_SMTP_LOGIN`: `login`
- `MAILGUN_SMTP_PASSWORD`: `password`