Skip to content
/ winkel Public

Order management application for commerce. Includes a single page app that fetches data from a MongoDB database via GraphQL.

Notifications You must be signed in to change notification settings

0bie/winkel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Winkel [POC]

Manage interactions with current and potential product suppliers. Keep up to date with offers on the market, and engage with vendors through messages and purchase offers.

About

The intent of this project is to implement a modern approach towards integrating a data layer into a single page application. Learn and understand how application data may be structured, using types and schemas to define what resources are available to the client.

Utilizes GraphQL and Apollo Server to implement an API and provide a schema for querying a MongoDB database. Mongoose models and schemas are used to keep data consistent. The front end is a React.JS application using Redux as the data store layer.

Demo

Link to demo: https://winkel.obie.dev

Developing

  • Install Yarn (preferred for version locking).

Server

  • Install mongodb: brew install mongodb (Reference: https://bit.ly/2hVc4Sr)
  • Start the mongo server: mongod
  • Navigate to server directory: cd server/
  • Install project dependencies: npm install
  • Seed the database: npm run seed
  • Start the Apollo Server: npm run build:dev (http://localhost:9001)
  • Generate a new User/API key

Client

  • Navigate to client directory: cd client
  • Install project dependencies: npm install
  • Create .env file and set API key: API_KEY=${API_KEY}
  • Start the app: npm start (http://localhost:8080)

Testing

API

  • cd server/
  • All tests: yarn test
  • Schema tests: yarn test:schema
  • Resolvers tests: yarn test:resolvers

About

Order management application for commerce. Includes a single page app that fetches data from a MongoDB database via GraphQL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages