Giter Site home page Giter Site logo

cfchemapi's Introduction

CFChemAPI

Requirements

  • Docker
  • Docker Compose
  • Docker Desktop (Windows)

Installation

  • copy .env.example to .env
  • edit the .env credentials to point to the database
  • run docker-compose -f compose-development.yml up --build
  • The API should now be accessible from localhost:8000

Documentation

Routes

  • /api/v1 - Hello, World (Index)
    • /lincs (?limit=10&offset=0) - Get all lincs from DB (default: limit 10 & offset 0)

Deployment

Basic deployment (Easiest):

  • Copy .env.example to .env
  • Run docker compose up

Notes

  • You should create a cron job to back up ./db regularly. You can tar the directory (requires stopping containers) or use mysqldump (https://dev.mysql.com/doc/refman/8.3/en/mysqldump.html) along with the mysql container. (ex: docker compose exec mysql mysqldump [options] > dump.sql)

Recommended (Requires external MySql database):

  • Copy .env.example to .env
  • Edit .env to have connection information for an external database
  • Run docker compose up

Note

  • The docker compose file comes with a Mysql database however, it is recommended to use an external Mysql database. To connect to an external database, copy the .env.example file to .env and edit the variables.

  • If you decide to use the internal database the datastore location can be changed with DATABASE_VOLUME_PATH (default ./db)

cfchemapi's People

Contributors

cholladay0816 avatar jonathan-wahl avatar jack-42 avatar jeremyjyang avatar

Watchers

 avatar Christophe Lambert avatar  avatar

cfchemapi's Issues

MVP UI

Not sure if this is an appropriate issue for this repo, but I want to establish this communication channel with the developer[s] too. Having requested that a MVP-level web UI be developed for CFChemDb to work with this API, should this be a separate repo? If yes I can instantiate. Or feel free to include it in this repo as a demo UI, which may or may not be separated later.

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.