GithubHelp home page GithubHelp logo

buddybudget's Introduction

Description

Nest framework TypeScript starter repository.

Prerequisites

  • Node >= 12
  • Docker >= 18 and Docker Compose
  • Angular CLI installed globally npm install -g @angular/cli

Installation

npm install

Running the App

docker-compose up buddybudget-sql
npm run build
npm run start:prod

Both the frontend and backend is served by the node backend on port 3000.

Setting up Development Environment

The best development experience is achieved, like so

  1. Ensure database is running

    docker-compose up buddybudget-sql   
  2. The backend can then be started, like so:

    npm run start

    To restart the backend automatically on file changes and enable debugging use this command instead:

    npm run start:debug
  3. Start the frontend

    npm run start:frontend

The frontend and backend will now be available on port 4200 and 3000, respectively. And both will be reloaded automatically on changes.

Inserting data

curl -F upload=@data/bankStatement_skandia.xlsx "http://localhost:3000/api/transactions/batch/xlxs?format=skandia"
curl -F upload=@data/bankStatement_norwegian.xlsx "http://localhost:3000/api/transactions/batch/xlxs?format=norwegian"

Test

Test coverage has not yet been implemented, coming soon.

# unit tests
npm run test

# e2e tests
npm run test:e2e

# test coverage
npm run test:cov

Boilerplate

These are the initial commands used to create this project.

  1. nest new buddybudget
  2. cd buddybudget
  3. nest new ng-app client ## Select don't initialize
  4. ng new client
  5. npm i --save @nestjs/typeorm typeorm
  6. npm install pg --save
  7. ng add @angular/material

buddybudget's People

Contributors

carlba avatar dependabot[bot] avatar mblomdahl avatar

Stargazers

 avatar

Watchers

 avatar  avatar

buddybudget's Issues

`npm run start` fails

After doing npm install and proceeding to next section Running the App in README, npm run start fail with the following error:

image

`npm run test` fails

After checking out the repo and running npm install, tests fail with the following error:
image

Add a delete button to the transaction view

  • Ensure that the existing transaction backend delete endpoint works.
  • Ensure that the existing transaction frontend service and controller implements the backend
    route correctly.
  • Add a delete button to the table in the transactions view in a new column.
    • The button should delete the transaction on the backend
    • On successful deletion the item should be removed from the UI Table.

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.