This project was created to study the concepts of CRUD operations using node, express and mysql.
Installation of:
- Docker
- Docker compose
- Node
# Clone this repository
$ git clone https://github.com/AyeshaKhan07/CRUDNodeMySql.git
# Go into the repository
$ cd CRUDNodeMySql
# Install dependencies
$ npm install
# Install mysql using docker
$ cd database
$ cd my_sql
$ docker-compose up -d
# Create .env file and copy the content of sample.env to .env
# Run the app
$ node index.js
If you are seeing these two lines logged on the console, congratulatons your server is up successfully with mysql connected.
Dummy data can be populated by seeder.js file. After installing mysql using docker and start the container, run the following command to populate the data:
node seeder.js
The server is up with mysql connected, now you can make API calls using postman or any other platform.
@AyeshaKhan07