This is the server project file for PetSpace, a portal to connect users to sitters in their area. This server file containes the endpoint for creating accounts, users, and pets.
- There is no logic to create sitters
- There is no logic to join users to their pets
- The openai endpoint is currenlty orphaned as that is a work in progress
-
$ git clone git@github.com:DBeaulne/petspace-server.git -
$ cd petspace-server -
$ npm install -
Open your mySQL editor and create a new schema in your connected server. Give it the name of petspace (all lower case)
-
make a copy of the .env.sample file. Renmae it to .env and add all the environment variables.
-
$ node -e "console.log(require('crypto').randomBytes(32).toString('hex'));"to create an access token. Copy this into your .env file for the ACCESS_TOKEN_SECRET.- run the above command a second time for your REFRESH_TOKEN_SECRET
-
$ npm start -
split your bash terminal and then
$ npm run migrate -
$ npm run seed -
The server is now ready for the client