The application is currently under development.
To run the app, clone the repo with git clone https://github.com/ErlingHauan/FormFactory
, and cd
into the directory.
To run the build in containers, run yarn setup-docker
.
Access the frontend on http://localhost:3030.
The backend endpoints can be viewed at https://localhost:8081.
If you want to run the frontend or the backend outside of Docker, please see the steps below.
Note that the database is only available through Docker, meaning the formfactory-db
container has to be running for everything to work.
- Use the command
yarn
in the root directory to install necessary NPM packages. - Run
yarn setup-db
. - Run
yarn start-backend
. - In a new terminal, run
yarn start-frontend
.
Access the frontend on http://localhost:3050.
The backend endpoints can be viewed at http://localhost:8080.
- To lint the frontend code, run
yarn lint
. - To format the code, run
yarn format
to format all code, oryarn format-frontend
oryarn format-backend
. - To test the code, run
yarn test
,yarn test-frontend
oryarn test-backend
. - To do all of the above, run
yarn preflight
,yarn preflight-frontend
, oryarn preflight-backend
. - To remove the current database and rebuild it, run
reseed-db
.
If you are getting an error regarding a missing Dotnet utility, try running dotnet tool install --global dotnet-ef --version 8.*
and then yarn db:seed
.