GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hammercode-dev/lms-be

BranchesTags
Open more actions menu

Latest commit

 

History

225 Commits
225 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
app
app
 
 
assets
assets
 
 
cmd
cmd
 
 
config
config
 
 
constants
constants
 
 
database
database
 
 
docs
docs
 
 
documentation
documentation
 
 
domain
domain
 
 
pkg
pkg
 
 
utils
utils
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 
makefile
makefile
 
 

Repository files navigation

lms-be

Introduction

lms-be is an API service designed to support the Learning Management System frontend (lms-fe). It provides a robust set of endpoints for managing courses, students, instructors, and more, offering a seamless integration with the frontend application to create a comprehensive learning management experience.

Getting Started

These instructions will get your copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Before you begin, ensure you have the following installed:

  • Go (version 1.19 or later recommended)
  • Any other dependencies your project might need (e.g., PostgreSQL, Docker if applicable)

Setting Up Environment Variables

Before running the service, you need to set up the required environment variables. The project includes a .env.example file with all the necessary environment variable declarations.

To set up your environment variables:

  1. Copy the .env.example file to a new file named .env in the same directory:

    cp .env.example .env
  2. Open the .env file in your preferred text editor and modify the environment variables to fit your development environment.

    Make sure to replace placeholder values with actual data where necessary.

Running Migrations

Before starting the service, you need to run the database migrations to set up the necessary tables and schema. The project uses migrate for managing database migrations.

    go run main.go migrate:up

Or if you want to run with seeder you can run this command

    go run main.go migrate:fresh

But it will be down your migration first

Running the Service

To run lms-be on your local machine, you have two options:

Using Make

If you have make installed, you can start the service using the following command:

make serve-http

This command is configured in your Makefile to set up necessary environment variables, compile the code, and run the service, making it ready to accept requests from lms-fe.

Using Go Directly

Alternatively, you can run the service directly using Go with the following command:

go run main.go http

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.