Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swlkr/majestic
The most majestic, most monolithic lein template
https://github.com/swlkr/majestic
clojure lein-template monolith monolithic
Last synced: 3 months ago
JSON representation
The most majestic, most monolithic lein template
- Host: GitHub
- URL: https://github.com/swlkr/majestic
- Owner: swlkr
- License: epl-1.0
- Created: 2017-02-20T01:20:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-20T01:25:06.000Z (almost 8 years ago)
- Last Synced: 2024-08-07T20:36:22.736Z (6 months ago)
- Topics: clojure, lein-template, monolith, monolithic
- Language: Clojure
- Homepage: https://medium.com/@swlkr/a-majestic-monolith-api-in-clojure-8c16d5ba18c8#.lqa9jvgmw
- Size: 16.6 KB
- Stars: 8
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# majestic
## Usage
```bash
lein new majestic your-project-name
```## What Just Happened?
Files were created! Files!
```bash
your-project-name
├── README.md
├── profiles.clj
├── project.clj
├── resources
│ ├── migrations
│ │ ├── 20170218150305_add_hstore_ext.edn
│ │ └── 20170218150305_create_users_table.edn
│ └── sql
│ └── users.sql
├── src
│ └── your_project_name
│ ├── core.clj
│ ├── db.clj
│ ├── env.clj
│ ├── http.clj
│ ├── logic
│ │ ├── tokens.clj
│ │ └── users.clj
│ ├── routes.clj
│ ├── server.clj
│ └── utils.clj
├── target
└── test
└── your_project_name
├── db_test.clj
├── logic
│ ├── tokens_test.clj
│ └── users_test.clj
├── routes_test.clj
└── server_test.clj
```You can do a few different things, you can run all the tests with `lein test` or you can `lein repl` in and type `(start)` or you can deploy straight to heroku and run `heroku run lein migrate` to get the db up and running. It gives you what I think is the smallest set of working code to start a monolithic api.
## License
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.