A demo ready story creation app. A user can read a story and the contributions made for that story by pressing on "Expand!" under the corresponding title. The user cannot upvote, create a story, or submit a contribution to the story before logging in. When logged in as the creator of a story, the user can choose to accept a contribution to become part of their story and dismiss all other contributions. They can also choose to complete their story and prevent any new contributions from being submitted to it.
- Create the
.env
by using.env.example
as a reference:cp .env.example .env
- Update the .env file with your correct local information
- username: ``
- password: ``
- database: ``
- Install dependencies:
npm i
- Fix to binaries for sass:
npm rebuild node-sass
- Reset database:
npm run db:reset
- Check the db folder to see what gets created and seeded in the SDB
- Run the server:
npm run local
- Note: nodemon is used, so you should not have to restart your server
- Visit
http://localhost:8080/
- If running an M1, be prepared to do a few extra steps:
- One line at a time in your Command Line
xcode-select --print-path sudo rm -rf $(xcode-select --print-path) xcode-select --install
- Postgresql database
- Node 10.x or above
- NPM 5.x or above
- PG 6.x
- Express
- Dotenv
- Ejs
- Morgan
- Cookie-Session
- Node-Sass-Middleware
- Chalk
- Nodemon