GithubHelp home page GithubHelp logo

nelsonfleig / fresh-greens Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9.93 MB

Marketplace app for organic foods

Shell 2.99% TypeScript 93.17% Handlebars 3.38% JavaScript 0.23% CSS 0.23%
graphql nextjs react apollo typescript typeorm husky typegraphql typedi

fresh-greens's Introduction

Fresh Greens

Full stack solo project developed as part of Codework's Software Engineering bootcamp.

Packages

Packages Description
packages/server Graphql Server
packages/web Nextjs Web Client

Scripts

Script Description
yarn infra:up Start Docker container
yarn infra:down Shut down Docker container
yarn dev:server Start server
yarn dev:web Start web client
yarn dev:codegen Run graphql code generator

Requirements

  • To run this project you need to have node, yarn and docker installed.
  • Images are uploaded to AWS S3 so you will need to create an account if you don't already have one and add the access keys to packages/server/.env.
  • For payments you will need a Stripe development account and add the public key to packages/web/.env.local and the private key to packages/server/.env.
  • Refer to the .env.*.example in the server and web packages to see what env variables are needed to start the application correctly.
  • The MailService requires a valid SMTP configuration to work and may prevent the server from booting if missing. You can use Mailtrap or Ethereal mail credentials during development.

Getting started

To get up and running follow these steps

  • Install the dependencies by running yarn in the root of the project.
  • Start the docker container with yarn infra:up
  • Start the server with yarn dev:server
  • Start the web client with yarn dev:web

Development Guide

After modifying the graphql schemas in the server or writing new graphql queries/mutations/subscriptions in the web client, run yarn codegen to sync the schemas and generate new frontend code.

Be careful to be in the right package folder when installing dependencies. Although dependencies in this monorepo are stored on the top level node_modules, they must be installed in their corresponding package.json.

Contributing

Use yarn commit or git cz if you have commitizen installed globally to check for linting errors before commiting and standardizing your commit messages.

fresh-greens's People

Contributors

nelsonfleig avatar

Stargazers

 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.