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.
A few things you have to take in consideration before using Play - Dates
After cloning the repo you'll have to :
Install PostgreSQL on your machine:
brew install postgresAccess PostgresSQL command line on the default database "postgres":
psql postgresYour 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- Start the server:
cd server
node index.js- Start the React development environment that will build the JS bundle for your app.
cd client
npm start
