Skip to content
/ delivr Public

🚚 Sample playground app using Mapbox, flowtype and docker

Notifications You must be signed in to change notification settings

slyg/delivr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delivr 🚚 CircleCI

This project was bootstrapped with Create React App, then ejected, hence the loads of dependencies :neckbeard:.

Build and run the solution

With docker lazily (fastest solution)

CI produces a docker image you can pull and run.

$ docker run -p 9000:80 slyg/delivr
# -> Serves content at http://localhost:9000/ or http://<docker_host>:9000/

With docker locally

# Build
$ docker-compose -f docker-compose.build.yml up
# -> Built files in /build folder

# Serve
$ docker-compose up
# -> Serves content at http://localhost:9000/ or http://<docker_host>:9000/

# Run test
$ docker run --entrypoint=/bin/bash delivr-build -c "npm test"

On your device

# Install yarn
$ npm install -g yarn

# Install dependencies
$ yarn

# Serves content in dev mode
$ npm start

# Unit tests
$ npm test

Tada

  • Handle net errors
  • More tests, e.g. ui components w/ enzyme, other unit tests, e2e tests
  • Handle cross-browsers issues
  • Handle mobile devices
  • Use backend proxy for api calls (hides token)
  • Fix CI (docker build image is too big and makes docker authentication token expire before image is actually built)
  • Optimize <MapContainer /> rendering strategy (smart diff ?)
  • Host project somewhere, e.g. on surge.sh
  • Cleanup dependencies

About

🚚 Sample playground app using Mapbox, flowtype and docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages