Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/123mwanjemike/nodejs_mysql

Node.js Restful CRUD API with Node.js, Express and MySQL. This is API for the tutorial that demonstrates how to deploy a mysql application on Heroku for free. The article is in the link below.
https://github.com/123mwanjemike/nodejs_mysql

api autoidle demo deployment heroku mysql nodejs

Last synced: about 8 hours ago
JSON representation

Node.js Restful CRUD API with Node.js, Express and MySQL. This is API for the tutorial that demonstrates how to deploy a mysql application on Heroku for free. The article is in the link below.

Awesome Lists containing this project

README

        

# Nodejs with MySQL
This is a demo mysql nodejs API for the tutorial [How to create a MySQL application on Heroku](https://autoidle.com/blog/how-to-create-a-my-sql-application-on-heroku) on [autoidle](https://github.com/autoidle)'s blog. The tutorial demonstrates how to deploy a mysql application on Heroku for free.

## Setup

1. Create a mysql database of your choice:

```
CREATE DATABASE <>;
```

2. Create a `.env` file with all the variables as listed in `./.env.example` and fill in their values respectively.

3. Run the start script

```
npm run start
```