Wiki Maps is a application that allows the user to create custom-themed maps. The user adds points of interest to the map along with a photo and description. Users can contribute to other people's maps and favourite a map.
Wiki Maps is a multi-page app that uses the jQuery library and ejs templates to render the pages. The application interacts with the Google Maps API to show the user-created point on the map.
The server is built using node.js and express and the database is PostgreSQL. Wiki Maps uses knex, a query builder for SQL databases written for Javascript which allows node.js to query the PostgreSQL database.
- Create the
.env
by using.env.example
as a reference - Update the .env file with your correct local information (DB_USER & DB_PASS)
- Install dependencies:
npm install
- Fix to binaries for sass:
npm rebuild node-sass
- Run migrations:
npm run knex migrate:latest
. Check the migrations folder to see what gets created in the database - Run the seed:
npm run knex seed:run
. Check the seeds file to see what gets seeded in the database - Run the server:
npm run local
- Visit
http://localhost:8080/