A CLI application that will allow you to store and retrieve contacts from an address book thru Node.js
MIT License
A CLI application that will allow you to store and retrieve contacts from an address book thru Node.js using Sequelize on a PostgreSQL database.
- PostgreSQL
- Yarn >= 1.5.x
- Node >=10.x
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Clone this repo using
git clone https://github.com/csantiago132/node-address-book.git
Move to the appropriate directory: cd node-address-book
Run yarn install
to install dependencies
If you don't have Postgres installed on your computer, please download and install using the installer for your operating system
Create the databases for the application by running the createdb
command:
createdb -U postgress -w addressBook
createdb -U postgress -w addressBookTest
pg_ctl -D /usr/local/var/postgres[VERSION NUMBER HERE] start
pg_ctl -D /usr/local/var/postgres start
db/config/config.json
and place that number in the port
property: "development": {
"port": "YOUR_PORT_NUMBER_HERE",
yarn run migrateDb
on the terminalsequelize db:migrate && sequelize db:migrate --env test
Your database is now ready to accept contacts
In the near future, I want to add:
I use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE.md file for details.