Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarguddu609 committed Feb 6, 2024
2 parents c17dc0f + 2cca771 commit 9997521
Show file tree
Hide file tree
Showing 96 changed files with 349 additions and 45 deletions.
28 changes: 8 additions & 20 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
server/geojson-data/indian_village_boundaries.zip/west_bengal/ALIPUR[[:space:]]DUAR.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/KOCH[[:space:]]BIHAR.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/KOLKATA.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/MALDAH.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/SOUTH[[:space:]]TWENTY-FOUR[[:space:]]PARGANAS.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/PURULIYA.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/BIRBHUM.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/DARJILING.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/HAORA.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/JALPAIGURI.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/MURSHIDABAD.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/PASCHIM[[:space:]]MEDINIPUR.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/PURBA[[:space:]]BARDDHAMAN.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/BANKURA.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/HUGLI.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/NADIA.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/NORTH[[:space:]]TWENTY-FOUR[[:space:]]PARGANAS.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/DAKSHIN[[:space:]]DINAJPUR.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/PURBA[[:space:]]MEDINIPUR.zip filter=lfs diff=lfs merge=lfs -text
server/geojson-data/indian_village_boundaries.zip/west_bengal/UTTAR[[:space:]]DINAJPUR.zip filter=lfs diff=lfs merge=lfs -text

/server/geojson-data/indian_village_boundaries.zip/west_bengal/** filter=lfs diff=lfs merge=lfs -text


/server/geojson-data/indian_villages_boundaries.zip/himachal_pradesh/** filter=lfs diff=lfs merge=lfs -text
/server/geojson-data/indian_villages_boundaries.zip/lakshwadeep/** filter=lfs diff=lfs merge=lfs -text
/server/geojson-data/indian_villages_boundaries.zip/uttar_pradesh/** filter=lfs diff=lfs merge=lfs -text

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ node_modules
.idea
.DS_store
server/.DS_Store
/server/geojson-data/indian_village_boundaries
/server/geojson-data/*json
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ See code example in the [server](./server/app.js) folder.

Run `./setup.sh`. This script will install bun and download required files to setup server
```sh
cd server
./setup.sh
```

Start Server
```sh
cd server
bun app.js
```

Expand Down
5 changes: 4 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ WORKDIR /usr/src/app

COPY . .

RUN apt-get update && apt-get install -y \
curl
CMD /bin/bash
COPY ./package*.json ./bun.lockb ./
RUN bun install
RUN ./setup.sh

ENV NODE_ENV production

Expand Down
1 change: 1 addition & 0 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const swaggerApp = express();
swagger(swaggerApp);

const GeoLocationLevel = {
VILLAGE: 'VILLAGE',
SUBDISTRICT: 'SUBDISTRICT',
DISTRICT: 'DISTRICT',
STATE: 'STATE'
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Loading

0 comments on commit 9997521

Please sign in to comment.