Closed DaviTeodoro closed 4 years ago
I'm really happy with all of this @DaviTeodoro. Great work!
The next step is to figure out how we'll integrate with the server. Nuxt works with Express so it should be an easy integration with authentication, but I'm unsure about how to structure things. Can they live separately or should we bring them together into 1 full-stack application?
I'd also like to plan out:
As we agreed, I am setting up a nuxt + sequelize application and will update this issue as it progresses.
Just for this setup part I'll be committing directly to master. If you don't mind of course.
Other stuff that I would need help to set up properly:
This is looking great so far. Two quick changes:
Dotenv-safe and migration / model strategy are now working! 3c4b659b8d5c0c50aedd57eb8252af69f8c5d0f4 and 0e955da792a01da41558cc36ce64e623afa4ee3b
Frameworks
Nuxt.js (vue.js)
Nuxt is a framework build on top of vue.js. It offers SSR, Routing, Static File Serving and Pre-processors out of the box.
Vuex
As it is a big scope project I propose we use Vuex for state management, Vuex let us easily pass the Map() instance down to the vue components. Its a nice "glue" between mapbox-gl state and vue.js.
Mapbox-gl
Mapbox-gl is a js library build on top o leaflet.js, but it offers a wider API, its is very well documented and uses WebGL to render.
Mapbox-gl-draw
Mapbox-gl has a plugin that adds support for drawing and editing features.
Sass
CSS extension language to make ours lives easier.
Element-ui
A Vue based component library that offers lots of components for common task out of the box. As its design system style is similar to ours we wouldn't need to make wider changes.
Since I've been using most of them together, I know they fit well. I haven't worked with Mapbox-gl-draw yet, but since it has good documentation I don't think it will be a big problem. I also put together an app using nuxt.js + mapbox-gl.js and Mapbox-gl-draw. And it already has some drawing features that we need.
App link: https://condescending-poitras-8efc7d.netlify.com/