Skip to content

1334/play-date

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play Dates

Play Dates makes it easy to find activities that are going on for kids near you. You can filter by times, locations, price or age to find the best event for your kids. Alternatively, if you are hosting an event, you can create your own play date.

Table of contents

Screenshots

Getting started

A few things you have to take in consideration before using Play - Dates

After cloning the repo you'll have to :

Install global and local dependancies:

Migrate and connect Postgres database

Install PostgreSQL on your machine:

brew install postgres

Access PostgresSQL command line on the default database "postgres":

psql postgres

Your bash should now look like this:

psql (10.5)
Type "help" for help.

postgres=#

Now create a new database for the current user and connect it:

postgres=# CREATE DATABASE play-date-dev;
postgres=# \c play-date-dev;

The result will be:

You are now connected to database "play-date-dev" as user <user-name>.
play-date-dev=#

Now set a password for the current user:

play-date-dev=# ALTER USER <user_name> WITH PASSWORD 'new_password';

Always remember the semicolon or the syntax will not work.

Now your database setup is finished and you are ready to connect it with the server.

You can change the port or database name on postgres configuration database.

If you would like to use other SQL database you should just configure it in server/ config/config.json.

Finally, migrate the database on your local machine:

cd server
npm run recreateDb

Usage

  1. Start the server:
cd server
node index.js
  1. Start the React development environment that will build the JS bundle for your app.
cd client
npm start

Tech Stack

Back-end:

Front-end:

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.9%
  • CSS 6.7%
  • HTML 4.4%