Vision Craft guesses game app.
- Node.js
- Express
- Sequelize
- React
- Typescript
- Elephant sql (postgresql)
- Clone repository - git clone https://github.com/mbilesanmi/guess-the-word.
- install all server packages
npm i
- install all client packages
cd client && npm i
- install sequelize globally
- create postgresql db and insert the
dbUrl
to.env
file. If no.env
exists, create new one similar to the.env-sample
. - run migrations
sequelize db:migrate
- start server app
npm run dev:nodemon
ornpm run dev
- start client app
npm start
- Config for CI/CD
- Better error handling
- More FE integration and api consumption
- More api functionality (e.g delete & update user, delete question)
- Ensure questions cannot be updated after guess has been saved
EndPoint | Functionality | Request-Body (type) | Params |
---|---|---|---|
POST /api/users | Create user | username(string) | - |
GET /api/users | Get all users | - | - |
GET /api/user/:userId | Gets one user | - | userId |
GET /api/question/:userId | Get question for user | - | userId |
PUT /api/question/:questionId | Save user's guess | guesses (string) | questionId |
- Fork this repository to your account.
- Clone your repository: git clone https://github.com/mbilesanmi/guess-the-word.
- Commit your changes: git commit -m "do something".
- Push to the remote branch: git push origin new-feature.
- Open a pull request.
ISC
Copyright (c) 2021 Maranatha A Ilesanmi