This is the core of a virtual library, created with NodeJS.
- NodeJS
- ExpressJS
- Sequelize
- PostgreSQL
- Clone
- Move to
cd library-core
- Run
npm i && npm run watch
- Make sure you have PostgreSQL running on your machine.
- Create your library database with PgAdmin or as you wish.
- Update the file that is
src/config/config.json
and enter your credentials. - Move to
cd src
- To create the tables use the migrations.
- Run
sequelize db:migrate
- To add sample data use the seeders, run this command several times in your console:
- Run
sequelize db:seed:all
If he came this far it is because we are ready.
You can consult the Documentation at this URL: