Coder Social home page Coder Social logo

tardog / schutzstreifen Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 221 KB

Interactive map with user-contributed hazards for cyclists, such as dangerous intersections, unsafe or missing cycle lanes, parking cars.

Makefile 1.64% Go 72.44% HTML 20.08% Dockerfile 0.82% JavaScript 2.74% SCSS 2.29%
cyclists buffalo-framework golang bicycle-infrastructure

schutzstreifen's People

Contributors

dependabot[bot] avatar tardog avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

schutzstreifen's Issues

Implement admin user with special permissions

Currently, every user has access to everything, including the CRUD for models such as HazardType or User, which should not be manageable by regular users.

The goal is to have a dedicated admin user account for this kind of higher access level. Everyone else should just be able to register, add new hazards, and edit their own hazard entries.

Improve validation of user input

Validation needs to be concise, clear, and prevent unexpected or malicious input whenever possible. Types are enforced during request model binding - maybe validation should happen before that to prevent the application from running into an error.

In addition, the errors should to be presented nicely on the frontend.

Make sure all errors are handled properly

There is still debug output (stack traces) happening on several occasions. That kind of sensitive information should be logged somewhere, but not exposed to the user by the frontend.

Clean up duplicated code and comments

During experimenting and learning the Gobuffalo framework, a lot of duplicate boilerplate code has been introduced, along with a huge amount of single-line comments explaining what the code does (as if that wasn't obvious).

The comments should be cleaned up, and code duplication should be reduced where it seems sensible to do so.

Add more tests. A LOT more tests.

The app needs better test coverage. Every important route should at least be covered by integration tests (using a test database), including happy cases and error cases.

Since there is very little business logic - as opposed to framework code - testing isolated units should be considered only when integration testing doesn't cover everything.

existance of running instance

First things first: I love the idea of the project!
Another thing: is there an instance running somewhere? Or is it supposed to be running for each campaign on its own? Please expand the question as you see fit to elaborate :)

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.