GithubHelp home page GithubHelp logo

theweaver19 / arnotify-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metaweaveteam/arnotify-node

0.0 0.0 0.0 6.09 MB

๐Ÿ•Š๏ธ

License: MIT License

TypeScript 99.68% Shell 0.32%

arnotify-node's Introduction

arNotify-node

Node server for arNotify

Development environment: You'll need docker and docker-compose installed on your system.

Getting started

  1. $ git clone [email protected]:MetaweaveTeam/arNotify-node.git && cd arNotify-node
  2. $ npm install
  3. $ npm start

You'll have the following services running:

  • express server: localhost:3000
  • phpmyadmin: localhost:4000
  • mysql server: localhost:3306

Stop all containers

$ npm stop

This will stop the mysql and phpmyadmin server containers

Running instructions

First copy the .env.dev_example and rename to .env

Set the necessary env variables. You will need the TWITTER_CONSUMER_KEY and TWITTER_CONSUMER_SECRET from twitter.

On Twitter, in the App page, under User authentication settings, ensure to add the FRONTEND_URL to the Callback URI / Redirect URL. For example, if running this locally the FRONTEND_URL would be https://localhost:5173/.

Note that we are using HTTPS for both the frontend and the backend (this is required for our session and cookies).

To setup a self signed certificate, run go into the certs directory and run ./create_certs.sh. You can simply press enter until the certs are created.

From root, you can run npm start and the server should be running.

If running a frontend app, or making a request to the backend from a browser during development, make sure to visit the URL of the server (https://localhost:3000). You will be shown an error message saying the certificate is not trusted. Click "Proceed Anyway" and this will let your browser know you trust your own self signed certificate and thus will allow you to make requests to the backend.

arnotify-node's People

Contributors

theweaver19 avatar itsanuness avatar cromatikap 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.