An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/cdelmoral/microposts.svg?branch=master)](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`