Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamgkstack/fan-fight
https://github.com/iamgkstack/fan-fight
express javascript nodejs
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/iamgkstack/fan-fight
- Owner: iamgkstack
- Created: 2020-03-09T09:14:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:34:50.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T00:17:32.666Z (2 months ago)
- Topics: express, javascript, nodejs
- Language: JavaScript
- Size: 392 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fanFight
A simple checkout system written in node.js for problem-1
## Requirements
* NODE: `>= 10`
* YARN: `1.17.3`## Setup
```bash
# clone the project
git clone https://github.com/iamgkstack/fan-fight.git && cd problem-1# install the dependencies
yarn# start the project
yarn start# test in windows os
yarn test_windows_os# test in linux os
yarn test_linux_os```
* This starts the server on the port 5200## APIs availabe
Get the final result
```curl
curl -X POST http://localhost:5200/api/v1/join-contest \
-H 'Accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"entryFee": 400,
"discount": 20
}'
```checkout for problem-2
```
# got to the problem-2 folder
cd problem-2# run the program
node ContigiousArraySum.js
```