Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.
/ jeeves Public archive

Jeeves is an end-to-end resturant management platform that handles everything from seating to order food. Developed for a Senior Capstone project.

License

Notifications You must be signed in to change notification settings

kevinschoonover/jeeves

Repository files navigation

Jeeves

Welcome to Jeeves!

Environment

Setup Dev Environment

Assuming you've installed node and yarn, run the following command to setup the project and install all required dependencies.

yarn install

If you're using VS Code (or any other editor), I'd recommend installing the extensions Prettier and Tslint and updating your settings.json to include:

"editor.formatOnSave": true
  • Prettier will automatically format your code which will help keep the codebase consistent (and can help identify errors in your code!).
  • Tslint will help identify styling errors in your code.

Then, install docker and docker-compose for the server.

Starting Client(s)

Before starting a client, you need to build the common package. This package will hold all reusable UI components and utilities that might be commonly used with all clients. To build the common package, navigate to clients/common and run:

yarn build

If you plan on adding any code into the common package, you need to rebuild the package before using it any other packages, so you'll need to run yarn build after every change or you can run yarn watch, so Typescript will watch the files in common/src and automatically rebuild whenever it detects any changes.

To start up a client for development, navigate to the client's directory and run:

yarn start

This will start a local dev server at localhost:3000 where you can view your live changes. Making a change in one of your files will automatically update in the browser (i.e. you don't have to refresh the page!).

Starting Server

Linux

To start the server and install all dependencies, run the following in the root project directory:

$ docker-compose up

Wait a few seconds for docker to spin up and then navigate to http:https://localhost on your favorite web browser. You should see 'Hello, World!'.

Windows or Mac

Start the Docker QuickStart Terminal, navigate to the root project directory, and run:

$ docker-compose up

Then, open another Docker Quickstart Terminal and get the IP address of the docker host by running:

$ echo $DOCKER_HOST // Echo to terminal your current DOCKER_HOSt
// or
$ docker-machine ls // List all running docker machines

Wait a few seconds for docker to spin up and then navigate to http:https://$(DOCKER_HOST) (where $DOCKER_HOST is the IP output by the previous command) on your favorite web browser. You should see 'Hello, World!'.

Note(s)

If you plan on running multiple clients, you should repeat the previous instructions for each client. However, create-react-app will try to start the dev server on port 3000 and if that is taken, it will try to start on the next available port (i.e. 3001, 3002, etc).

You can also manually specify the port by updating the environment variable PORT by creating a .env file in the root of the client directory you're working in:

# packages/seating/.env
PORT=3001

About

Jeeves is an end-to-end resturant management platform that handles everything from seating to order food. Developed for a Senior Capstone project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages