Code Monkey home page Code Monkey logo

dndb's Introduction

dbnd

This is the dbnd project.

Development mode

To start the Figwheel compiler, navigate to the project folder and run the following command in the terminal:

lein figwheel

Figwheel will automatically push cljs changes to the browser. The server will be available at http://localhost:3449 once Figwheel starts up.

Figwheel also starts nREPL using the value of the :nrepl-port in the :figwheel config found in project.clj. By default the port is set to 7002.

The figwheel server can have unexpected behaviors in some situations such as when using websockets. In this case it's recommended to run a standalone instance of a web server as follows:

lein do clean, run

The application will now be available at http://localhost:3000.

Style compilation

To compile sass sources and then watch for changes and recompile until interrupted, run

lein sass4clj auto

Optional development tools

Start the browser REPL:

$ lein repl

The Jetty server can be started by running:

(start-server)

and stopped by running:

(stop-server)

Building for release

lein do clean, uberjar

Deploying to Heroku

Make sure you have Git and Heroku toolbelt installed, then simply follow the steps below.

Optionally, test that your application runs locally with foreman by running.

foreman start

Now, you can initialize your git repo and commit your application.

git init
git add .
git commit -m "init"

create your app on Heroku

heroku create

optionally, create a database for the application

heroku addons:add heroku-postgresql

The connection settings can be found at your Heroku dashboard under the add-ons for the app.

deploy the application

git push heroku master

Your application should now be deployed to Heroku! For further instructions see the official documentation.

dndb's People

Contributors

unwarysage avatar merki002 avatar

Watchers

James Cloos avatar  avatar

dndb's Issues

Proposed structure

We need a scope and idea for our project, here's my proposal.

DbND

A message board for heroes and quest givers to exchange job postings.

Database layout.

  • Heroes: a table for heroes, consisting of name,class, race, level, and bio
  • Quests: a table for quests given. Name, location, reward, notes.
  • Patrons: A table of those who can afford to give quests. Name, location.
  • Offers: a junction table, between patron and quest ids. Each entry has it's own id.
  • Claims: a table for "we did that" claims. contains offer id,the hero id, the amount that was paid, and the date it was made.

Database features

We will be using the following features.

  • Views to sort out completed claims
  • Triggers to automate paying claims in full if the amount is left blank, this should also include a procedure.
  • Functions to take a hero and produce a terse bio. Eg "Sha-fu, Elf Monk."

Site features

  • View heroes
  • View a specific hero.
  • View an offer, and claim it as a hero.
  • View claimed offers.
  • Mark an offer paid or custom payment.

Stretch goals

  • Make new hero
  • Make new offer
  • Make new patron

Make server in Node

If the class structure insist on a node.js app, then we can comply with this by making the server in node.js and the frontend in clojurescript. I can handle a large chunk of the frontend, and this way we still get the node experience the teacher wants.
On the flipside, then you are having to learn two new languages.

DBnD in MariaDB

I have created a database and done at least one entry in all of the tables. We will need more items in it, but I figured this would be an ok starting point. I may try to create a Hero search option or some imbedded queries that may be able to be used on the website.

Website

Possibly create a search bar and allow them to create a character in the database or quest from website.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.