Coder Social home page Coder Social logo

finance-tracker-frontend's Introduction

About

This is a financial tracker website made with simple HTML, CSS, and Javascript connecting to Node.js Backend. It's a SPA (Single Page Application), since it's running on barebone html and plain js, it won't have same feature like modern framework such as React / Vue. For example, if you do manually type the url and load it will return not found. All the redirection is need to be done by interraction with the content.

How to run this locally

  1. This have config.js that manage the environment variable, so we can switch between environment /js/config.js

  2. if you want to use local data (other than the sign in & sign up), just change the value of NODE_ENV to something else then development

  3. make sure port 8080 & 3000 are available

  4. make sure to run the backend, otherwise you won't be able to sign in (instruction in backend Readme.md)

  5. then run npm run start it will automatically open browser

How to run against backend on cloud

  1. you just need to change the API_URL the same as production one
API_URL: https://finance-tracker-backend-zbxuhg7gpq-as.a.run.app
  1. This website is hosted in github pages under this domain
FRONTEND_URL: https://salismt.github.io/finance-tracker-frontend

How to develop

  1. make sure to commit and push your code in the main branch
git add -- .
git commit -m "add feature"
git push origin main
  1. then build the dist build, this will create the distribution files
npm run predeploy
  1. upload this to github-pages
npm run deploy

How to deploy

Commit the changes

git add -- .
git commit -m "commit"

Then build the image

npm run build
gcloud builds submit --tag gcr.io/edinburgh-finance-tracker/finance-tracker-frontend .

Run the deployment

gcloud run deploy finance-tracker-frontend \
    --image gcr.io/edinburgh-finance-tracker/finance-tracker-frontend \
    --platform managed \
    --allow-unauthenticated

Then select asia-southeast1 when the prompt comes

finance-tracker-frontend's People

Watchers

Salis avatar

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.