Giter VIP home page Giter VIP logo

nava's Introduction

Nava

Main Stacks

N|Solid N|Solid

Nava is web application with RESTFUL API created for NAVA interview homework.

Features

Nava handles CRUD operation

  • Create images
  • Read image
  • Update already created images
  • Delete images

Tech

NAVA project uses a number of open source projects:

Installation

Backend

Requirements:

  • PHP version 7.3 or newer is required, with the *intl* extension and *mbstring* extension installed.

  • The following PHP extensions should be enabled on your server: php-json, php-mysqlnd, php-xml

  • MySQL (5.1+) via the MySQLi driver

  • Composer package manager installed. (minimum version 2.1.6)

Install the MYSQL dump

cd nava
mysql -u [username] -p
CREATE DATABASE database_name;
USE database_name;
SOURCE dump.sql;

Install the dependencies and start the server.

cd nava/backend
composer install

Create the .env file based on the env file in the nava/backend directory.

Set the database configuration in the .env file under the # DATABASE comment. And after that we can start the server:

php spark serve

Frontend

Newest Node version is required.

cd nava/frontend
npm install

Copy the nava/frontend/src/envExample.js to nava/frontend/src and rename it to: env.js After that go back to the frontend root directory and we can start the server:

npm start

RESTful Routes

Nava contains the following routes to provide response:

URL HTTP Verb Action Description
/images GET Index Show all images
/images POST Create Create a new image
/images/:id GET Show Show image with :id
/images/:id PUT Update Update image with :id
/images/:id DELETE Destroy Delete image with :id

nava's People

Contributors

agnesrausz avatar dependabot[bot] 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.