GithubHelp home page GithubHelp logo

caulagi / rustwebapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kordless/rustwebapp

0.0 3.0 0.0 219 KB

Rust web app demo with Iron and Postgres

Makefile 3.98% Rust 88.78% CSS 0.45% JavaScript 0.40% HTML 6.39%

rustwebapp's Introduction

rustwebapp

wercker status

Crates used:

Postgresql Docker Commands

I recommend using this Docker image https://github.com/sameersbn/docker-postgresql and using a Makefile like this.

all: build

build:
	@docker build --tag=${USER}/postgresql .

remove:
	docker rm postgresql

create: 
	docker run --name postgresql -d \
	-e 'DB_USER=dbuser' \
	-e 'DB_PASS=dbpass' \
	-e 'DB_NAME=dbname' \
	-e 'PSQL_TRUST_LOCALNET=true' \
	-v /opt/postgresql/data:/var/lib/postgresql \
	-p 5432:5432 \
	sameersbn/postgresql:9.4-1

stop:
	docker stop postgresql

start:
	docker start postgresql

connect:
	docker exec -it postgresql sudo -u postgres psql

.PHONY: start

Rustwebapp Docker Commands

build:
	docker build -t=rustwebapp .

run:
	docker run --name=rustwebapp --rm=true -i -t -p 8080:8080 -e DATABASE_URL=postgres://dbuser:dbpass@dbname:5432/test --link=postgresql:dbname rustwebapp

stop:
	docker stop rustwebapp

start:
	docker start rustwebapp

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.