Giter VIP home page Giter VIP logo

todo-api's Introduction

Todo web api

Build Status

Lightweight simple todo list web api.

This is my pet project. This application uses just a handful of lightweight libs. I have chosen this approach for the sake of discovering pain points that heavy frameworks (Spring, Hibernate) and other libs solve.

In this project I'm using an existing HTTP server, JSON parsing or security libs.

Instructions

Building

Building only API jar

./gradlew build

Running this command will build fatjar in build/libs/todo-all.jar

Building jar that will serve web and API

This command will pull web project and place it inside jar.

./gradlew stage

Running this command will build fatjar in build/libs/todo-all.jar

Running

Application uses 8080 port.

Basics

Currently this app supports only one user. When launching jar you must pass user credentials.

java -jar todo-all.jar --app-user test --app-pass test

Database configuration

By default this application uses in memory H2 database on boot. But you can configure to use PostgreSQL by passing parameters when launching application.

java -jar todo-all.jar --app-user test --app-pass test --db-url jdbc:postgresql:database --db-user test --db-pass test

Web repository

You can find web code in this repositorytodo-web.

Disclaimer

This project doesn't reflect my values as a software developer. In this project I might be "reinventing the bicycle" just for the sake of implementing it and learning how to solve some problems without external libs.

todo-api's People

Contributors

dovydasvenckus avatar

Watchers

 avatar  avatar  avatar

todo-api's Issues

Clean up code

  • Rework DI code. Check if
  • Remove duplicated code in controllers
  • Check if TodoService needs to have TodoListService as dependencie
  • Review scopes. Use package scopes where it's posible

Uplift jade to pug

Jade changed project name to pug. It would be nice to use latest version of templating engine.
Also it would be good to uplift other outdated JS libs

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.