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 - Roopa267/srm-full-stack-challenge

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
public
public
 
 
src
src
 
 
tests
tests
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

SRM Full Stack Engineering Challenge

This project implements the required POST /bfhl API and a single-page frontend that interacts with it. The backend is written in plain Node.js without external dependencies, so it is easy to run on platforms like Render or Railway and straightforward to audit during evaluation.

What it does

  • Accepts a JSON payload shaped like { "data": ["A->B", "A->C"] }
  • Validates node format after trimming whitespace
  • Tracks invalid entries and duplicate edges separately
  • Silently ignores later multi-parent edges for the same child
  • Splits independent groups into separate hierarchy objects
  • Detects cyclic groups and returns has_cycle: true with an empty tree
  • Computes depth for non-cyclic trees and summary metrics for the full response
  • Serves a frontend at / that calls the API and renders the results clearly

Configure identity fields

The challenge expects your real identity fields. This project now reads them from a local .env file when you run npm start or npm test.

Set these environment variables:

  • FULL_NAME
  • DOB_DDMMYYYY
  • COLLEGE_EMAIL
  • COLLEGE_ROLL_NUMBER
  • PORT (optional, defaults to 3000)

A starter template is included in .env.example. The active local values live in .env.

Run locally

npm install
npm start

This project has no package dependencies, so npm install only creates the lockfile metadata if you want one. You can also start it directly with:

node src/server.js

Then open http://localhost:3000.

Deploy

Any Node host that supports a long-running server works well:

  • Render: set the start command to node src/server.js
  • Railway: same start command, add the environment variables above

The frontend is served by the same process, so you only need one deployment URL. The evaluator can call https://your-domain/bfhl directly.

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — 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.