Blog created using Node, Express, and PostgreSQL
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Node.js Version 6+ (8+ recommended)
Postgresql Version 9.3+
- Clone this repository to your host computer.
git clone https://github.com/CUNYTechPrep/ctp-microblog.git
- Change into the
/blog
app directory
cd blog
- Create a database for the blog (replace
DB_USER
with your postgres user)
createdb -h localhost -U DB_USER ctpblog_development
-
Edit the
/blog/config/config.json
file with corresponding credentials -
Run npm install
npm install
- Start the application
npm start
- See the application by entering this in your web browser address bar
localhost:3000
Coming Soon
We use AirBnB JS coding style. You can check whether or not your code is styled properly by checking it using eslint. You must be within your project directory (inside of blog)
./node_modules/.bin/eslint nameOfYourFile.js
or for the entire project:
./node_modules/.bin/eslint .
- Node
- Express
- Postgres
This project is licensed under the MIT License.