https://github.com/techgaun/invoice-mongo-test
Sample Invoice App With Elixir, Phoenix 1.3, Mongodb_ecto
https://github.com/techgaun/invoice-mongo-test
elixir
Last synced: about 1 year ago
JSON representation
Sample Invoice App With Elixir, Phoenix 1.3, Mongodb_ecto
- Host: GitHub
- URL: https://github.com/techgaun/invoice-mongo-test
- Owner: techgaun
- Created: 2018-09-23T06:50:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T18:26:58.000Z (over 7 years ago)
- Last Synced: 2025-02-11T21:51:41.459Z (about 1 year ago)
- Topics: elixir
- Language: Elixir
- Size: 76.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Invoice
### Setup
- Configure MongoDB
```
# with auth = false
use admin
db.createUser({ user: "mongodb" , pwd: "mongodb", roles: [{role: "userAdminAnyDatabase", db: "admin"}]})
# enable auth = true
# finally create db and db user
use invoice_dev
db.createUser({ user: "invoice" , pwd: "invoice", roles: ["readWrite", "dbAdmin"]})
```
### API Documentation
- Access the API documentation at http://localhost:4000/apidocs
- If you change swagger definition, run `mix phx.swagger.generate` to regenerate swagger.json definition

### Test and Coverage
```
mix coveralls.html
```
To start your Phoenix server:
* Install dependencies with `mix deps.get`
* Start Phoenix endpoint with `mix phx.server`
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
Ready to run in production? Please [check our deployment guides](http://www.phoenixframework.org/docs/deployment).
## Learn more
* Official website: http://www.phoenixframework.org/
* Guides: http://phoenixframework.org/docs/overview
* Docs: https://hexdocs.pm/phoenix
* Mailing list: http://groups.google.com/group/phoenix-talk
* Source: https://github.com/phoenixframework/phoenix