Giter Site home page Giter Site logo

superhero-app's Introduction

Superheros app

Contributors: @GabrielleMonaen and @Rickys93.

This is a full-stack app built with Express, PostgreSQL, NodeJS, and React. The goal was to practise writing React CRUD methods. A search feature is also demonstrated. The filter functionality is still being worked on.

How to create a similar application

  1. Create the .env file with the DB_URL and PORT environment variables, as below:
cd superhero-app/api && touch .env

Contents of the .env file:

DB_URL=url_link
PORT=3000

The url_link above is replaced with the ElephantSQL database link. 2. Run the npm run setup-db command in GitHub to set up the database. 3. Install dependencies for server:

cd superhero-app/api
npm init -y
npm install
  1. Install dependencies for client:
cd superhero-app/client
npm init -y
npm install
  1. Run the api server
cd superhero-app/api
npm run dev
  1. Run the vite app
cd superhero-app/client
npm run dev
  1. See the application in broswer at http://localhost:5173.
  2. To deploy the application, follow the instructions below. These instructions have not been tested and you may need to adjust them.
    1. To deploy the application, replace all localhost server links with the render.com app link.
    2. To add the dependencies in the render.com and netlify.com settings, type as follows.
    3. For server on render.com: cd superhero-app/api && npm init -y && npm install && npm run setup-db. And to run the server on render.com, type npm run dev.
    4. For client on netlify.com: cd superhero-app/client && npm init -y && npm install. And to run vite on netlify.com, type npm run dev.

Known bugs

The filter from the SuperheroFilters component needs fixing.

Happy coding!

superhero-app's People

Contributors

gabriellemonaen avatar rickys93 avatar

Watchers

 avatar

Forkers

gabriellemonaen

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.