Its a component store for storing the components
You need the following tools:
- docker
- docker-compose
- node + npm
Copy .envrc.example to .envrc and update the values as needed.
Afterwards perform a direnv allow . in your root folder.
docker build -t componento:1.0 .
docker-compose up
You are now connected to database "componentstore" as user "componento".The first time, you need to bootstrap the database. There is a script present, that will do that for you.
knex migrate:latestUse secret as the password.
node ./bin/insert-data.jsStart the application with:
cd component_store
nodemon src/app.jsFor Backend Tests:
You do have a database component-store-test as user componento and password secret.
cd component_store
npm testFor Frontend ( end to end ) Tests:
You do have a database component-store-test as user componento and password secret.
The test framework tests the frontend on the port 3006.
cd component_store
npm run end2end
Everytime you do
docker-compose down -v
Also run
cd component_store
rm -R uploads/*
To make your uploads empty