GithubHelp home page GithubHelp logo

code4romania / civichq-api Goto Github PK

View Code? Open in Web Editor NEW
6.0 10.0 10.0 18.64 MB

API for Centru Civic. The project aims to turn into the public library of Romanian civic tech.

Home Page: http://centrucivic.ro/

License: Mozilla Public License 2.0

JavaScript 47.42% Shell 0.34% TSQL 52.23%
civic-tech code4ro civictech api civic-apps library projects-library

civichq-api's People

Contributors

andrap11 avatar andrapopazu avatar aniri avatar bogdanivanel avatar cvic avatar czmole avatar dependabot[bot] avatar lrdtnc avatar lucianu avatar paul-raetchi avatar puiu avatar raducstefanescu avatar razvanpavel avatar silidragos avatar tbgdn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

civichq-api's Issues

bug - approved apps app model

Data structure-ul pentru modelul app din approved apps are nevoie si de numele imaginii pentru autorul app-ului.

Fallback logo sa pointeze catre assets/images/default-owner.png

Update editapp call to update also the isActive field for apps

The isActive field is a new field that was recently added for apps. The editApp call should be enhanced to permit editing this field.

  • update edit app procedure to include the new field
  • update edit app call - update the info to be saved in db

Best practices

  • codebase language should be English
  • we ๐Ÿ’• unit tests

Update editapp call to update also the Technologies field for apps

The technologies field is a new field that was recently added for apps. The editApp call should be enhanced to permit editing this field.

  • update edit app procedure to include the new field
  • update edit app call - update the info to be saved in db

Best practices

  • codebase language should be English
  • we ๐Ÿ’• unit tests

Handle new technologies field for apps

A new field should be added for apps:

  • update scripts for apps table and add a new column for storing a list of technologies as strings
  • update add and edit app calls - update the info to be saved in db when filling in the add app form to include the list of technologies
  • update the response returned by all calls for retrieving the apps list or info about an app; add the info from the technologies field

Best practices

  • codebase language should be English
  • we ๐Ÿ’• unit tests

[Tests] Write automated Postman tests for the API

Test the most important API calls:

  • get apps โžก๏ธ check that all info for apps are retrieved
  • add app โžก๏ธ check that all info for the app are saved
  • edit app โžก๏ธ check that all info for the app are edited

Useful links:

Let us know if you would like to use a different testing framework ๐Ÿ˜„

Best practices for reporting new issues:

  • add the [Bug] prefix in the title
  • clearly mention the steps to reproduce the bug and the expected behaviour

Fix setup instructions

pm2 start api/server is not needed and it actually causes when an error, because it starts the server without configuration.

Refactor S3 bucket authentication for dev purposes

Refactor S3 bucket authentication for development purposes.
Currently the authentication to the S3 bucket is done using long term access keys and secret key. Needs to be switched to temporary security credentials obtained through IAM roles, to make development a lot more accessible.

Add archiving functionality for apps

Add soft delete functionality

  • add archived flag column in db for apps
  • add a delete call for apps that will mark an app as archived in db
  • only admins have access to this call

Update get apps call for admin

  • apps marked as archived should not be displayed for admin

Best practices

  • codebase language should be English
  • we ๐Ÿ’• unit tests

related to #code4romania/civichq-client#51

Handle new status field for apps

A new field should be added for apps:

  • update scripts for apps table and add a new column for storing the app status: active/not active
  • update add and edit app calls - update the info to be saved in db when filling in the add app form to include the status
  • update the response returned by all calls for retrieving the apps list or info about an app; add the info from the status field

Best practices

  • codebase language should be English
  • we ๐Ÿ’• unit tests

bug - nu se gasesc imaginile

Imaginile nu sunt available la path-ul /assets/images/cevaceva.png desi acestea se gases pe server dupa adaugarea unui app.

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.