Skip to content

Latest commit

 

History

History
134 lines (92 loc) · 2.67 KB

README.md

File metadata and controls

134 lines (92 loc) · 2.67 KB

Find shelter


About

Find shelter is a community focused application to help people of all walks of life find a place to spend the night.

  • Front End: TypeScript, React, MapBox, Styled Components and SASS
  • Back-End: Socket IO, Node and Express with TypeScript
  • Database: PostgresQL and ElephantSQL

Final product

View of the project

reservation-gif

Index index

Map View mapview

Dashboard dashboard

mobile

Book reservation reservation-form

Reservations reservations


Installation

Create the PostgreSQL database (these instructions may need to be adapted for your operating system):

psql
CREATE DATABASE find-shelter;
\q

Update dbparams.ts to connect with your local PostgreSQL set up.

Create a .env file in the server directory and the information of the database

DB_HOST=localhost
DB_USER=user_name
DB_PASS=password
DB_NAME=db_name
DB_PORT=port
DB_URL=

Clone the repository:

git clone [email protected]:ricardowgomes/findShelter.git

Install all the dependencies::

In the server folder, install dependencies and then seed the database:

cd server
npm install
npm run db:reset

In the client folder, install dependencies:

cd client
npm install

The app also requires the a PostgreSQL database set up and running.


Usage

Start the server with:

npm run dev:server

Start the client side with:

npm start

The development server will automatically open a browser at http://localhost:8000/ with the app running.


Dependencies

Development dependencies