Shpota/skmz
关于
A GraphQL-based Web App written with Go, React and MongoDB
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文SKMZ 
⚠ Disclaimer
I created this project a while ago, and it might need to be updated. Check out Goxygen , a tool for creating modern web projects with Go and React, Vue or Angular.
A web application that allows to query programmers with their skills via a GraphQL API. The application is implemented with Go and gqlgen on the backend side and React on the front end side. MongoDB is used as a database.

System requirements
You need to have Docker and Docker Compose installed in oder to build and run the project. No additional tools required.
How to build and run in production mode
Perform
docker-compose up
Access the application via http://localhost:8080. Access the GraphQL Playground using http://localhost:8080/playground.
How to develop locally
Tools
In order to develop the app locally the following tools are required: Docker, Docker Compose (if you are on Mac or Windows it comes installed with Docker), Node.js and Go.
Verify if your environment is ready by running the following 4 commands:
docker --version
docker-compose --version
npm --version
go version
Start the dev DB
docker-compose -f docker-compose-dev.yml up
This will start a local MongoDB which will be
accessible on port 27017. The DB will
be populated with test records from
mongo.init.
Start the server
Navigate to the /server folder and execute:
go run server.go
This will compile and run the back end part. As a result, the API and the GraphQL playground will be available.
Start the Front End dev server
Navigate to the /webapp folder and execute
the following commands:
npm install
npm start
As a result, the web site will be accessible on http://localhost:3000.
The changes on the front end side will be automatically applied once a file is saved. The changes in the back end code require restarting the back end.
Customizations
The database starts with a preloaded set of data which can be customized in the mongo.init file.
Here is an example of a GraphQL query which can be run in the Playground:
query {
programmers(skill: "go") {
name,
picture,
title,
company,
skills {
name,
icon,
importance
}
}
}
探索相关项目
加载中…