Grateful Place is a wall-style forum which uses Clojure for an API server, Datomic for the db, and Angular for the front end.
-
Fork the repo
-
Clone the repo
-
cd gp2/server
-
APP_ENV=memory lein run server
- this will start a web server on port 8080. Every time you start the server, the application will create an in-memory database and run all migrations. Two users are available by default: "flyingmachine" and "joebob", both with the password "password".Optional check out
server/resources/config/development.edn
for Datomic URI options. Run the app withlein run server
(development is the default APP_ENV) -
In a separte shell,
cd gp2/html-app
-
npm install; bower install
-
grunt server
- this will start the grunt server which will compile changes as you make them. Reload localhost:8080 to see your changes.
- Fork and clone the repo
cd gp2/html-app
npm install; bower install
grunt server
You might run into some weird issues when working with the Angular app
without the API server. This is because the $resource module gets
stubbed out, which you can see in
gp2/html-app/app/scripts/init.coffee
. Personally, I think it's
better to get the API server running using the instructions. If
there's a better way to run the Angular app without the API server,
I'd love to see that implemented!
gp2/server
contains the API server written in Clojuregp2/html-app
contains a yeoman-generated Angular project- Styles are in
gp2/html-app/app/styles
._base.scss
defines common mixins and variablesmain.scss
defines basic styles and includes all other, more specialized styles_layout.scss
defines the grid- All other Sass partials (files beginning with an underscore) are
more specialized in some way.
_posts.scss
, for example, has post-related styles.
Please create a pull request for your changes :)
- Drag and drop images