An application to manage har cases for your project, contains client and server.
Write in Typescript.
Server: Nest + TypeORM + GraphQL + mongoDB
Client: React + Chakra UI + Apollo Client
# keep code style
$ yarn install
# server
$ cd app/server
$ yarn install
$ cd -
#client
$ cd app/client
$ yarn install
$ cd -
before start the app, you need install mongoDB to store the data, greatly suggest to install it through docker. The default port is 27017, you can modify it in app/server/.env(prod mode) or .env.development(dev mode).
# start server
$ cd app/server
$ yarn start:dev
$ cd -
# start client
$ cd app/client
$ yarn start
$ cd -
Then it will open localhost:3000 automatically and enjoy your use.
A very simple way to use and deploy this app.
$ docker build -t har-test .
$ docker run -dit --name="har-test" -p 3000:3001 har-test
when use docker, you may meet the following questions.
1.unable to connect to the database
This may appear when mongoDB and the app all start by docker. You need to set the network bridge for the two containers manually.
For example: suppose your mongoDB container named mongo
# create a network bridge
$ docker network create my-net
$ docker network connect my-net mongo
$ docker network connect my-net har-test
# check if the two containers are all in the network bridge
$ docker network inspect my-net
And then restart your containers.
Any other questions please use Google or contact me😎😎😎😎😎.