https://github.com/austinpray/starport-database
silly rails webapp for a database class
https://github.com/austinpray/starport-database
silly
Last synced: about 1 year ago
JSON representation
silly rails webapp for a database class
- Host: GitHub
- URL: https://github.com/austinpray/starport-database
- Owner: austinpray
- Created: 2017-01-19T01:25:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T05:16:16.000Z (about 9 years ago)
- Last Synced: 2025-02-13T13:32:00.758Z (over 1 year ago)
- Topics: silly
- Language: Ruby
- Homepage: https://starport.herokuapp.com
- Size: 2.88 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Starport Database
## TODO and Code Quality
This is a one-off school project for a database class. The primary effort was in the schema. The interface was essentially an afterthought for a flashy demo. As such: this is not a very good example of quality rails code. This app needs help in the following areas:
- DRY up controllers
- Make controllers leaner
- Organize controllers better (welcome_controller)
- Copy pasted template partials
- Possible XSS vulnerabilities with SVG?
- ActionCable state is not preserved, it only relays messages from clients. This means a user has to move their ship to be seen after a new user connects.
## Run with Docker
>Docker automates the repetitive tasks of setting up and configuring development environments so that developers can focus on what matters: building great software.
[Learn more about what docker is.][Docker what]
Install [Docker][] on your system. [Install Guide][Install Docker].
Install the deps
```
docker-compose run --rm web bundle install
```
Create the db and run the migrations
```
docker-compose run --rm web bin/rails db:create
docker-compose run --rm web bin/rails db:migrate
```
Run the app
```
docker-compose up
```
It should now be running at [http://localhost:3001](http://localhost:3001)
## Run Standalone
Needs Ruby 2.4 and postgres installed on your computer
[Docker]: https://www.docker.com/
[Install Docker]: https://docs.docker.com/engine/installation/
[Docker what]: https://www.docker.com/what-docker