A Full-stack web app beer catalog, built with Nest framework and React library.
$ git clone https://github.com/nodasxiros/crud-catalog.git
# The script creates env file and installs
# api and front dependencies
$ ./set_up.sh
# If you get a permissions error try
# the command below and run the script again
$ chmod 777 set_up.sh
Run mysql localy and create an empty database with appropriate configuration (the same configuraiton provided in the env file).
If you find it hard to create your own db use the dump provided and import it using either a client or the command line
# Change into api/ directory
$ cd api/
# This will run all the migration files
$ npx sequelize-cli db:migrate
# This will run all the seeder files
$ npx sequelize-cli db:seed:all
# Change back to root direcotry
$ cd ..
Finally, run yarn command separately for api and front, in different tabs
# First tab
$ cd api/ && yarn start:dev
# Second tab
$ cd front/ && yarn start
Front should be running on localhost:3001 whereas api on localhost:[port in env]
The present web app is MIT licensed.