Git Product home page Git Product logo

company-site-backend's Introduction

own-html-site-backend

Getting started

To start the service locally go to the /functions folder run npm install. Now you can start the function locally, but as the function is written in typescript, we suggest to use 2 separate terminal one to compile the other to run the function. Accordingly in the first terminal enter npm run build, in the second terminal enter npm run serve. If you add any changes please execute the npm run build again. This way the compiled javascript will change in the function, so you can see the changes right away. Please keep in mind the function will still need some restarts form time to time.

If you want to deploy it, you can do so by compiling then run the npm run deploy command. You might have some issues to open the endpoint to everyone, not just authenticated users. If so have a look at this

Function secrets

You can add a new secret with this firebase feature. With the create new secret button you can create a new secret that you can use in your function right away. To be able to use it locally, or create the secret programatically please have a look at this page

Send email

We decided to use mailgun for this purpuse as we would like to use this service to be the backend for a contact us form, we can easily fin into the free tier that offers 5000 emails a month. It is a really well documented API, so its quite easy to set it up.

company-site-backend's People

Contributors

ivangergo3 avatar

Watchers

 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.