Giter Site home page Giter Site logo

chenterry85 / fibonacci-rest Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3.95 MB

MEVN Full Stack Web Application

Home Page: https://peaceful-brook-94145.herokuapp.com

JavaScript 77.53% HTML 22.47%
restful-api nodejs express mongodb javascript expressjs rest-client rest-framework restful-routes sample-code example-project sample-project mevn-stack mevn-project fullstack-development fullstack-javascript fibonacci fibonacci-calculator restful rest

fibonacci-rest's Introduction

Fibonacci REST API Demo

Requirements

  • Node.js 12+
  • Vue 4.5+
  • MongoDB

Description

This is a web application for calculating fibonacci numbers and displaying all previous results. The front end is written in Vue.js as the Javascript framework and bootstrap for css styling, while the backend uses Node's Express.js server with mongoDB as the database. Click here to view the deployed website. But if you want to run the website locally, go to the "How to install and run locally" section.

How to install and run locally

1) Clone the dev branch into your local depository. Change "myproject" to your project name.

git clone --branch dev https://github.com/chenterry85/Fibonacci-REST.git ./myproject

2) Install npm dependencies

cd myproject

# npm dependencies for backend 
npm install
npm update

# npm dependencies for Vue.js
cd client
npm install
npm update

# navigate back to main directory
cd ..

3) Add environment variables

Create .env file with the following environment variables
  • Port: 5555
  • MongoDB's Database URI: mongodb+srv://mongouser:[email protected]/fib_db?retryWrites=true&w=majority
echo -e "PORT=5555\nDB_URI=mongodb+srv://mongouser:[email protected]/fib_db?retryWrites=true&w=majority" > .env

4) Run the Express server

 npm start

5) Run the Vue.js client

Open a new terminal session and in that new session run:

cd client
npm run serve

fibonacci-rest's People

Contributors

chenterry85 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.