/blok-tech

Primary LanguageJavaScriptMIT LicenseMIT

Traveldate, matching app for adventurous travelers

screencapture-file-Users-pepijn-Documents-CMD-Jaar-2-Blok-3-Project-Tech-website-index-html-2020-03-20-00_42_29

Table of Content

  • Description
  • Database
  • Install
  • Database Visualisation
  • Packages
  • Wiki
  • License

Description

This is my matching app I made for Project tech. This is a project for my study Communication and Multimedia Design at the Amsterdam University of Applied Sciences. Travelbuddy is a matching app that has a focus on people who like to travel and are adventurous. People can find their own travelbuddy with the same interest and go on a journey together.

Database

I use Mongoose with the MongoDB Compass app.

Install

  1. Open the terminal

  2. Clone the repository

git clone https://github.com/pepijnkok/blok-tech
  1. Go to the cloned repository repository
cd /blok-tech
  1. Make an .env file
touch .env
  1. Install the packages
npm install
  1. Start the application
node server.js
  1. Open the server on localhost:3000 localhost

Database visualisation

This is the datamodel that I use for my database.

const mongoose = require('mongoose');
// Using a validator to validate the email 
const validator = require('validator');

// Structure for the collection 
const Schema = mongoose.Schema;

// Source: https://mongoosejs.com/docs/guide.html
// Making a new Schema
const userSchema = new Schema({
	name: {
		type: String,
		required: true,
		unique: true
        
	},
	email: {
		type: String,
		required: true,
		unique: true,
		lowercase: true,
		validate: (value) => {
			return validator.isEmail(value);
		}   
	},
	password: {
		type: String,
		required: true,
		unique: true
	}
});

Packages

These are the packages that I used in this project

Wiki

Ik heb de volgende wiki aangemaakt waarin al mijn bevinden en onderzoek staan van dit project https://github.com/pepijnkok/Blok-Tech/wiki

License

MIT License © Pepijn Kok