Skip to content

SimonPlanje/DatingApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💘 Liking feature

Hi there! Welcome to my Dating repository. In this repository you will find out how I made the liking feature for a datingapp using NodeJS. Likepage After this feature is completed we are going to make full dating app of it by adding the features other studenst made. If you want to checkout the endresult checkout this repository

When I stated of with my feature I wanted to cover one specific problem people could have in these times of Corona so I made thet following jobstory to start the project off with. Checkout the Wiki to see the choices I made and the researsch I have done more in Depth.

📚 Jobstory

When I am bored during the Corona period and am in the need of social contact with like minded people, I want to be able to quickly find these like minded people so I can start a conversation with them and talk about our shared interests.

👷 Build with

  • NodeJS
  • EJS
  • MongoDB
  • NPM packages

🧰 Installation

All of the content in this github repository is build from scratch with Node and vanilla javascript, I used mongodb so I can interact with a real and live database. So for the installation you will have to follow a few steps to get everything to work.

  1. Make sure NodeJS and NPM are installed locally.
  2. Clone the files from the github repo and put them in an empty local file on your pc. \
git clone https://github.com/SimonPlanje/DatingApp.git
  1. Open your Terminal/CMD and navigate to to the map where you pasted the copy of the repo in.
cd file/youwantogoto
  1. Now it is time to get this feature working, follow these following steps to get it to work.

This npm installation is required because this project contains a lot of the npm packages, without these packages this code will not work. Type the following into your termial to install the npm packages:

npm install

🚪 setting up the database

  1. Go to mongoDB and login or create an account
  2. Create a new database
  3. Add a collection to this database called users
  4. Create a new global file in the just cloned code called .env
  5. add the following lines into the .env file:
  DB_NAME=_name of database you created_ 
  DB_LINK=_link to mongodb database (can be found in mongoDB at the **connect** tab, make sure to get the url string right!)_ 
  SES_SECRET=session secret

🚂 Starting the server

Now the server should start without any issues. To start the server type the following into your terminal:

npm run dev

Let check if the feature is up and running. The server will by default be running on the localhost 1000; Type the the following into you browser search bar:

http://localhost:1000

If you run into any problem feel free to leave an issue in the top navigation bar of this repo!

Sources

About

This repo will contain a feature of an upcoming datingapp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published