diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..a391700 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test diff --git a/README.md b/README.md index c34c067..aabcb76 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ ejs- Templating language to create views `npm i --save-dev nodemon` + //npm install -g nodemon `nodemon server.js` @@ -40,12 +41,15 @@ For refreshing server for every new change. Makes life easy. tip: Make sure you have admin access + - to access db "C:\Program Files\MongoDB\Server\4.4\bin\mongod.exe" --dbpath="c:\data\db" + - to start mongodb server + "C:\Program Files\MongoDB\Server\4.4\bin\mongo.exe" ## Deploy @@ -58,14 +62,16 @@ tip: Make sure you have admin access 1. Open any web browser and visit `localhost:4567` 1. (Optional) If you want to devlop the app,run `nodemon server.js`instead of `node ./server.js`, every new change will be reflected in your browser. + ### Heroku 1. Fork this repository 1. Create a free Heroku Account 1. Create free Heroku app with your github fork + ## Roadmap - A login Screen - protected routes with JWT -- Heroku deploy button +- Heroku deploy button \ No newline at end of file