GithubHelp home page GithubHelp logo

attendance-backend's Introduction

Welcome to Weber!

This is the home of the backend code for our seed application!

Requirements

Go v1.18

Database Setup

The database should be hosted locally on a POSTGRES server, ideally on an empty database, running the server will automatically populate the database.

  1. Install Postgres locally
  2. Create a local database in your postgres server
  3. Create a .env file in your local root folder and paste the connection string of the created database inside variable 'DATABASE_CONNECTION_STRING'. eg: DATABASE_CONNECTION_STRING='postgres://<username>:<pwd>@localhost:5432'
  4. Follow the next steps to run locally.

Steps to run locally

  1. Run go run .
  2. Server runs at http://localhost:9000/
  3. Refer to the API Documentation to use the API.

Testing

Import the Postman collection for the API's from the API_Collection.json file

Dependencies

github.com/gorilla/handlers v1.5.1 github.com/gorilla/mux v1.8.0 github.com/lib/pq v1.10.7 github.com/morkid/paginate v1.1.4 gorm.io/driver/postgres v1.4.4 gorm.io/gorm v1.24.0

Important Links

  1. How to run a custom join table

attendance-backend's People

Contributors

bhavyagor12 avatar dhruvkud13 avatar e-l-l avatar ishaan812 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.