This map app allows users to collaboratively create maps which list multiple "points", for example: "Best Sunset Spots" or "Locations of Movie Scenes". It was built over five days during week four of the Lighthouse Labs Web Development Bootcamp. The requirements were:
- Users can see a list of the available maps
- Users can view a map
- A map can contain many points
- Each point can have: a title, description, and image
- Authenticated users can create maps
- Authenticated users can modify maps (add, edit, remove points)
- Users can favourite a map
- Users have profiles, indicating their favourite maps and maps they've contributed to
- Colin Richardson
- Mark Zsombor
- Kelsey Cooper
- Reid Naaykens
- Fork and clone this repository to your local machine.
- Cd from your terminal into that new repsoitory.
- Create a
.env
file by using.env.example
as a reference:cp .env.example .env
. - Create a Postgres database
createdb <db_name>
- Update the
.env
file with database name. - Install dependencies using the
npm install
command. - Run migrations:
knex migrate:latest
. - If you wish to view sample maps run:
knex seed:run
- Run
npm run local
- wait forSmappy app listening on port 8080
. - In your browser go to http://localhost:8080/.
- Node 5.10.x or above
- NPM 3.8.x or above
- Bcrypt 1.0.3
npm install bcrypt
- Body Parser 1.15.2
npm install body-parser
- Connect Flash 0.1.1
npm install connect-flash
- Cookie Session 2.0.0-beta.3
npm install cookie-session
- Dotenv 4.0.0
install dotenv --save
- Ejs 2.4.1
npm install ejs
- Express 4.13.4
npm install express --save
- Express-flash
npm install git://github.com/RGBboy/express-flash.git
- Knex 0.14.1
npm install knex --save
- Knex-logger 0.1.0
npm install knex-logger
- Morgan 1.7.0
npm install morgan
- Node Sass Middleware 0.11.0
npm install node-sass-middleware
- Pg 7.4.0
npm install pg