Giter Site home page Giter Site logo

ghjob-nodejs's Introduction

GhJob Backend

This is the backend of GhJob.

Written in nodejs, it enables additional services other than Github jobs API such as push notifications, Data projection, Small size of pagination and much more.

You can get the android app on play store Google play logo

Installation

Clone the project and install every thing with

yarn install

After that, create .env file by copying it from .env.example and fill it with your values

Now, you can run the server.js file with node server.js or nodemon server.js

You can even make it more easy with pm2 so that it'll be launched at boot start pm2 start server.config.js

Note: Feel free to change the configuration of pm2 as you wish.

But before you play with API, you need to fill in the database and to do so, run the following script:

node populate.js

It will fetch all data from Github jobs API and save them into database

Notifications

The file notification.js is a script to constantly notify registered devices about new jobs. For it to be up-to-date, it needs to be handled by a cron service. Example of running it each 5 minutes:

*/5 * * * * node /var/www/html/ghjob-nodejs/notification.js >> /var/log/ghjob-nodejs/cron.log

Note: Since we use cron, we need to be aware of paths. Therefore you should edit notification.js to insert absolute path of .env file For instance change the line 2 from require('dotenv').config() to

require('dotenv').config({ path: '/absolute-path/ghjob-nodejs/.env' });

Contributing

Feel free to submit issues or pull requests.

License

The app is released under the MIT licence. For more information see LICENSE.

ghjob-nodejs's People

Contributors

patrissoljuns avatar

Watchers

 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.