Code Monkey home page Code Monkey logo

rxcheck-backend's Introduction

๐Ÿ’Š rxcheck-backend

This repository serves as the backend for ๐Ÿ’Š rxcheck

Installation

To run the app,

  1. Start a mySQL database instance on your computer,
    • create a database,
    • based on the credentials, add a .env file with the values in the form below:
PORT=8080
DB_HOST=*your database host* e.g 127.0.0.1
DB_NAME=*your database name* e.g rxcheck
DB_USER=*your database user name*
DB_PASSWORD=*your database password*
JWT_KEY=*randomly generated alpha-numeric string of about 30 characters* e.g aggjqldlww79sweq28v9eczpcom1z3

๐Ÿ“ Note If port 8080 is already in use, it could be changed to another port, as long as the corresponding port number in the rxcheck front-end is updated in its .env file.

Once this is done:

  1. run npm install in your terminal after cloning the repository.
npm install
  1. run npx knex migrate:latest to run migration files.
npx knex migrate:latest
  1. run npx knex seed:run to seed the database .
npx knex seed:run
  1. Then run npm start to start the server ๐Ÿš€.
npm start

The corresponding front-end application can be found here.

rxcheck-backend's People

Contributors

optimak avatar

Watchers

 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.