Giter Site home page Giter Site logo

kaliacad / atracker Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 5.0 5.96 MB

This attandance tracker app helps log student attendance at a coding academy in Goma, DRC

Home Page: https://app-attendance-gda.onrender.com/

License: MIT License

JavaScript 51.12% CSS 7.73% EJS 41.15%
academy

atracker's Introduction

Attendance Tracker (AT)

AT is a web app that helps tracks attendance of students in a bootcamp or a coding school. It was initially developped for Kinshasa Digital Academy, Goma campus (2022), but AT app can be used in any small or mid-sized school.

Getting started

These instructions will get you a copy of the project up and running on your local machine for usage, development and testing purposes. You can also view the demo app and test the app:

  • usernam: admin
  • pasword: admin123

Prerequisites

  • have Nodejs installed
  • have a running instance of an SQL database (Postgres)
  • create a database (you'll need to add information in .env file)

Installation

  • make a copy of this project
  • cp .env.example .env and add all necessary database credentials
  • run npm install to install all dependencies
  • run npm run db:setup to create tables and populate them with dummy data

Working with the database migration

This section is optional, you can skip it. To manipulate Postgres database, I use Sequelize ORM. Here you can find some automated script to work with migratrion and seeding.

  • npm run migrate:status: see the status of available migrations (up and/or down)

  • npm run migrate: run the migration with the latest migration file

  • npm run migrate:revert: revert migration

  • npm run seed: seed db with dummy data (as for now, you'll have an admin user with admin123 as password)

  • npm run seed:revert: revert seeding

  • npx sequelize-cli db:seed(:undo) --seed filaName.js: execute a specific seed file

  • npx sequelize-cli db:migrate:undo --name fileName.js: revert (down) a specific migration file

  • npx sequelize-cli db:migrate --to fileName.js: run a specific migration file

Note: To work with the remote dabase, add --env production at the end of your CLI command.

Usage

  • start the server with npm start
  • Go to localhost:7000
  • Username is: admin and password: admin123

License

This is an open source app licensed under the MIT license.

atracker's People

Contributors

cedric921 avatar bam92 avatar joemakuta avatar samuelmbabhazi avatar credo23 avatar samantatarun avatar h3vanth avatar

Stargazers

 avatar  avatar  avatar Arick Bulakali avatar Doddy MATABARO avatar

Watchers

 avatar

atracker's Issues

Delete databse.json

We don't make use of it, and it contains private info (full path: ````src/config/database.json)

Add statistic

we should be able to know the attendance rate for every week and month as well as the attendance rate for each student.

Add icons

Any idea of icon packages we can use?

Add RBAC

we need at least these three roles:

  • admin: can do everything in the app (add users)
  • attendance manager: manage students
  • user: can only check attendancy

Add export/import feature

It must be easy to export/import data like attendance, students info...

Use csv file?
Add a button to export data?

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.