GithubHelp home page GithubHelp logo

studentit-roster-summary's Introduction

StudentIT Roster Summary

Managers need to verify hours against the roster before they can approve timecards. This program creates an email summary of the last roster period (2 weeks) to assist in this process.

Prerequisites

  • An AWS account with AWS Lambda access

Development Environment

  1. Install .NET Core (https://www.microsoft.com/net/core)
  2. Install NodeJS (https://nodejs.org/en/download/)
  3. Install Serverless Framework (https://serverless.com/framework/docs/getting-started/)
  4. Set up AWS credentials
serverless config credentials -p aws --key $YOURKEY --secret $YOURSECRET

Building

Linux

./scripts/build.sh

Windows

powershell .\scripts\build.ps1

Deployment

Valid stages are: dev / test / production

Uploading a new version

Infrastructure changes

serverless deploy --stage production -s $STAGE

Code changes

serverless deploy function -f summary -s $STAGE

Removing all resources

serverless remove

Usage

Invoking

serverless invoke -f summary -s $STAGE -l

Logs

serverless logs -f summary -s $STAGE -t

Helpful commands

powershell .\scripts\build.ps1 && serverless deploy -s dev && serverless invoke -f summary
serverless logs -f summary -t

Email -> Name translation

The translation depends on a file called people.db in the extra folder. It is a sqlite database of the form

CREATE TABLE "Employees" ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `name` TEXT NOT NULL, `email` TEXT NOT NULL UNIQUE )

Insert people into the database with

INSERT INTO Employees ('name', 'email') VALUES ('YOUR_NAME', 'YOUR_EMAIL')

Libraries

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.