Skip to content

basala/har

Repository files navigation

Nest Logo

An application to manage har cases for your project, contains client and server.

Nest TypeORM GraphQL mongoDB React CHakraUI ApolloClient Typescript

Description💬

Write in Typescript.

Server: Nest + TypeORM + GraphQL + mongoDB

Client: React + Chakra UI + Apollo Client

Installation🍉

# keep code style
$ yarn install

# server
$ cd app/server

$ yarn install

$ cd -

#client
$ cd app/client

$ yarn install

$ cd -

Running the app🚂

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.

Use in Docker👍(Recommended)

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

QA✋

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.

More Support

Any other questions please use Google or contact me😎😎😎😎😎.

About

a simple har test system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages