foreza / codepen-clone

Cloning portions of codepen to aid in a deep dive of sockets, more front-end techniques, and postgres.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codepen-clone

Project Requirements:

Run Development environment

Create PostGres db:

  • DB Name: codepen-dev

Remember to update your config.json with the correct DB name. If you don't have a config, initialize with: sequelize init

Run commands:

npm install
npm run dev-migration-down
npm run dev-migration-up
npm start 

If you want to use some initial seed data for sample users/pens:

npm run dev-seed-down
npm run dev-seed-up

Run Test environment

Create PostGres db:

  • DB Name: codepen-test

Run commands:

npm install

*Run backend tests: (test migrations will be done automatically) *

npm test

Run front-end tests:

**Ensure that you have testcafe installed. Preferably globally. https://www.npmjs.com/package/testcafe

npm run fe-test

Run Production environment

Troubleshooting:

On Windows - if port 3000 is already in use by prior process , open cmd and run:

taskkill /F /IM node.exe

On Windows - if nodemon doesn't work...

TBD

About

Cloning portions of codepen to aid in a deep dive of sockets, more front-end techniques, and postgres.


Languages

Language:JavaScript 68.6%Language:HTML 22.3%Language:CSS 9.0%Language:Shell 0.1%