Anarchydating is a conceptual website which is based on punks finding like minded people to go out on a date with. For this concept i worked out one feature, this feature makes it possible to fill in profile information such as:
-
Logging in
- Users are able to see their profile and make changes to their profile by logging in
-
Uploading a profile picture
- Users are able to upload one profile picture
-
Adding and changing a bio story in a user's profile
- Users are able to change their bio story
-
Adding artists
- Users are able to add their favorite artists to a list of artists
Check out the project wiki
In the making of this project i used a number of packages from the Node Package Manager:
- Express framework
- used to make a server
- Multer
- Used to make file uploads available
- Body-parser
- Used to parse the body of to be posted data to the database
- MongoDB
- Used to save user input
- Mongoose
- Used to talk to the database in the node server
- EJS templating engine
- Used to make the html pages modulair, and able to read data dynamically from the database
- Dotenv
- Used to hide the databaseroute-, name et.
- Express-sessions
- Used to show different users their specific information
- Node JS
run the following command in the directory you saved this repository in:
npm install
this command will automatically download the npm packages this program is dependant on
first cd into the server directory:
cd server
Start the server the express server
There are two possible ways to run this program
- use Node, type in:
node server.js
- use Nodemon(automatically installed when you ran npm install), type in:
nodemon server.js
When the server is running you can visit the following link to see the app running:
http://localhost:5000