Exploring the city of Helsinki.
See Projects on GitHub.
-
Vite with Vue 3 and the following extensions:
See all extensions
-
Windi CSS (compatible with Tailwind CSS)
- Commitlint
- ESLint with Prettier and TypeScript support
- Husky
- Jest
- Lint-staged
- Playwright
- PostCSS
- Stylelint
- Docker (optional)
- Git
- Node Version Manager
- Node.js (v16)
Visual Studio Code with these extensions:
Before continuing, make sure you have installed everything in the Requirements list.
$ git clone git@github.com:NewThingsCo/urban-green-explorer.git
$ cd urban-green-explorer
$ nvm install
$ npm install
Start the development server:
$ nvm install
$ npm run dev
To expose your local IP for mobile testing within your local network, use this instead:
$ npm run dev:host
This project is using the Conventional Commits specification with some modifications specified in the package.json file.
All commit messages, scopes and types should be in Sentence case, i.e.:
$ git commit -m "Feat: New feature"
Husky will run a pre-commit hook to ensure the commits follow the same pattern.
Add the following env to skip Git hooks:
$ SKIP_HUSKY=true git push
Check for errors:
$ npm run lint
Fix files automatically:
$ npm run lint:fix
Fix files automatically:
$ npm run prettier
If you're using Visual Studio Code, the editor should fix and format the files you edit automatically on save. See list of recommended extensions for more info.
$ nvm install
$ npm run build # Files will be built to the /dist folder
$ npm start
To specify a port, add npm start -- --port=4000
.
Build a Docker container that includes the production version:
$ npm run build:docker
When the build is complete, you should be able to find urban-green-explorer
listed in your local Docker images.
Click run and choose a port if needed. Default is 8080
.