Skip to content

About

Its a component store for storing the components

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

209 Commits

Folders and files

Repository files navigation

Component_store_Next_Gen

Its a component store for storing the components

Setup and Run

Setup

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.

Database Setup

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:latest

Use secret as the password.

For bootstraping database,use this command:

node ./bin/insert-data.js

Startup

Start the application with:

cd component_store
nodemon src/app.js

Tests

For Backend Tests:

You do have a database component-store-test as user componento and password secret.

cd component_store
npm test

For 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

About

Its a component store for storing the components

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages