GithubHelp home page GithubHelp logo

ioroot / housequests-private Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 62.5 MB

Advanced Property Search

Home Page: https://housequests.com

License: MIT License

JavaScript 37.12% HTML 58.22% CSS 4.65% Shell 0.01%
housing property-search uk uk-housing-market

housequests-private's Introduction

HouseQuests

This is an electron app that boasts the ability to combine results from multiple UK housing websites into a single map. See housequests.com for details.

This was a private repo that I had built in an authentication server, but have since decided to make it public with the hope of interest from other people.

Starting project

npm run start

Release Management

To create a new release of the HouseQuests electron app, you can run:

npm run release
# or
npm run build

This will place all new distribution files into the ./dist folder.

Secret scanning enabled on repo.

Publish release on github

There is an adjacent github repo that just hosts the releases. This is at: https://github.com/IORoot/HouseQuests

  1. Give a version release tag to the local repo.
git tag v0.1.15      # Add a tag to current branch

Other commands:

git tag            					# List all tags on current branch
git tag -d <NAME>   				# Delete tag
git push origin :refs/tags/v0.1.16	# Delete tag on github (delete local first)
  1. Push the tags to GitHub
git push --tags

The automated GitHub action will build the windows and mac distributable files and add them to the 'releases' page.

Note that a release will NOT run the tests before releasing.

Apple Quarantine

Apple says the file is damaged and cannot be open it's because it has been quarantined it.

Run the following command:

xattr -d com.apple.quarantine /Applications/HouseQuests.app

5. Folders

#main application
/app
	/client 		# main electron app
	/lib			# bundled libraries and files
	/maps			# bundled maps
	/services		# node server backend

# webpack-build config files
/build

# npm environment config
/config

# production-ready distribution files
/dist

# icons and install images
/resources

# HTML and electron files. Builds into /app folder.
/src

# Mocha Tests
/tests

5. Making MacOS Icons

https://gist.github.com/jamieweavis/b4c394607641e1280d447deed5fc85fc

6. MacOS Code-signing.

Disable code-signing by setting the environment variable before creating the app.

export CSC_IDENTITY_AUTO_DISCOVERY=false

https://disable-gatekeeper.github.io/

7. Testing

The WebdriveIO / Mocha tests NEED the /dist release to run against. Make sure you have done an npm run release to build the release before testing.

Also, set the environment variable 'HQ_TEST=test' to disable the 10-second advert

8. Tailwind

To create a new./app/views/style.css file, you'll need to run TailWind.

npx tailwindcss -i ./src/views/style.css -o ./app/views/style.css --watch

To build it for production:

npx tailwindcss -i ./src/views/style.css -o ./app/views/style.css --minify

9. VSCode debugging

.vscode/launch.json in vscode:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "cwd": "${workspaceFolder}/HouseQuests-Private",
            "runtimeExecutable": "${workspaceFolder}/HouseQuests-Private/node_modules/.bin/electron",
            "windows": {
                "runtimeExecutable": "${workspaceFolder}/HouseQuests-Private/node_modules/.bin/electron.cmd"
            },
            "args" : ["."],
            "outputCapture": "std"
        }
    ]
}

housequests-private's People

Contributors

ioroot avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.