Skip to content

quantu-app/quantu-server

Repository files navigation

QuantU Web Service

Metrics

Coverage Status

Setup & Installation

# install gems
bundle install

# docker postgres (optional)
docker run --rm -d --name quantu-postgres \
    -p 5432:5432 \
    -e POSTGRES_PASSWORD=postgres \
    -e PGDATA=/var/lib/postgresql/data/pgdata \
	-v $(pwd)/postgresql:/var/lib/postgresql/data \
    postgres:15-alpine3.17

# create the local database dev and test databases
rails db:create
RAILS_ENV=test rails db:create

# migrate database
rails db:migrate

# run development seeds (creates users)
rails db:seed

# start up the application
rails s

# run the tests
rspec

# open up the swagger documentation
# goto: http://localhost:3000/api-docs
# login and copy and set the token you get back in the authorize button to `Bearer <token>`.

How To's:

Creating a user

> rails c
irb(main)> User.create!(username: "nathanfaucett", email: "[email protected]", password: "password", password_confirmation: "password")

About

The QuantU Server Application and Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages