SuperHero is a service focused on superheroes. It allows you to create and edit superheroes. You can also add up to 10 pictures to each hero. And of course you can view the created heroes
-
Create and fill all
.env
files. These files are:server/.env
client/.env
You should use these files as a reference:
server/.env.example
client/.env.example
-
Install dependencies (
node_modules
). Runnpm run install:all
in the root folder. -
Run the database. You can either run it in docker using command
cd server && docker-compose up -d
-
Apply migrations:
cd server && npm run db:migrate:dev:local
-
Run seed if you wont
cd server && npm run seed:soft
-
Run server:
cd server && npm run start:dev:local
-
Run client:
cd client && npm run start:dev:local
- Run test on client:
cd client && npm run test
- Run test on server:
cd server && npm run test