Coder Social home page Coder Social logo

nikolastas / marketapp Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 8.89 MB

This is a full application for a marketApp.

License: MIT License

Python 12.40% JavaScript 18.00% Kotlin 0.08% Swift 0.26% Objective-C 0.02% Dart 49.65% HTML 2.56% CMake 5.23% C++ 11.32% C 0.48%

marketapp's Introduction

MarketApp

This is basicly an app to organize your shopping list for your grocesery items.

Basic app fetures:

  • Every group or household has its own list.
  • Short lists based on the topological order of every store.
  • Items can be edited, deleted or added by users.
  • Supported store locations can be viewed in maps.

It includes a backend written in Javascript and a flutter andrdoid frontend.

Please read the how to download section if you want to download or use the app.

It really helps young developers to star their project's so please if you find this project interesting , you know what to do!

Backend

A node js API .
This basic backend API, is using endpoinds which you can find at the basic requests section of the README.

Authentication.

Basicly the response sents a cookie that the reciptent should save it localy. Every request after login or signup should have a cookie or a headers parameter as the request sent.
Requests use the x-www-form-urlencode body form.

Signup

A POST sign up request must contain the unique username , unique email , a password and a group (optional).

Login

A POST login request must contain only username and the password. In the database , before store the password they are actually hashed.

Logout

Logout request doesnt require databse conection only deletes the stored cookie.


Basic Requests

Request type Request API Call Expencted Response Authentication Commends
GET / "welcome" NO see if docker is working
GET /health { "status":"ok" } NO check the health of the API
POST /login { "username": {username}, "email": {user_email}, "group":{group}, "token": {token} } NO if login was succesful the system return this json object also sets up a token given from backend in the cookies senction
POST /signup { "username": {username}, "email": {user_email}, "group":{group}, "token": {token} } NO if signup is successful return this json object also sets up a token given from backend in the cookies senction (automatic login)
POST /logout " user logout" YES succedes only if user is loged out
POST /change-password "password updated" ??(under construction) ?? (under construction)
GET /checkUser {"username" : {username} } YES returns the usernmae if user is logged in
POST /add "added to database!" YES Items are inserted based on the item id , currently items may have duplicate names (not suggested).
POST /edit "object updated successfully in database!" YES Items are also updated based their id . Item name , category and quantity can be changed.
POST /delete "deleted from the database" YES items are deleted based on the their id
GET /market-items A list of json items like : { "item_name": "cheerios", "category": {item category}, "quantity": {item quantity}, "lastModified": {item last modified}, "_id": {item_id} } YES Authentication here is a must since the authentication is used to get the group of the user.
GET /markets A list of json objects : {"super_market_name": {super_market_name}, "address": {super_market_address}} YES Get the markets address and name
GET /super-categories A list of the large categories that we use to shot the item categories. YES
GET /items-shorted/:market A lists of lists . The items returned shorted based on the topological order which is on the database. YES This is basicly the heart of my API.

Frontend - App

This is an app to give my backend a form . To do that a flutter is used . You could see some of the basic utilities above:... root page (no login no signup):

root page

login page :

root page


sign up page :

root page


Items page:


root page

Markets page:


root page

Ordered List based on Market:


root page

Add item:


root page


root page

Profile page:


root page

Support:


root page

# Donwload the app

You can find the file to download here.

Propably you have to accept unkown sources to install it to your android phone.

After installation you should see this icon to your phone.


root page

Opening the app you should be able to see the root page.

Please make a account and fill in a 1 to 10 characters as your group-name. After successfully signing up you are able to see the app.

If you want to see your groupname again got to the profile app.

If you want to contact me for anything you are to do so in the support.

All the other tabs are pretty easy to find on your own.

This readme will be updated often. I will try to solve every issue.

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.