A Management Information System for Water and Sewerage Utility Companies.
- Nodejs
v16.13.1 - Expressjs
4.18.1 - Apollo Server
v3.7.0 - GraphQL
v16.5.0 - Prisma
^3.14.0 - Postgres
14.3 - Cubejs
- NPM
8.5.5
- Copy this example config and paste it into your
.envfile in theserver/directory:
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/mis?schema=public"
PASSWORD_SALT_ROUNDS=10
PORT=4000
JWT_SECRET="SOME_SECRET"-
cdinto/serverand runnpm install -
While in
/server, spin-up the postgres docker container:sudo docker compose up -
Open new terminal tab and connect to your database via
psql:psql -h localhost -p 5432 -d ewsc-mis -U postgres --password -
In a separate terminal apply the database migrations and seed the database via:
npx prisma migrate dev -
In another terminal tab, start the
serverby running the following command:npm run dev -
Visit
http://localhost:4000/graphqlto explore and start querying theewsc-misgraphql api.
- Reactjs
- Typescript
- Apollo GraphQL Client
- Material UI
- Rechartjs
- React Router v6
- GraphQL Codegen
- If you are using
zshand you experience thessh: connect to host github.com port 22: Connection timed outafter you rungit push/fetch/clone, then do following steps:
-
Open .zshrc in a text editor
vim ~/.zshrc -
Add ssh-agent to the plugins list and save:
plugins=(git ssh-agent) -
You may want to immediately reload your .zshrc settings:
source ~/.zshrc