Giter VIP home page Giter VIP logo

reaction-api-base's Introduction

ARCHIVED: Demo GraphQL API

๐Ÿ“” This project is archived and no longer maintained. It was an early experiment to create a simple, standalone GraphQL server. We have since included a GraphQL API directly in core Reaction.

Install

git clone https://github.com/reactioncommerce/reaction-api-base.git

cd reaction-api-base

docker-compose up

Run

Development

All development can be done via Docker Compose. To start the Mongo and GraphQL API servers:

docker-compose up

It can be convenient to start the project in a detached state:

docker-compose up -d && docker-compose logs -f

Service Endpoints

The following services should now be available:

File-Reloading

The project code can be edited on the host machine. The process will be reloaded when code is changed.

Updating Dependencies

In development, you will need to run the following command when the package.json file is modified:

docker-compose run --rm api yarn install --modules-folder /opt/node_modules
docker-compose build api

This command will run yarn install inside the Docker container which will rebuild yarn.lock and install dependencies. Finally, rebuild the Docker image to install and cache the dependencies in the image.

Production

The builds are parameterized so that the environment may be specified. The default is production. The yarn.lock is frozen in production and the build will fail if an update is needed. To run a production build:

docker build -t reaction-api-base:latest .

License

Copyright ยฉ MIT

reaction-api-base's People

Contributors

jshimko avatar ticean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reaction-api-base's Issues

Any plan for future development?

Hey team, I just wonder if there is any plan for further development. Some features like add product and add shop are missing, and i am curious to know if there is any roadblocks to support it.

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.