https://github.com/iamafnansk/wish-creating-app
An app which uses JavaScript at server-side using NodeJs to make instant wishes for anyone.
https://github.com/iamafnansk/wish-creating-app
api expressjs handlebarsjs mongodb nodejs
Last synced: 4 months ago
JSON representation
An app which uses JavaScript at server-side using NodeJs to make instant wishes for anyone.
- Host: GitHub
- URL: https://github.com/iamafnansk/wish-creating-app
- Owner: IamAfnanSk
- Created: 2019-08-04T08:12:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-07T12:17:04.000Z (over 2 years ago)
- Last Synced: 2025-01-27T11:16:24.453Z (over 1 year ago)
- Topics: api, expressjs, handlebarsjs, mongodb, nodejs
- Language: JavaScript
- Homepage: https://wish.afnan.dev
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wish Creating App
An app that creates preferred wishes by uploading a photo for the wish with your name and message you can also send it to someone to wish them.
---
## Quick Start
This section will be a short guide to setup this app for use with some steps.
### 1. Select a hosting provider for nodejs apps
Some preferred ones are below
- [DigitalOcean](https://www.digitalocean.com)
- [Vultr](https://www.vultr.com)
### 2. Set up a server and the node app
Use this repo's link while cloning in the tutorial
- [How to setup the server](https://youtu.be/kR06NoSzAXY)
### 3. Setup MongoDB
Create and setup account at [MongoDB Atlas](https://www.mongodb.com/cloud/atlas) and copy the DataBase url and paste in a new file `.env` in the base app folder.
```BASH
sudo nano .env
```
Then add `MONGOURL = 'https://yoururl.to.mongo.atlas'` in the .env file and save it.
### 4. Run the below commands
```BASH
npm install
```
This will install the required npm packages.
```BASH
sudo npm install -g pm2
cd the-folder
sudo pm2 start server.js
```
After this continue following the tutorial for nginx part.
### 5. Add ads if you want
This little app also enable to add your ads, Paste the header code of Adsense, I dont know about other ad services. Between the head tag in both the files in views folder which are `index.hbs` and `wish.hbs`.
```HTML
```
And then paste the adcode between the comments
```HTML
```
### That's it, start using the app
---
## Author
# [Afnan Shaikh](http://afnan.dev 'My Website')