Giter Site home page Giter Site logo

thinhbg59 / fm-hours Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frontmen/fm-hours

0.0 1.0 0.0 16.54 MB

Frontmen time registration tool

Home Page: fm-hours.vercel.app

SCSS 0.61% JavaScript 2.70% Vue 58.53% TypeScript 38.11% Shell 0.05%

fm-hours's Introduction

fm-hours

FrontMen - Hours registration

Pre-requisites

Getting started

Clone this repo and install the dependencies:

yarn install

Create a .env based on .env.defaults. You can reach one of the team members for the credentials, or, if you have access to Vercel, get it from there.

๐Ÿ’ก Be sure you're using development keys.

Development

Since this project uses Vercel's lambda functions (via /api), instead of using the traditional yarn dev, you'll need to use Vercel CLI.

After doing login, run:

yarn vercel

It might ask you some questions about the project like Organization and if you want to link an existing project.

After that, a .vercel folder will be created with some sensitive files and a server will be boot and up running at http://localhost:3000

๐Ÿ’ก .vercel folder should never be commit.

Build

This project uses Nuxt, targeting static web app. To create a build you simply have to run:

yarn build

This command will run a build and generate the static assets in dist folder.

Adding a new API endpoint

For every single request which needs to be made server-side, we use Serverless Functions from Vercel.

To add a new one, create a new file under /api/ folder with the route name:

.
โ””โ”€โ”€ api
    โ””โ”€โ”€ auth.ts

Then you're good. Now, be able to reach this endpoint via https://<preview-url>/api/auth.

Do not forget to add unit tests to ensure it's working as you expect ๐Ÿ˜‰

fm-hours's People

Contributors

italoteix avatar corsico avatar bart-haasbroek avatar markuswind avatar raulfdm avatar sanderdejong88 avatar deanmw avatar mmehmetaliizci avatar yejunwu168 avatar tomherni avatar dependabot[bot] avatar dunkvader avatar cool-ka avatar qstyler avatar shadymohammed avatar brunoal avatar logicaroma avatar

Watchers

James Cloos 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.