Skip to content

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

Notifications You must be signed in to change notification settings

foreza/codepen-clone

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published