mirror of
https://github.com/SrIzan10/YouRL.git
synced 2026-05-01 11:15:09 +00:00
Merge branch 'main' into dev
This commit is contained in:
29
.github/workflows/node.js.yml
vendored
Normal file
29
.github/workflows/node.js.yml
vendored
Normal file
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user