A simple Node.js server for a blog app.
From the main directory run the following command: npm start
If you're using yarn
, you can run the command: yarn start
If you're using yarn
, for the following scripts you can replace the npm run
portion with yarn
.
Allows you to start the server with debugging messages.
Migrates the tables for the generated models into the database defined in src/config/index.js
under the db
field.
Drops the tables for the models in the database defined in src/config/index.js
under the db
field.
Adds seed data into the database defined in src/config/index.js
under the db
field.
The following repo contains a React-based Frontend that uses this backend for demonstration purposes.
If an environment file (.env) is not found, the following default values are used.
env: development
port: 8000
secret: secret
host: 127.0.0.1
port: 8889
username: root
password: root
database: blog_app
dialect: mysql