npm install && cd web && npm install
Since NPM workspaces were not working as expected we are installing dependencies in each location.
npm run dev
This will start the Go server and React app. Currently Storybook is not included.
cd web
npm run storybook
The default PORTS are:
3001
for the server3000
for the client6006
for the storybook
You can configure the server port by setting the PORT
environment variable. Creating a .env
file is supported. You can copy .env.example
to .env
.
To build the project, run:
npm run build
This will build the client, server and storybook.
npm start
In production, you have a single server serving everything.
/api/*
is the API endpoint.
/storybook
is the Storybook.
/*
is the client.
TypeScript, linter and prettier are checked on commit and push thanks to husky and lintstaged.
MIT