Giter Club home page Giter Club logo

subway-surfer's Introduction

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Bless this open-source tool that provided a good skeleton with CRUD entry points for this REST API project that I, Tamieem Jaffary, have created myself.

This is my first time ever using TypeScript for a project for the record. I learned everything I've done for this project while I was doing it. So apologies if my instructions are not thorough or incorrect. I tried to make a dockerized container with all of my necessary files and image configurations.

My Task was to model the subway system

Installation

$ npm install

Running the app

# First must build docker volume
$ docker-compose up

# development
$ npm start

Current Endpoints

These endpoints were hosted on localhost:3000 for me. I'm going to make the assumption that it will be the same when it is tested.

POST /train-line -- Creates A train with its listed stations
stations - each station (or stop) on the train line
name - of the train line
fare - The cost of taking this train

POST /train-line
{
"stations": ["Canal", "Houston", "Christopher", "14th"],
"name": "1"
"fare": 2.75
}



GET /ride/[originStation]/[destinationStation]  -- Returns the optimal station list from the origin station to the destination station


POST /card -- Creates/Updates a Debit Card in the database with a balance 
number - The Card number to create/update
balance - the amount to add on to the card
{
"number": "1234",
"balance": 10.0
}

To Simulate a Ride:

POST /ride/[station]/enter
POST /ride/[station]/exit

I have also included my Postman collection, "Subway Surfer.postman_collections.json" which I used to test the required endpoints in the project as a reference if necessary.

If You've Made It This Far

I'd like to take this moment in my Readme to thank you guys for looking into my project. It was challenging but also fun and exciting. It motivated me to build something robust and substantial like this and practice my genuine software engineering skills.

subway-surfer's People

Contributors

tamieem avatar

Watchers

 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.