GithubHelp home page GithubHelp logo

dotons's Introduction

dotons

wiki

Instructions

Make sure you have NodeJS and NPM installed. See (Test specification)[https://github.com/sk222sw/dotons/wiki/Teknisk-dokumentation] for more info

Development

  1. npm install to install dependencies

  2. npm install -g supervisor to install supervisor globally

  3. npm start to start expressjs backend. node supervisor will auto-restart on save

  4. npm run watch in a new terminal and webpack will bundle client side code and update on save

Production

  1. npm install to install dependencies

  2. npm install -g supervisor to install supervisor globally

  3. webpack -p to make webpack bundle and minify client side code

  4. npm run deploy for unix systems or npm run deploy-windows on windows to run express in production mode


Contributing

We have at least 2 branches at all times, Master and Develop.

  • Master - only has production-ready code that works and is tested(heh) and is the branch that is pushed to deployment on Digital Ocean. NEVER work against this branch.
  • Develop - the branch that contains code that works but may not be ready for production yet. AVOID working against this branch.

Daily workflow

  1. git checkout -b new-branch create a new local branch that you will work against

  2. git pull origin develop make sure you have the latest changes from develop

  3. Make changes, code and stuf. Drink some coffee, eat a burger.

  4. git add . or git add filename to stage the changes for a commit

  5. git commit -am "This is a meaningful commit message that explains what I've done

  6. git pull --rebase origin develop to get the latest changes if someone else has been working.

  7. Solve possible conflicts

  8. git checkout develop to switch branch

  9. git merge --no-ff new-branch to merge your changes with develop

  10. git push origin develop finally push your changes to github

  11. git branch -d new-branch if you want to delete the local branch. Or keep it to work in it again.

Push to production

  1. Make sure you are on the develop branch and no files are unstaged (else follow Daily Workflow first)

  2. git pull origin develop to get the latest changes

  3. git checkout master

  4. git merge --no-ff develop merge develop into master

  5. git push origin master - update remote master branch

  6. git push live master - push to the live branch (DigitalOcean droplet)

dotons's People

Contributors

dotons avatar

Stargazers

Alex Driaguine avatar

Watchers

James Cloos avatar Sonny Kjellberg avatar  avatar

dotons's Issues

PDF-conversion verkar inte fungera..

.. När man sparar en desgin men inte är inloggad -> tvingas logga in/registrera -> Design sparas.
Fungerar om man sparar designen när man är inloggad..... 👎

Gömma knappr vid bild-uppladdning

När en bild har laddats upp, bör man gömma knappen ladda upp då? Eller ska man kunna ladda upp en ny?

Innan man har laddat upp en bild så borde knappen "Spara" gömmas iaf

CSRF-protection multipart form

POST /designer/upload
behöver fungera med CSRF men måste konfigureras med multer på något sätt pga multer som parse:ar multipart/data formulär

Cache-buster vid utlogg

Skriver så vi kommer ihåg.

Går att komma åt profilen vid utlogg genom att trycka tillbaka i webbläsaren, har för mig det har med cache att göra. Egentligen är man utloggad.

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.